java.lang.NoClassDefFoundError: hudson/maven/MavenBuild

Jenkins JIRA | ikedam | 3 years ago
  1. 0

    Despite not listing Maven as a dependency, Gerrit Trigger depends on the Maven Integration plugin. When I disable the Maven Integration plugin, Jenkins still triggers on a new Gerrit patch set, but when the build is done, Jenkins fails to report back to Gerrit with the following error message: {quote} INFO: SpECTRE_simple_Gerrit #3 main build action completed: SUCCESS Apr 24, 2014 5:28:56 PM com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.ToGerritRunListener onCompleted INFO: Completed. Build: SpECTRE_simple_Gerrit #3 Cause: GerritCause: PatchsetCreated: Change: 13 PatchSet: 4 silent: false Apr 24, 2014 5:28:56 PM hudson.model.listeners.RunListener report WARNING: RunListener failed java.lang.NoClassDefFoundError: hudson/maven/MavenBuild at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2531) at java.lang.Class.getDeclaredMethod(Class.java:2002) at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:165) at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:170) at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:149) [much more stack trace...] {quote} When I enable the Maven Integration plugin, Gerrit Trigger works perfectly and reports back to Gerrit.

    Jenkins JIRA | 3 years ago | Jonas Lippuner
    java.lang.NoClassDefFoundError: hudson/maven/MavenBuild
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Despite not listing Maven as a dependency, Gerrit Trigger depends on the Maven Integration plugin. When I disable the Maven Integration plugin, Jenkins still triggers on a new Gerrit patch set, but when the build is done, Jenkins fails to report back to Gerrit with the following error message: {quote} INFO: SpECTRE_simple_Gerrit #3 main build action completed: SUCCESS Apr 24, 2014 5:28:56 PM com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.ToGerritRunListener onCompleted INFO: Completed. Build: SpECTRE_simple_Gerrit #3 Cause: GerritCause: PatchsetCreated: Change: 13 PatchSet: 4 silent: false Apr 24, 2014 5:28:56 PM hudson.model.listeners.RunListener report WARNING: RunListener failed java.lang.NoClassDefFoundError: hudson/maven/MavenBuild at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2531) at java.lang.Class.getDeclaredMethod(Class.java:2002) at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:165) at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:170) at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:149) [much more stack trace...] {quote} When I enable the Maven Integration plugin, Gerrit Trigger works perfectly and reports back to Gerrit.

    Jenkins JIRA | 3 years ago | Jonas Lippuner
    java.lang.NoClassDefFoundError: hudson/maven/MavenBuild
  4. 0

    Using 1.37 of the plugin and 1.531 of Jenkins, getting stack trace when clicking on the email slicer. [Author indicated in an email to me: "This is because Maven support was originally baked into Jenkins, and now is separated out, and some teams are disabling Maven support because they don't need it. The workaround is to reinstall/re-enable that Maven support plugin."] We do have Maven diabled, because we do not use it, but it would be useful if the email slicing functionality did not depend on it. javax.servlet.ServletException: java.lang.NoClassDefFoundError: hudson/maven/MavenModuleSet at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:735) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:381) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:587) at org.kohsuke.stapler.Stapler.service(Stapler.java:218) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:248) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at winstone.RequestDispatcher.forward(RequestDispatcher.java:331) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) 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 winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: hudson/maven/MavenModuleSet at configurationslicing.email.CoreEmailSlicer$CoreEmailSliceSpec.getProjectHandler(CoreEmailSlicer.java:36) at configurationslicing.email.AbstractEmailSliceSpec.getValues(AbstractEmailSliceSpec.java:32) at configurationslicing.email.AbstractEmailSliceSpec.getValues(AbstractEmailSliceSpec.java:16) at configurationslicing.UnorderedStringSlicer.accumulate(UnorderedStringSlicer.java:72) at configurationslicing.UnorderedStringSlicer.accumulate(UnorderedStringSlicer.java:6) at configurationslicing.ConfigurationSlicing$SliceExecutor.execute(ConfigurationSlicing.java:125) at configurationslicing.ConfigurationSlicing$SliceExecutor.<init>(ConfigurationSlicing.java:113) at configurationslicing.ConfigurationSlicing.getDynamic(ConfigurationSlicing.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:379) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685) ... 38 more

    Jenkins JIRA | 3 years ago | w brown
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: hudson/maven/MavenModuleSet

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      hudson/maven/MavenBuild

      at hudson.plugins.copyartifact.CopyArtifact$DescriptorImpl.<init>()
    2. hudson.plugins.copyartifact
      CopyArtifact$DescriptorImpl.<init>
      1. hudson.plugins.copyartifact.CopyArtifact$DescriptorImpl.<init>(Unknown Source)
      1 frame