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

NoClassDefFoundError: hudson.util.ProcessTreeKiller$Windows

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: PC, OS: Windows 2000

      The following error happens when executing a Maven Build (but only if the maven
      build runs, the error does not happen when the maven build fails with Bug #2394)
      The Error is shown only on the Hudson stdout/err, not within the build console.

      17.02.2009 08:29:40 hudson.remoting.Channel$ReaderThread run
      SCHWERWIEGEND: Failed to execute command close
      java.lang.NoClassDefFoundError: Could not initialize class
      hudson.util.ProcessTreeKiller$Windows
      at hudson.util.ProcessTreeKiller.get(ProcessTreeKiller.java:91)
      at hudson.Proc$LocalProc.destroy(Proc.java:166)
      at hudson.Proc$LocalProc.kill(Proc.java:158)
      at
      hudson.maven.MavenProcessFactory$1.terminate(MavenProcessFactory.java:187)
      at hudson.remoting.Channel$CloseCommand.execute(Channel.java:554)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:647)
      17.02.2009 08:29:40 hudson.remoting.Channel$ReaderThread run
      SCHWERWIEGEND: This command is created here
      Command close created at
      at hudson.remoting.Command.<init>(Command.java:24)
      at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:550)
      at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:550)
      at hudson.remoting.Channel.close(Channel.java:594)
      at hudson.remoting.Channel$CloseCommand.execute(Channel.java:553)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:647)

      Process Explorer shows a Subthread with commandline (Paths shortened and
      anonymonized):
      java -cp "C:\Dokumente und
      Einstellungen\user\.hudson\war\WEB-INF\lib\maven-agent-1.277.jar;C:\maven-2\boot\classworlds-1.1.jar"
      hudson.maven.agent.Main C:\maven-2 "C:\Dokumente und
      Einstellungen\user\.hudson\war\WEB-INF\lib\remoting-1.277.jar" "C:\Dokumente und
      Einstellungen\user\.hudson\war\WEB-INF\lib\maven-interceptor-1.277.jar" 1342

      If the maven run is OK, the Subthread terminates. If the maven build fails with
      Bug #2394 the Subthread stays in Memory.

      OS: Win2000 SP3 32Bit, Hudson 1.277, Maven 2.0.9, Java 1.6.0_12

          [JENKINS-3060] NoClassDefFoundError: hudson.util.ProcessTreeKiller$Windows

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/pom.xml
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=15395
          Log:
          [FIXED JENKINS-3050 JENKINS-3060]
          picked up a new version of Winp that works with 64bit Windows and Windows 2000.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/pom.xml trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=15395 Log: [FIXED JENKINS-3050 JENKINS-3060] picked up a new version of Winp that works with 64bit Windows and Windows 2000.

          Upgraded my Hudson to 1.284, Problem seems to be fixed using Win2000.

          Florian Rosenauer added a comment - Upgraded my Hudson to 1.284, Problem seems to be fixed using Win2000.

          dgashby added a comment -

          Still seeing something similar on 32bit Windows XP running Hudson version 1.285

          FATAL: Could not initialize class hudson.util.ProcessTreeKiller$Windows
          java.lang.NoClassDefFoundError: Could not initialize class
          hudson.util.ProcessTreeKiller$Windows
          at hudson.util.ProcessTreeKiller.get(ProcessTreeKiller.java:132)
          at hudson.Launcher$LocalLauncher.kill(Launcher.java:361)
          at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:275)
          at hudson.model.Run.run(Run.java:894)
          at hudson.model.Build.run(Build.java:112)
          at hudson.model.ResourceController.execute(ResourceController.java:93)
          at hudson.model.Executor.run(Executor.java:119)

          dgashby added a comment - Still seeing something similar on 32bit Windows XP running Hudson version 1.285 FATAL: Could not initialize class hudson.util.ProcessTreeKiller$Windows java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTreeKiller$Windows at hudson.util.ProcessTreeKiller.get(ProcessTreeKiller.java:132) at hudson.Launcher$LocalLauncher.kill(Launcher.java:361) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:275) at hudson.model.Run.run(Run.java:894) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119)

          I am able to reproduce the following minor issue (seems to be a similar one):

          1. Start Hudson inside Tomcat
          2. run a freestyle project with cmd call
          3. goto Tomcat manager and stop and start Hudson
          4. run the project from step 2 will result an error after the batch file has
          completed successfully:

          FATAL: Native Library C:\EProg\Tomcat_5.5\webapps\hudson\WEB-INF\lib\winp.dll
          already loaded in another classloader
          java.lang.UnsatisfiedLinkError: Native Library
          C:\EProg\Tomcat_5.5\webapps\hudson\WEB-INF\lib\winp.dll already loaded in
          another classloader
          at java.lang.ClassLoader.loadLibrary0(Unknown Source)
          at java.lang.ClassLoader.loadLibrary(Unknown Source)
          at java.lang.Runtime.load0(Unknown Source)
          at java.lang.System.load(Unknown Source)
          at org.jvnet.winp.Native.loadDll(Native.java:128)
          at org.jvnet.winp.Native.load(Native.java:85)
          at org.jvnet.winp.Native.<clinit>(Native.java:49)
          at org.jvnet.winp.WinProcess.enableDebugPrivilege(WinProcess.java:195)
          at hudson.util.ProcessTreeKiller$Windows.<clinit>(ProcessTreeKiller.java:208)
          at hudson.util.ProcessTreeKiller.get(ProcessTreeKiller.java:132)
          at hudson.Launcher$LocalLauncher.kill(Launcher.java:361)
          at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:275)
          at hudson.model.Run.run(Run.java:894)
          at hudson.model.Build.run(Build.java:112)
          at hudson.model.ResourceController.execute(ResourceController.java:93)
          at hudson.model.Executor.run(Executor.java:119)

          5. run job from step 2 a third time will result in:

          FATAL: Could not initialize class hudson.util.ProcessTreeKiller$Windows
          java.lang.NoClassDefFoundError: Could not initialize class
          hudson.util.ProcessTreeKiller$Windows
          at hudson.util.ProcessTreeKiller.get(ProcessTreeKiller.java:132)
          at hudson.Launcher$LocalLauncher.kill(Launcher.java:361)
          at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:275)
          at hudson.model.Run.run(Run.java:894)
          at hudson.model.Build.run(Build.java:112)
          at hudson.model.ResourceController.execute(ResourceController.java:93)
          at hudson.model.Executor.run(Executor.java:119)

          Hudson 1.285, Windows 2000

          to fix simply restart Tomcat

          Florian Rosenauer added a comment - I am able to reproduce the following minor issue (seems to be a similar one): 1. Start Hudson inside Tomcat 2. run a freestyle project with cmd call 3. goto Tomcat manager and stop and start Hudson 4. run the project from step 2 will result an error after the batch file has completed successfully: FATAL: Native Library C:\EProg\Tomcat_5.5\webapps\hudson\WEB-INF\lib\winp.dll already loaded in another classloader java.lang.UnsatisfiedLinkError: Native Library C:\EProg\Tomcat_5.5\webapps\hudson\WEB-INF\lib\winp.dll already loaded in another classloader at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.load0(Unknown Source) at java.lang.System.load(Unknown Source) at org.jvnet.winp.Native.loadDll(Native.java:128) at org.jvnet.winp.Native.load(Native.java:85) at org.jvnet.winp.Native.<clinit>(Native.java:49) at org.jvnet.winp.WinProcess.enableDebugPrivilege(WinProcess.java:195) at hudson.util.ProcessTreeKiller$Windows.<clinit>(ProcessTreeKiller.java:208) at hudson.util.ProcessTreeKiller.get(ProcessTreeKiller.java:132) at hudson.Launcher$LocalLauncher.kill(Launcher.java:361) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:275) at hudson.model.Run.run(Run.java:894) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) 5. run job from step 2 a third time will result in: FATAL: Could not initialize class hudson.util.ProcessTreeKiller$Windows java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTreeKiller$Windows at hudson.util.ProcessTreeKiller.get(ProcessTreeKiller.java:132) at hudson.Launcher$LocalLauncher.kill(Launcher.java:361) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:275) at hudson.model.Run.run(Run.java:894) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) Hudson 1.285, Windows 2000 to fix simply restart Tomcat

          Alan Harder added a comment -

          can we close this old issue? this part of the code has been refactored (now called just "ProcessTree"), so hopefully this issue is gone..

          Alan Harder added a comment - can we close this old issue? this part of the code has been refactored (now called just "ProcessTree"), so hopefully this issue is gone..

          yes, can be closed!
          The original issue never happend again as mentioned.
          Using 1.351 I wasn't even able to reproduce the second issue.

          Florian Rosenauer added a comment - yes, can be closed! The original issue never happend again as mentioned. Using 1.351 I wasn't even able to reproduce the second issue.

            Unassigned Unassigned
            skybird Florian Rosenauer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: