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

Missing M2 class on slave when publishing results

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • violations-plugin
    • None
    • Platform: All, OS: All

      Hello,
      On Hudson 1.300 and Violations plugin 0.7.3, the following exception occurs when
      publishing fxCop results on a .Net project :
      (we are using the same Violations plugins on other hudson slaves to publish
      junit and findbugs on Java projest and it works fine. Actually we had quite the
      same exception on the Java projects some time ago but it has been fixed since
      then by an hudson upgrade).

      FATAL: remote file operation failed

      hudson.util.IOException2: remote file operation failed

      at hudson.FilePath.act(FilePath.java:596)

      at
      hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:77)

      at
      hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:56)

      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:372)

      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:360)

      at hudson.model.Build$RunnerImpl.post2(Build.java:183)

      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)

      at hudson.model.Run.run(Run.java:943)

      at hudson.model.Build.run(Build.java:112)

      at hudson.model.ResourceController.execute(ResourceController.java:93)

      at hudson.model.Executor.run(Executor.java:119)

      Caused by: java.io.IOException: Remote call failed

      at hudson.remoting.Channel.call(Channel.java:490)

      at hudson.FilePath.act(FilePath.java:593)

      ... 10 more

      Caused by: java.lang.NoClassDefFoundError: hudson/maven/MavenReporterDescriptor

      at java.lang.ClassLoader.defineClass1(Native Method)

      at java.lang.ClassLoader.defineClass(Unknown Source)

      at java.lang.ClassLoader.defineClass(Unknown Source)

      at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:100)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClassInternal(Unknown Source)

      at
      hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:98)

      at
      hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)

      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1583)

      at hudson.remoting.UserRequest.perform(UserRequest.java:97)

      at hudson.remoting.UserRequest.perform(UserRequest.java:46)

      at hudson.remoting.Request$2.run(Request.java:236)

      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

      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:54)

      at java.lang.Thread.run(Unknown Source)

      Thanks in advance for your help,
      Mathieu

          [JENKINS-3578] Missing M2 class on slave when publishing results

          Just updated the description. This is most likely due to the pluginization of M2
          job types in hudson.

          peterkittreilly added a comment - Just updated the description. This is most likely due to the pluginization of M2 job types in hudson.

          Hello,

          I am experiencing the same issue with a Java project using Hudson 1.301 and
          Violations plugin 0.7.3. The master runs on a Windows Server 2003 R2 server and
          the slave on a Linux Fedora 10.

          The job if built on the master itself will complete successfully.

          Please let me know if more details are needed to track down the issue.

          Many Thanks,
          andrea

          [INFO] ------------------------------------------------------------------------

          [INFO] BUILD SUCCESSFUL

          [INFO] ------------------------------------------------------------------------

          [INFO] Total time: 3 minutes 14 seconds

          [INFO] Finished at: Tue Apr 28 09:15:47 BST 2009

          [INFO] Final Memory: 112M/231M

          [INFO] ------------------------------------------------------------------------

          Recording test results

          [CHECKSTYLE] Collecting checkstyle analysis files...

          [CHECKSTYLE] Found 93 annotations (93 new, 0 high, 93 normal, 0 low)

          [CHECKSTYLE] Not changing build status, since no threshold has been exceeded

          Publishing Cobertura coverage report...

          Publishing Cobertura coverage results...

          Code coverage enforcement failed for the following metrics:

          Lines

          Setting Build to unstable.

          [PMD] Collecting PMD analysis files...

          [PMD] Found 0 annotations (0 new, 0 high, 0 normal, 0 low)

          [PMD] Not changing build status, since no threshold has been exceeded

          [TASKS] Scanning workspace files for tasks...

          [TASKS] Found 77 annotations (77 new, 0 high, 68 normal, 9 low)

          [TASKS] Setting build status to UNSTABLE since total number of annotations
          exceeds the threshold 0

          FATAL: remote file operation failed

          hudson.util.IOException2: remote file operation failed

          at hudson.FilePath.act(FilePath.java:596)

          at
          hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:77)

          at
          hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:56)

          at
          hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:372)

          at
          hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:360)

          at hudson.model.Build$RunnerImpl.post2(Build.java:183)

          at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)

          at hudson.model.Run.run(Run.java:943)

          at hudson.model.Build.run(Build.java:112)

          at hudson.model.ResourceController.execute(ResourceController.java:93)

          at hudson.model.Executor.run(Executor.java:119)

          Caused by: java.io.IOException: Remote call failed

          at hudson.remoting.Channel.call(Channel.java:490)

          at hudson.FilePath.act(FilePath.java:593)

          ... 10 more

          Caused by: java.lang.NoClassDefFoundError: hudson/maven/MavenReporterDescriptor

          at java.lang.ClassLoader.defineClass1(Native Method)

          at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

          at java.lang.ClassLoader.defineClass(ClassLoader.java:466)

          at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:100)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

          at
          hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:98)

          at
          hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)

          at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1583)

          at hudson.remoting.UserRequest.perform(UserRequest.java:97)

          at hudson.remoting.UserRequest.perform(UserRequest.java:46)

          at hudson.remoting.Request$2.run(Request.java:236)

          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 hudson.remoting.Engine$1$1.run(Engine.java:54)

          at java.lang.Thread.run(Thread.java:619)

          Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenReporterDescriptor

          at
          hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch(RemoteClassLoader.java:264)

          at sun.reflect.GeneratedMethodAccessor547.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at
          hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:263)

          at hudson.remoting.Request$2.run(Request.java:236)

          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

          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)

          Andrea Barbieri added a comment - Hello, I am experiencing the same issue with a Java project using Hudson 1.301 and Violations plugin 0.7.3. The master runs on a Windows Server 2003 R2 server and the slave on a Linux Fedora 10. The job if built on the master itself will complete successfully. Please let me know if more details are needed to track down the issue. Many Thanks, andrea [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 minutes 14 seconds [INFO] Finished at: Tue Apr 28 09:15:47 BST 2009 [INFO] Final Memory: 112M/231M [INFO] ------------------------------------------------------------------------ Recording test results [CHECKSTYLE] Collecting checkstyle analysis files... [CHECKSTYLE] Found 93 annotations (93 new, 0 high, 93 normal, 0 low) [CHECKSTYLE] Not changing build status, since no threshold has been exceeded Publishing Cobertura coverage report... Publishing Cobertura coverage results... Code coverage enforcement failed for the following metrics: Lines Setting Build to unstable. [PMD] Collecting PMD analysis files... [PMD] Found 0 annotations (0 new, 0 high, 0 normal, 0 low) [PMD] Not changing build status, since no threshold has been exceeded [TASKS] Scanning workspace files for tasks... [TASKS] Found 77 annotations (77 new, 0 high, 68 normal, 9 low) [TASKS] Setting build status to UNSTABLE since total number of annotations exceeds the threshold 0 FATAL: remote file operation failed hudson.util.IOException2: remote file operation failed at hudson.FilePath.act(FilePath.java:596) at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:77) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:56) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:372) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345) at hudson.model.Run.run(Run.java:943) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) Caused by: java.io.IOException: Remote call failed at hudson.remoting.Channel.call(Channel.java:490) at hudson.FilePath.act(FilePath.java:593) ... 10 more Caused by: java.lang.NoClassDefFoundError: hudson/maven/MavenReporterDescriptor at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.lang.ClassLoader.defineClass(ClassLoader.java:466) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:100) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:98) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1583) at hudson.remoting.UserRequest.perform(UserRequest.java:97) at hudson.remoting.UserRequest.perform(UserRequest.java:46) at hudson.remoting.Request$2.run(Request.java:236) 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 hudson.remoting.Engine$1$1.run(Engine.java:54) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenReporterDescriptor at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch(RemoteClassLoader.java:264) at sun.reflect.GeneratedMethodAccessor547.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:263) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 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)

          lauretamisier added a comment -

          This error occured for all publishing and not only for FxCop.

          I have this error for checkstyle for example.

          I have Hudson 1.300

          lauretamisier added a comment - This error occured for all publishing and not only for FxCop. I have this error for checkstyle for example. I have Hudson 1.300

          yes, there was a change in hudson where some classes have been moved out of
          hudson core to an m2 plugin. The ViolationReport class uses one of these
          classes (for a future feature). I have removed the use. and will release a new
          version of the violations plugin (0.7.4) soon.

          Peter

          peterkittreilly added a comment - yes, there was a change in hudson where some classes have been moved out of hudson core to an m2 plugin. The ViolationReport class uses one of these classes (for a future feature). I have removed the use. and will release a new version of the violations plugin (0.7.4) soon. Peter

          fvaldy added a comment -
              • Issue 3500 has been marked as a duplicate of this issue. ***

          fvaldy added a comment - Issue 3500 has been marked as a duplicate of this issue. ***

          lauretamisier added a comment -

          Peter,

          You have commit your modification, so can you do the release for violation plugin ?

          Thanks

          lauretamisier added a comment - Peter, You have commit your modification, so can you do the release for violation plugin ? Thanks

          I have pushed a new version of the plugin 0.7.4 that should fix this

          peterkittreilly added a comment - I have pushed a new version of the plugin 0.7.4 that should fix this

            peterkittreilly peterkittreilly
            mathieucousy mathieucousy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: