org.jvnet.hudson.reactor.ReactorException: java.lang.NoClassDefFoundError: hudson/maven/MavenBuild

Jenkins JIRA | Jesse Glick | 3 years ago
  1. 0

    A user who perhaps had the Maven plugin disabled or uninstalled encountered this fatal error during Jenkins startup: {code:none} ... SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Discovering plugin initialization tasks java.lang.NoClassDefFoundError: hudson/maven/MavenBuild at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2451) at java.lang.Class.getDeclaredMethods(Class.java:1810) at org.jvnet.hudson.annotation_indexer.Index$2$1.fetch(Index.java:101) at org.jvnet.hudson.annotation_indexer.Index$2$1.hasNext(Index.java:71) at org.jvnet.hudson.annotation_indexer.FilterIterator.fetch(FilterIterator.java:23) at org.jvnet.hudson.annotation_indexer.FilterIterator.hasNext(FilterIterator.java:42) at hudson.init.InitializerFinder.discoverTasks(InitializerFinder.java:70) at hudson.PluginManager$2$1$3.run(PluginManager.java:367) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:888) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) 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:722) Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenBuild at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 17 more ... SEVERE hudson.WebAppMain$2#run: Failed to initialize Jenkins org.jvnet.hudson.reactor.ReactorException: java.lang.NoClassDefFoundError: hudson/maven/MavenBuild at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) at jenkins.InitReactorRunner.run(InitReactorRunner.java:43) at jenkins.model.Jenkins.executeReactor(Jenkins.java:899) at jenkins.model.Jenkins.<init>(Jenkins.java:801) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:214) Caused by: java.lang.NoClassDefFoundError: hudson/maven/MavenBuild at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2451) at java.lang.Class.getDeclaredMethods(Class.java:1810) at org.jvnet.hudson.annotation_indexer.Index$2$1.fetch(Index.java:101) at org.jvnet.hudson.annotation_indexer.Index$2$1.hasNext(Index.java:71) at org.jvnet.hudson.annotation_indexer.FilterIterator.fetch(FilterIterator.java:23) at org.jvnet.hudson.annotation_indexer.FilterIterator.hasNext(FilterIterator.java:42) at hudson.init.InitializerFinder.discoverTasks(InitializerFinder.java:70) at hudson.PluginManager$2$1$3.run(PluginManager.java:367) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:888) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) 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:722) Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenBuild at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 17 more {code} The annotation indexer should just proceed in case some annotated classes are unloadable due to linkage errors, just as it proceeds when the classes are missing.

    Jenkins JIRA | 3 years ago | Jesse Glick
    java.lang.NoClassDefFoundError: hudson/maven/MavenBuild
  2. 0

    A user who perhaps had the Maven plugin disabled or uninstalled encountered this fatal error during Jenkins startup: {code:none} ... SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Discovering plugin initialization tasks java.lang.NoClassDefFoundError: hudson/maven/MavenBuild at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2451) at java.lang.Class.getDeclaredMethods(Class.java:1810) at org.jvnet.hudson.annotation_indexer.Index$2$1.fetch(Index.java:101) at org.jvnet.hudson.annotation_indexer.Index$2$1.hasNext(Index.java:71) at org.jvnet.hudson.annotation_indexer.FilterIterator.fetch(FilterIterator.java:23) at org.jvnet.hudson.annotation_indexer.FilterIterator.hasNext(FilterIterator.java:42) at hudson.init.InitializerFinder.discoverTasks(InitializerFinder.java:70) at hudson.PluginManager$2$1$3.run(PluginManager.java:367) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:888) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) 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:722) Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenBuild at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 17 more ... SEVERE hudson.WebAppMain$2#run: Failed to initialize Jenkins org.jvnet.hudson.reactor.ReactorException: java.lang.NoClassDefFoundError: hudson/maven/MavenBuild at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) at jenkins.InitReactorRunner.run(InitReactorRunner.java:43) at jenkins.model.Jenkins.executeReactor(Jenkins.java:899) at jenkins.model.Jenkins.<init>(Jenkins.java:801) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:214) Caused by: java.lang.NoClassDefFoundError: hudson/maven/MavenBuild at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2451) at java.lang.Class.getDeclaredMethods(Class.java:1810) at org.jvnet.hudson.annotation_indexer.Index$2$1.fetch(Index.java:101) at org.jvnet.hudson.annotation_indexer.Index$2$1.hasNext(Index.java:71) at org.jvnet.hudson.annotation_indexer.FilterIterator.fetch(FilterIterator.java:23) at org.jvnet.hudson.annotation_indexer.FilterIterator.hasNext(FilterIterator.java:42) at hudson.init.InitializerFinder.discoverTasks(InitializerFinder.java:70) at hudson.PluginManager$2$1$3.run(PluginManager.java:367) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:888) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) 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:722) Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenBuild at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 17 more {code} The annotation indexer should just proceed in case some annotated classes are unloadable due to linkage errors, just as it proceeds when the classes are missing.

    Jenkins JIRA | 3 years ago | Jesse Glick
    java.lang.NoClassDefFoundError: hudson/maven/MavenBuild
  3. 0

    java.lang.NoClassDefFoundError and java.lang.IllegalStateException, add dependency when build plugin

    Google Groups | 5 months ago | Quang Truong
    java.lang.NoClassDefFoundError: jenkins/model/RunAction2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    sbt 0.13 beta 2 Internal Exception

    GitHub | 3 years ago | marcelinarcyz
    java.lang.NoClassDefFoundError: org/apache/solr/client/solrj/SolrServerException

  1. Andreas Häber 3 times, last 2 weeks ago
  2. linxiaolong 6 times, last 2 months ago
  3. poroszd 2 times, last 3 months ago
  4. aldrinleal 2 times, last 4 months ago
  5. davidvanlaatum 15 times, last 6 months ago
1 more registered users
84 unregistered visitors
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.ClassNotFoundException

    hudson.maven.MavenBuild

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.getDeclaredMethods
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    7. java.lang.Class.getDeclaredMethods0(Native Method)
    8. java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
    9. java.lang.Class.getDeclaredMethods(Class.java:1810)
    9 frames
  3. annotation-indexer
    FilterIterator.hasNext
    1. org.jvnet.hudson.annotation_indexer.Index$2$1.fetch(Index.java:101)
    2. org.jvnet.hudson.annotation_indexer.Index$2$1.hasNext(Index.java:71)
    3. org.jvnet.hudson.annotation_indexer.FilterIterator.fetch(FilterIterator.java:23)
    4. org.jvnet.hudson.annotation_indexer.FilterIterator.hasNext(FilterIterator.java:42)
    4 frames
  4. Hudson
    PluginManager$2$1$3.run
    1. hudson.init.InitializerFinder.discoverTasks(InitializerFinder.java:70)
    2. hudson.PluginManager$2$1$3.run(PluginManager.java:367)
    2 frames
  5. init
    Reactor.runTask
    1. org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
    2. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
    2 frames
  6. jenkins.model
    Jenkins$7.runTask
    1. jenkins.model.Jenkins$7.runTask(Jenkins.java:888)
    1 frame
  7. init
    Reactor$Node.run
    1. org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
    2. org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
    2 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:722)
    3 frames