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

ClassNotFoundException running checkstyle on slave

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • checkstyle-plugin
    • None
    • Windows XP remote slave (Debian host)

      After upgrading from 1.415 to 1.418, the following exception occurs when running checkstyle on a build that executed on a remote slave named "bristle":

       
      08:49:27  BUILD SUCCESSFUL
      08:49:27  Total time: 2 minutes 55 seconds
      08:49:27  [CHECKSTYLE] Collecting checkstyle analysis files...
      08:49:28  ERROR: Publisher hudson.plugins.checkstyle.CheckStylePublisher aborted due to exception
      08:49:28  hudson.util.IOException2: remote file operation failed: c:\jenkins\workspace\project at hudson.remoting.Channel@3abdf256:bristle
      08:49:28  	at hudson.FilePath.act(FilePath.java:754)
      08:49:28  	at hudson.FilePath.act(FilePath.java:740)
      08:49:28  	at hudson.plugins.checkstyle.CheckStylePublisher.perform(CheckStylePublisher.java:141)
      08:49:28  	at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:310)
      08:49:28  	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      08:49:28  	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:664)
      08:49:28  	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:639)
      08:49:28  	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:617)
      08:49:28  	at hudson.model.Build$RunnerImpl.post2(Build.java:161)
      08:49:28  	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:586)
      08:49:28  	at hudson.model.Run.run(Run.java:1400)
      08:49:28  	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      08:49:28  	at hudson.model.ResourceController.execute(ResourceController.java:88)
      08:49:28  	at hudson.model.Executor.run(Executor.java:175)
      08:49:28  Caused by: java.io.IOException: Remote call on bristle failed
      08:49:28  	at hudson.remoting.Channel.call(Channel.java:672)
      08:49:28  	at hudson.FilePath.act(FilePath.java:747)
      08:49:28  	... 13 more
      08:49:28  Caused by: java.lang.ClassNotFoundException: Failed to deserialize the Callable object. Perhaps you needed to implement DelegatingCallable?
      08:49:28  	at hudson.remoting.UserRequest.perform(UserRequest.java:100)
      08:49:28  	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      08:49:28  	at hudson.remoting.Request$2.run(Request.java:270)
      08:49:28  	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      08:49:28  	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      08:49:28  	at java.util.concurrent.FutureTask.run(Unknown Source)
      08:49:28  	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      08:49:28  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      08:49:28  	at hudson.remoting.Engine$1$1.run(Engine.java:60)
      08:49:28  	at java.lang.Thread.run(Unknown Source)
      08:49:28  Caused by: java.lang.ClassNotFoundException: hudson.plugins.checkstyle.parser.CheckStyleParser
      08:49:28  	at java.net.URLClassLoader$1.run(Unknown Source)
      08:49:28  	at java.security.AccessController.doPrivileged(Native Method)
      08:49:28  	at java.net.URLClassLoader.findClass(Unknown Source)
      08:49:28  	at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
      08:49:28  	at java.lang.ClassLoader.loadClass(Unknown Source)
      08:49:28  	at java.lang.ClassLoader.loadClass(Unknown Source)
      08:49:28  	at java.lang.Class.forName0(Native Method)
      08:49:28  	at java.lang.Class.forName(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.resolveClass(Unknown Source)
      08:49:28  	at hudson.remoting.ObjectInputStreamEx.resolveClass(ObjectInputStreamEx.java:50)
      08:49:28  	at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.readClassDesc(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.readObject0(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.readSerialData(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.readObject0(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.readSerialData(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.readObject0(Unknown Source)
      08:49:28  	at java.io.ObjectInputStream.readObject(Unknown Source)
      08:49:28  	at hudson.remoting.UserRequest.deserialize(UserRequest.java:182)
      08:49:28  	at hudson.remoting.UserRequest.perform(UserRequest.java:98)
      08:49:28  	... 9 more
      08:49:28  Archiving artifacts
      08:49:30  Recording fingerprints
      08:49:32  Notifying upstream projects of job completion
      08:49:32  Finished: FAILURE
      

      I'm not sure which build between 1.415 and 1.418 broke it, I had to do an emergency rollback to solve JENKINS-10181.

          [JENKINS-10183] ClassNotFoundException running checkstyle on slave

          Andrew Herron added a comment -

          After downgrading the problem still occurred; I had to restart my slave machines (automatically downloading the older slave.jar) before the exception stopped occurring. This suggests the problem lies with Jenkins, not the Checkstyle plugin.

          Andrew Herron added a comment - After downgrading the problem still occurred; I had to restart my slave machines (automatically downloading the older slave.jar) before the exception stopped occurring. This suggests the problem lies with Jenkins, not the Checkstyle plugin.

          Ulli Hafner added a comment -

          Thanks for the hint. I'm really wondering what could be the cause for this... This issue should be related: JENKINS-10153

          Ulli Hafner added a comment - Thanks for the hint. I'm really wondering what could be the cause for this... This issue should be related: JENKINS-10153

          Ulli Hafner added a comment -

          Can you please check if this could be related with a non up to date slave.jar file on the slave?

          Ulli Hafner added a comment - Can you please check if this could be related with a non up to date slave.jar file on the slave?

          Ulli Hafner added a comment -

          Seems that this problem is fixed by updating slave.jar.

          Please vote for JENKINS-453

          Ulli Hafner added a comment - Seems that this problem is fixed by updating slave.jar. Please vote for JENKINS-453

          Andrew Herron added a comment -

          Sorry, I'm not getting JIRA emails for some reason. Now that the Ant issue is fixed in 1.419, I'll upgrade again next week and let you know if that doesn't resolve it. I've voted for 453.

          Thanks!

          Andrew Herron added a comment - Sorry, I'm not getting JIRA emails for some reason. Now that the Ant issue is fixed in 1.419, I'll upgrade again next week and let you know if that doesn't resolve it. I've voted for 453. Thanks!

            drulli Ulli Hafner
            spyder Andrew Herron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: