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

NoClassDefFoundError for hudson.Util on Windows slave

    Details

    • Similar Issues:

      Description

      Reproduced on 1.585:

      Started by user Vadym Vikulin
      [EnvInject] - Loading node environment variables.
      Building remotely on win7-node-01 (Win7) in workspace C:\work\workspace\Win7-ED
      [EnvInject] - Executing scripts and injecting environment variables after the SCM step.
      [EnvInject] - Injecting as environment variables the properties content
      CLASSPATH=C:\work\edtest\common\libs*:C:\work\edtest\common;C:\work\edtest\all\edJava;C:\work\edtest\all\edNative/libs/*

      [EnvInject] - Variables injected successfully.
      [Win7-ED] $ cmd /c call C:\Users\VADYMV~1\AppData\Local\Temp\hudson142281969965340690.bat
      FATAL: command execution failed
      java.io.IOException: Remote call on win7-node-01 failed
      at hudson.remoting.Channel.call(Channel.java:751)
      at hudson.Launcher$RemoteLauncher.launch(Launcher.java:915)
      at hudson.Launcher$ProcStarter.start(Launcher.java:380)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:97)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      at hudson.model.Build$BuildExecution.build(Build.java:199)
      at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
      at hudson.model.Run.execute(Run.java:1759)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.Util
      at hudson.EnvVars$OverrideOrderCalculator.scan(EnvVars.java:281)
      at hudson.EnvVars$OverrideOrderCalculator.<init>(EnvVars.java:223)
      at hudson.EnvVars.overrideExpandingAll(EnvVars.java:329)
      at hudson.Launcher.inherit(Launcher.java:1227)
      at hudson.Launcher.inherit(Launcher.java:1219)
      at hudson.Launcher.access$200(Launcher.java:81)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:795)
      at hudson.Launcher$ProcStarter.start(Launcher.java:380)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1135)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1100)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:328)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:63)
      at java.lang.Thread.run(Unknown Source)
      FATAL: Unable to delete script file C:\Users\VADYMV~1\AppData\Local\Temp\hudson142281969965340690.bat
      java.io.IOException: remote file operation failed: C:\Users\VADYMV~1\AppData\Local\Temp\hudson142281969965340690.bat at hudson.remoting.Channel@5dc020b1:win7-node-01
      at hudson.FilePath.act(FilePath.java:914)
      at hudson.FilePath.act(FilePath.java:896)
      at hudson.FilePath.delete(FilePath.java:1321)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:106)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      at hudson.model.Build$BuildExecution.build(Build.java:199)
      at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
      at hudson.model.Run.execute(Run.java:1759)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
      Caused by: java.io.IOException: Remote call on win7-node-01 failed
      at hudson.remoting.Channel.call(Channel.java:751)
      at hudson.FilePath.act(FilePath.java:907)
      ... 13 more

        Attachments

          Issue Links

            Activity

            Hide
            smd Stefan Drissen added a comment - - edited

            In the past week I was running into this issue with /one/ slave.
            The cause /seems/ to have been a too large difference between JRE versions.

            The Windows master was running Java 1.8_101 x64.
            The Windows x64 slaves running Java 1.8_131 (32-bit) were fine. 
            The Windows x64 slave running the recently updated 1.8_151 (32-bit) was throwing this error.

            After updating the Windows master to Java 1.8_151 x64 the issue was resolved.

            This was with Jenkins 1.630.

             

            Started by upstream project "7.24/build work" build number 80
            originally caused by:
            Started by an SCM change
            [EnvInject] - Loading node environment variables.
            Building remotely on <slave> (odbc-sql2016 oe11.6.3.005 oe11.7) in workspace d:\jenkins\workspace\7.24\work\build_bl-11.6-oracle
            [build_bl-11.6-oracle] $ tf history "$/project/7.24/work" -recursive -stopafter:1 -noprompt -version:D2017-11-07T17:32:17Z -format:brief ******** -server:<tfs>
            java.io.IOException: Remote call on <slave> failed
            at hudson.remoting.Channel.call(Channel.java:786)
            at hudson.Launcher$RemoteLauncher.launch(Launcher.java:929)
            at hudson.Launcher$ProcStarter.start(Launcher.java:382)
            at hudson.plugins.tfs.TfTool.execute(TfTool.java:101)
            at hudson.plugins.tfs.model.Server.execute(Server.java:121)
            at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:219)
            at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:212)
            at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:235)
            at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:239)
            at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:205)
            at hudson.model.AbstractProject.checkout(AbstractProject.java:1277)
            at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
            at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
            at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
            at hudson.model.Run.execute(Run.java:1741)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            at hudson.model.ResourceController.execute(ResourceController.java:98)
            at hudson.model.Executor.run(Executor.java:408)
            Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.Util
            at hudson.EnvVars.expand(EnvVars.java:383)
            at hudson.Launcher$LocalLauncher.launch(Launcher.java:814)
            at hudson.Launcher$ProcStarter.start(Launcher.java:382)
            at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1149)
            at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1114)
            at hudson.remoting.UserRequest.perform(UserRequest.java:121)
            at hudson.remoting.UserRequest.perform(UserRequest.java:49)
            at hudson.remoting.Request$2.run(Request.java:326)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
            at java.util.concurrent.FutureTask.run(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at hudson.remoting.Engine$1$1.run(Engine.java:69)
            at java.lang.Thread.run(Unknown Source)
            at ......remote call to <slave>(Native Method)
            at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413)
            at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
            at hudson.remoting.Channel.call(Channel.java:778)
            ... 17 more
            Retrying after 10 seconds

            Show
            smd Stefan Drissen added a comment - - edited In the past week I was running into this issue with /one/ slave. The cause /seems/ to have been a too large difference between JRE versions. The Windows master was running Java 1.8_101 x64. The Windows x64 slaves running Java 1.8_131 (32-bit) were fine.  The Windows x64 slave running the recently updated 1.8_151 (32-bit) was throwing this error. After updating the Windows master to Java 1.8_151 x64 the issue was resolved. This was with Jenkins 1.630.   Started by upstream project "7.24/build work" build number 80 originally caused by: Started by an SCM change [EnvInject] - Loading node environment variables. Building remotely on <slave> (odbc-sql2016 oe11.6.3.005 oe11.7) in workspace d:\jenkins\workspace\7.24\work\build_bl-11.6-oracle [build_bl-11.6-oracle] $ tf history "$/project/7.24/work" -recursive -stopafter:1 -noprompt -version:D2017-11-07T17:32:17Z -format:brief ******** -server:<tfs> java.io.IOException: Remote call on <slave> failed at hudson.remoting.Channel.call(Channel.java:786) at hudson.Launcher$RemoteLauncher.launch(Launcher.java:929) at hudson.Launcher$ProcStarter.start(Launcher.java:382) at hudson.plugins.tfs.TfTool.execute(TfTool.java:101) at hudson.plugins.tfs.model.Server.execute(Server.java:121) at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:219) at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:212) at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:235) at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:239) at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:205) at hudson.model.AbstractProject.checkout(AbstractProject.java:1277) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.Util at hudson.EnvVars.expand(EnvVars.java:383) at hudson.Launcher$LocalLauncher.launch(Launcher.java:814) at hudson.Launcher$ProcStarter.start(Launcher.java:382) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1149) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1114) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:69) at java.lang.Thread.run(Unknown Source) at ......remote call to <slave>(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:778) ... 17 more Retrying after 10 seconds

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                vikulin Vadym Vikulin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: