Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59166

FATAL: java.lang.Integer cannot be cast to hudson.slaves.NodeProperty

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • core

      After a reboot it's impossible to run any job. Creating a new job generates the same error.
      Creating a new slave does not change the error.

      FATAL: java.lang.Integer cannot be cast to hudson.slaves.NodeProperty
      java.lang.ClassCastException: java.lang.Integer cannot be cast to hudson.slaves.NodeProperty
      at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:548)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:462)
      at hudson.model.Run.execute(Run.java:1818)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE

      Thanks for any help
      Cukal

          [JENKINS-59166] FATAL: java.lang.Integer cannot be cast to hudson.slaves.NodeProperty

          Lars Van Casteren added a comment - - edited

          I've cloned the Jenkins VM and removed all plugins.
          Problem still persist with same error message.

          It seems this part of config.xml is causing the issue:

          <globalNodeProperties>
          <hudson.slaves.EnvironmentVariablesNodeProperty/>
          <int>2</int>
          <string></string>
          <string></string>
          <string>GRADLE_OPTS</string>
          <string>-Dorg.gradle.daemon=false</string>
          </globalNodeProperties>

          Lars Van Casteren added a comment - - edited I've cloned the Jenkins VM and removed all plugins. Problem still persist with same error message. It seems this part of config.xml is causing the issue: <globalNodeProperties> <hudson.slaves.EnvironmentVariablesNodeProperty/> <int>2</int> <string></string> <string></string> <string>GRADLE_OPTS</string> <string>-Dorg.gradle.daemon=false</string> </globalNodeProperties>

          The XML format used is no longer valid.

          Lars Van Casteren added a comment - The XML format used is no longer valid.

            Unassigned Unassigned
            cukal Lars Van Casteren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: