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

Analysis plug-ins don't work with master slave configurations

      At the end of an otherwise-successful build on a slave machine:

      ...
      Archiving artifacts
      Recording test results
      Recording fingerprints
      [WARNINGS] Parsing warnings in console log...
      FATAL: remote file operation failed
      hudson.util.IOException2: remote file operation failed
      	at hudson.FilePath.act(FilePath.java:677)
      	at hudson.FilePath.act(FilePath.java:665)
      	at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:216)
      	at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:140)
      	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:577)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:551)
      	at hudson.model.Build$RunnerImpl.post2(Build.java:152)
      	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:535)
      	at hudson.model.Run.run(Run.java:1199)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:123)
      Caused by: java.io.IOException: Remote call failed
      	at hudson.remoting.Channel.call(Channel.java:552)
      	at hudson.FilePath.act(FilePath.java:672)
      	... 13 more
      Caused by: java.lang.ClassNotFoundException: Failed to deserialize the Callable object. Perhaps you needed to implement DelegatingCallable?
      	at hudson.remoting.UserRequest.perform(UserRequest.java:90)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:270)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassNotFoundException: hudson.plugins.warnings.parser.Warning
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:247)
      	at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
      	at hudson.remoting.ObjectInputStreamEx.resolveClass(ObjectInputStreamEx.java:50)
      	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
      	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      	at java.util.HashSet.readObject(HashSet.java:291)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      	at hudson.remoting.UserRequest.deserialize(UserRequest.java:168)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:88)
      	... 8 more
      

          [JENKINS-4993] Analysis plug-ins don't work with master slave configurations

          tyu@eridex.org created issue -

          pjimenez3 added a comment -

          Seeing it here too with hudson v1.336 and Warnings Plug-in v3.0

          pjimenez3 added a comment - Seeing it here too with hudson v1.336 and Warnings Plug-in v3.0
          Ulli Hafner made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Ulli Hafner added a comment -

          Kohsuke, can you please have a look at this issue? I think the problem is caused by the refactoring of my plug-ins. Now the static code analysis plug-ins share one common "utility" plug-in that contains the common classes.

          It seems that the remoting layer transfers only the classes of my actual analysis plug-in to the slave but not the required and dependent classes of the analysis-core plug-in. Is there a configuration missing in my plug-in or is this a bug in the remoting layer?

          Ulli Hafner added a comment - Kohsuke, can you please have a look at this issue? I think the problem is caused by the refactoring of my plug-ins. Now the static code analysis plug-ins share one common "utility" plug-in that contains the common classes. It seems that the remoting layer transfers only the classes of my actual analysis plug-in to the slave but not the required and dependent classes of the analysis-core plug-in. Is there a configuration missing in my plug-in or is this a bug in the remoting layer?
          Ulli Hafner made changes -
          Assignee Original: Ulli Hafner [ drulli ] New: Kohsuke Kawaguchi [ kohsuke ]
          Ulli Hafner made changes -
          Link New: This issue is blocking JENKINS-5025 [ JENKINS-5025 ]
          Ulli Hafner made changes -
          Link Original: This issue is blocking JENKINS-5025 [ JENKINS-5025 ]
          Ulli Hafner made changes -
          Link New: This issue is duplicated by JENKINS-5025 [ JENKINS-5025 ]
          Ulli Hafner made changes -
          Component/s New: checkstyle [ 15512 ]
          Component/s New: dry [ 15591 ]
          Component/s New: findbugs [ 15496 ]
          Component/s New: pmd [ 15511 ]
          Component/s New: tasks-plugin [ 15498 ]
          Summary Original: Exception when parsing warnings in console log on slave New: Analysis plug-ins don't work with master slave configurations
          Ulli Hafner made changes -
          Environment New: linux (on windows slaves there are no problems)

            drulli Ulli Hafner
            tyu@eridex.org tyu@eridex.org
            Votes:
            9 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: