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

ClassNotFoundException: org.jvnet.hudson.maven3.listeners.MavenProjectInfo

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • maven-plugin
    • None
    • Jenkins 1.575, Maven plugin 2.1, Maven 3.1.1, Java 1.7.0_45

      Some builds for Maven jobs are failing intermittently (even thou Maven itself succeeds), with the following error:

      ...
      
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 31.053s
      [INFO] Finished at: Wed Sep 03 14:42:42 BRT 2014
      [INFO] Final Memory: 9M/22M
      [INFO] ------------------------------------------------------------------------
      ERROR: Failed to parse POMs
      hudson.util.IOException2: java.lang.reflect.InvocationTargetException
          at hudson.maven.Maven3Builder.call(Maven3Builder.java:178)
          at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
          at hudson.remoting.UserRequest.perform(UserRequest.java:118)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:328)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at hudson.maven.Maven3Builder.call(Maven3Builder.java:134)
          ... 9 more
      Caused by: java.lang.Exception: java.lang.reflect.InvocationTargetException
          at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:184)
          ... 14 more
      Caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
          at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181)
          ... 14 more
      Caused by: java.lang.NoClassDefFoundError: org/jvnet/hudson/maven3/listeners/MavenProjectInfo
          at org.jvnet.hudson.maven3.listeners.HudsonMavenExecutionResult.<init>(HudsonMavenExecutionResult.java:53)
          at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:133)
          ... 21 more
      Caused by: java.lang.ClassNotFoundException: org.jvnet.hudson.maven3.listeners.MavenProjectInfo
          at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
          at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
          at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
          at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
          ... 23 more
      

          [JENKINS-24572] ClassNotFoundException: org.jvnet.hudson.maven3.listeners.MavenProjectInfo

          Daniel Beck added a comment -

          What's common to the builds that fail? Running on the same node? Is there anything else (like a failure to cache) logged in the system log, or slave log?

          Daniel Beck added a comment - What's common to the builds that fail? Running on the same node? Is there anything else (like a failure to cache) logged in the system log, or slave log?

          No, the failing and the passing builds ran on the same node. I searched the master's log, the slave's log and the build log for "cache" and didn't find anything.

          Daniel Serodio added a comment - No, the failing and the passing builds ran on the same node. I searched the master's log, the slave's log and the build log for "cache" and didn't find anything.

          Oleg Nenashev added a comment -

          The class is located in maven-interceptors
          https://github.com/jenkinsci/maven-interceptors/blob/master/maven3-interceptor-commons/src/main/java/org/jvnet/hudson/maven3/listeners/MavenProjectInfo.java

          This class exists since maven-modules-1.4.
          The dependency version in current Maven Project Plugin is 1.5.

          dserodio, Have you tried updating to the latest Maven Plugin version?

          Oleg Nenashev added a comment - The class is located in maven-interceptors https://github.com/jenkinsci/maven-interceptors/blob/master/maven3-interceptor-commons/src/main/java/org/jvnet/hudson/maven3/listeners/MavenProjectInfo.java This class exists since maven-modules-1.4. The dependency version in current Maven Project Plugin is 1.5. dserodio , Have you tried updating to the latest Maven Plugin version?

          Thanks for the reply Oleg. We've updated Jenkins, restarted the slaves and this error is gone. I'll close this issue and reopen in case it reappears.

          Daniel Serodio added a comment - Thanks for the reply Oleg. We've updated Jenkins, restarted the slaves and this error is gone. I'll close this issue and reopen in case it reappears.

          Eduard Moraru added a comment -

          Still reproducing (and a real pain). See JENKINS-33738

          Eduard Moraru added a comment - Still reproducing (and a real pain). See JENKINS-33738

            Unassigned Unassigned
            dserodio Daniel Serodio
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: