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

java.lang.ClassNotFoundException: hudson.maven.AbstractMavenProject

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • maven-plugin
    • None
    • RHEL

      I upgraded to 1.509.2. Now, the post build actions of the configure page is not displaying and giving an error 500. The Jenkins log is full of java.lang.ClassNotFoundException: hudson.maven.AbstractMavenProject.

      Screen shots and logs attached

      NOTE: I downgraded back to 1.509.1 but the error still exists.

          [JENKINS-18849] java.lang.ClassNotFoundException: hudson.maven.AbstractMavenProject

          The same error on 1.524 but apparently related to Violations plugin

          Caused by: java.lang.NoClassDefFoundError: hudson/maven/AbstractMavenProject
                at hudson.plugins.violations.hudson.ViolationsFreestyleDescriptor.isApplicable(ViolationsFreestyleDescriptor.java:104)
                at hudson.tasks.BuildStepDescriptor.filter(BuildStepDescriptor.java:84)
                at hudson.Functions.getPublisherDescriptors(Functions.java:766)
                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:616)
          

          Francisco Ruiz added a comment - The same error on 1.524 but apparently related to Violations plugin Caused by: java.lang.NoClassDefFoundError: hudson/maven/AbstractMavenProject at hudson.plugins.violations.hudson.ViolationsFreestyleDescriptor.isApplicable(ViolationsFreestyleDescriptor.java:104) at hudson.tasks.BuildStepDescriptor.filter(BuildStepDescriptor.java:84) at hudson.Functions.getPublisherDescriptors(Functions.java:766) 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:616)

          I had the same error on 1.525.
          Enabling the Maven Integration plugin (maven-plugin) in Plugin manager worked as a workaround.

          Aleksi Hoffman added a comment - I had the same error on 1.525. Enabling the Maven Integration plugin (maven-plugin) in Plugin manager worked as a workaround.

          Enabling the Maven Integration plugin has worked for me too.

          Francisco Ruiz added a comment - Enabling the Maven Integration plugin has worked for me too.

          Rodney Oliver added a comment -

          +1 on enabling the Maven Integration plugin as a workaround for this issue

          Rodney Oliver added a comment - +1 on enabling the Maven Integration plugin as a workaround for this issue

          Oleg Nenashev added a comment -

          The issue was in the Maven plugin, which has been decoupled from the Jenkins core (Oct 22, 2013)

          Oleg Nenashev added a comment - The issue was in the Maven plugin, which has been decoupled from the Jenkins core (Oct 22, 2013)

          Daniel Beck added a comment -

          Oleg: Actually, cause is a until just now undocumented change to plugin dependency loading in 1.524. The original of issues like this one is probably JENKINS-18922.

          Daniel Beck added a comment - Oleg: Actually, cause is a until just now undocumented change to plugin dependency loading in 1.524 . The original of issues like this one is probably JENKINS-18922 .

          Oleg Nenashev added a comment -

          According to JENKINS-18654, the fix has been backported to 1.509.3, but the issue has been submitted to 1.509.2-

          Oleg Nenashev added a comment - According to JENKINS-18654 , the fix has been backported to 1.509.3, but the issue has been submitted to 1.509.2-

          Daniel Beck added a comment -

          Right, I checked this issue in more detail and they're only superficially the same: Due to IO problems of some kind it failed to extract the Maven Plugin (and possibly Monitor External Job), so it's not just disabled, but missing completely. The effect is the same as with a disabled plugin post-1.524.

          Fix the logged IO root cause (e.g. missing permissions), possibly deleting maven-plugin.jpi and the issue should disappear.


          More information is needed to investigate this further, like the permissions inside the plugins directory, what kind of file system, etc.

          Daniel Beck added a comment - Right, I checked this issue in more detail and they're only superficially the same: Due to IO problems of some kind it failed to extract the Maven Plugin (and possibly Monitor External Job), so it's not just disabled, but missing completely. The effect is the same as with a disabled plugin post-1.524. Fix the logged IO root cause (e.g. missing permissions), possibly deleting maven-plugin.jpi and the issue should disappear. More information is needed to investigate this further, like the permissions inside the plugins directory, what kind of file system, etc.

          Jesse Glick added a comment -

          Is this not just a duplicate of JENKINS-18922?

          Jesse Glick added a comment - Is this not just a duplicate of JENKINS-18922 ?

          Daniel Beck added a comment -

          Jesse: See my previous comment. They look similar but this is a version from before the 1.524 fix or backport.

          Despite that, resolving as incomplete, as there has been no response to my comment asking for additional information.

          Daniel Beck added a comment - Jesse: See my previous comment. They look similar but this is a version from before the 1.524 fix or backport. Despite that, resolving as incomplete, as there has been no response to my comment asking for additional information.

            Unassigned Unassigned
            hoohaa8384 Joshua Slominski
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: