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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Not A Defect
    • Component/s: core
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          cukal 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>

          Show
          cukal 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>
          Hide
          cukal Lars Van Casteren added a comment -

          The XML format used is no longer valid.

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

            People

            • Assignee:
              Unassigned
              Reporter:
              cukal Lars Van Casteren
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: