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

NoClassDefFoundError in monitoring Windows slave

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • None
    • Jenkins 1.489 on RHEL 5 x86_64 with Windows 7/Windows XP slaves

      Upon startup there is a bunch of exceptions in log:

      Nov 10, 2012 10:37:25 PM hudson.node_monitors.AbstractNodeMonitorDescriptor$Record run
      WARNING: Failed to monitor <windowsxp-slave> for Free Swap Space
      java.io.IOException: Remote call on akm022-06 failed
              at hudson.remoting.Channel.call(Channel.java:673)
              at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:83)
              at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:81)
              at hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:219)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jvnet.hudson.Windows$MEMORYSTATUSEX
              at org.jvnet.hudson.Windows.monitor(Windows.java:40)
              at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:113)
              at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:99)
              at hudson.remoting.UserRequest.perform(UserRequest.java:118)
              at hudson.remoting.UserRequest.perform(UserRequest.java:48)
              at hudson.remoting.Request$2.run(Request.java:326)
              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.runWorker(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at hudson.remoting.Engine$1$1.run(Engine.java:60)
              at java.lang.Thread.run(Unknown Source)
      

      It happens for both Windows 7 and Windows XP slaves.

          [JENKINS-15796] NoClassDefFoundError in monitoring Windows slave

          Krzysztof Malinowski created issue -

          Jan Seidel added a comment -

          I'm facing this issue since some weeks to:

          WARNING: Failed to monitor B00014 for Free Swap Space
          java.io.IOException: Remote call on B00014 failed
          	at hudson.remoting.Channel.call(Channel.java:681)
          	at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:83)
          	at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:81)
          	at hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:219)
          Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jvnet.hudson.Windows$MEMORYSTATUSEX
          	at org.jvnet.hudson.Windows.monitor(Windows.java:40)
          	at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:113)
          	at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:99)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          	at hudson.remoting.Request$2.run(Request.java:326)
          	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 java.lang.Thread.run(Unknown Source)
          
          Jan 31, 2013 1:32:58 PM hudson.node_monitors.AbstractNodeMonitorDescriptor$Record run
          

          Jan Seidel added a comment - I'm facing this issue since some weeks to: WARNING: Failed to monitor B00014 for Free Swap Space java.io.IOException: Remote call on B00014 failed at hudson.remoting.Channel.call(Channel.java:681) at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:83) at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:81) at hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:219) Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jvnet.hudson.Windows$MEMORYSTATUSEX at org.jvnet.hudson.Windows.monitor(Windows.java:40) at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:113) at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:99) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) 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 java.lang.Thread.run(Unknown Source) Jan 31, 2013 1:32:58 PM hudson.node_monitors.AbstractNodeMonitorDescriptor$Record run

          Joel Johnson added a comment -

          We're having the same problem using Ubuntu Server 12.04 + Jenkins 1.503 running in a Tomcat 7 container. Our Windows slaves connect using JNLP and are running on Server 2008R2.

          Joel Johnson added a comment - We're having the same problem using Ubuntu Server 12.04 + Jenkins 1.503 running in a Tomcat 7 container. Our Windows slaves connect using JNLP and are running on Server 2008R2.

          Morgan Sveen added a comment -

          We have the same stack trace. We noticed this issue after upgrading Jenkins.

          Jenkins ver. 1.480.3.1 (Jenkins Enterprise by CloudBees 12.11)
          Slaves are Windows Server 2003 R2

          Morgan Sveen added a comment - We have the same stack trace. We noticed this issue after upgrading Jenkins. Jenkins ver. 1.480.3.1 (Jenkins Enterprise by CloudBees 12.11) Slaves are Windows Server 2003 R2

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/main/java/hudson/node_monitors/SwapSpaceMonitor.java
          http://jenkins-ci.org/commit/jenkins/bcdfb2860ffa4bef97ce01a20779b08472388231
          Log:
          [FIXED JENKINS-15796] NoClassDefFoundError: 'Could not initialize class org.jvnet.hudson.Windows$MEMORYSTATUSEX' from SwapSpaceMonitor.
          Not fixing actual linkage error—JNA issue of some kind—but ensuring that Jenkins reports it only once.


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/node_monitors/SwapSpaceMonitor.java http://jenkins-ci.org/commit/jenkins/bcdfb2860ffa4bef97ce01a20779b08472388231 Log: [FIXED JENKINS-15796] NoClassDefFoundError: 'Could not initialize class org.jvnet.hudson.Windows$MEMORYSTATUSEX' from SwapSpaceMonitor. Not fixing actual linkage error—JNA issue of some kind—but ensuring that Jenkins reports it only once. – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2353
          [FIXED JENKINS-15796] NoClassDefFoundError: 'Could not initialize class org.jvnet.hudson.Windows$MEMORYSTATUSEX' from SwapSpaceMonitor. (Revision bcdfb2860ffa4bef97ce01a20779b08472388231)

          Result = SUCCESS
          Jesse Glick : bcdfb2860ffa4bef97ce01a20779b08472388231
          Files :

          • changelog.html
          • core/src/main/java/hudson/node_monitors/SwapSpaceMonitor.java

          dogfood added a comment - Integrated in jenkins_main_trunk #2353 [FIXED JENKINS-15796] NoClassDefFoundError: 'Could not initialize class org.jvnet.hudson.Windows$MEMORYSTATUSEX' from SwapSpaceMonitor. (Revision bcdfb2860ffa4bef97ce01a20779b08472388231) Result = SUCCESS Jesse Glick : bcdfb2860ffa4bef97ce01a20779b08472388231 Files : changelog.html core/src/main/java/hudson/node_monitors/SwapSpaceMonitor.java

          It looks like this exact issue is still occurring on 1.506. It appears to only be occuring on one of our slaves however. Any ideas?

          Apr 12, 2013 9:41:05 AM hudson.node_monitors.AbstractNodeMonitorDescriptor$Record run
          WARNING: Failed to monitor Build.VS6 for Free Swap Space
          java.io.IOException: Remote call on Build.VS6 failed
          at hudson.remoting.Channel.call(Channel.java:681)
          at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:83)
          at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:81)
          at hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:219)
          Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jvnet.hudson.Windows$MEMORYSTATUSEX
          at org.jvnet.hudson.Windows.monitor(Windows.java:40)
          at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:109)
          at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:99)
          at hudson.remoting.UserRequest.perform(UserRequest.java:118)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          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:58)
          at java.lang.Thread.run(Unknown Source)

          Kevin Thieling added a comment - It looks like this exact issue is still occurring on 1.506. It appears to only be occuring on one of our slaves however. Any ideas? Apr 12, 2013 9:41:05 AM hudson.node_monitors.AbstractNodeMonitorDescriptor$Record run WARNING: Failed to monitor Build.VS6 for Free Swap Space java.io.IOException: Remote call on Build.VS6 failed at hudson.remoting.Channel.call(Channel.java:681) at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:83) at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:81) at hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:219) Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jvnet.hudson.Windows$MEMORYSTATUSEX at org.jvnet.hudson.Windows.monitor(Windows.java:40) at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:109) at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:99) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) 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:58) at java.lang.Thread.run(Unknown Source)
          Kevin Thieling made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Jesse Glick added a comment -

          @kt I have no idea but as the comment in the commit says there was no attempt to cause this error to not happen, only to make it be reported only once and not break other things. Check your log for the root cause. Pull requests welcome.

          Jesse Glick added a comment - @kt I have no idea but as the comment in the commit says there was no attempt to cause this error to not happen, only to make it be reported only once and not break other things. Check your log for the root cause. Pull requests welcome.

            Unassigned Unassigned
            raspy Krzysztof Malinowski
            Votes:
            10 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: