java.lang.NoClassDefFoundError: jenkins/model/RunAction2

Google Groups | Quang Truong | 5 months ago
  1. 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
  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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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
  5. 0

    getting a "Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet" when starting springboot project from intellij

    Stack Overflow | 1 year ago | mkarthik415
    java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.actuate.autoconfigure.AuditAutoConfiguration$AuditEventRepositoryConfiguration due to internal class not found. This can happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)

  1. Andreas Häber 3 times, last 3 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

    jenkins.model.RunAction2

    at java.net.URLClassLoader.findClass()
  2. Java RT
    Class.getDeclaredMethods
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    5. java.lang.ClassLoader.defineClass1(Native Method)
    6. java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    7. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    8. java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    9. java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    10. java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    11. java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    12. java.security.AccessController.doPrivileged(Native Method)
    13. java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    14. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    15. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    16. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    17. java.lang.ClassLoader.defineClass1(Native Method)
    18. java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    19. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    20. java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    21. java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    22. java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    23. java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    24. java.security.AccessController.doPrivileged(Native Method)
    25. java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    26. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    27. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    28. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    29. java.lang.Class.getDeclaredMethods0(Native Method)
    30. java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    31. java.lang.Class.getDeclaredMethods(Class.java:1975)
    31 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
    InitializerFinder.discoverTasks
    1. hudson.init.InitializerFinder.discoverTasks(InitializerFinder.java:70)
    2. hudson.init.InitializerFinder.discoverTasks(InitializerFinder.java:55)
    2 frames
  5. init
    Reactor.<init>
    1. org.jvnet.hudson.reactor.TaskBuilder$2.discoverTasks(TaskBuilder.java:40)
    2. org.jvnet.hudson.reactor.Reactor.<init>(Reactor.java:128)
    3. org.jvnet.hudson.reactor.Reactor.<init>(Reactor.java:133)
    3 frames
  6. jenkins.model
    Jenkins.<init>
    1. jenkins.model.Jenkins$6.<init>(Jenkins.java:821)
    2. jenkins.model.Jenkins.executeReactor(Jenkins.java:821)
    3. jenkins.model.Jenkins.<init>(Jenkins.java:761)
    3 frames
  7. Hudson
    Hudson.<init>
    1. hudson.model.Hudson.<init>(Hudson.java:81)
    1 frame
  8. Hudson :: Test Framework
    HudsonTestCase.setUp
    1. org.jvnet.hudson.test.HudsonTestCase.newHudson(HudsonTestCase.java:441)
    2. org.jvnet.hudson.test.HudsonTestCase.setUp(HudsonTestCase.java:300)
    2 frames
  9. org.jenkins.plugins
    WhenRunningJobsByDateReport.setUp
    1. org.jenkins.plugins.audit2db.test.integration.WhenRunningJobsByDateReport.setUp(WhenRunningJobsByDateReport.java:66)
    1 frame
  10. JUnit
    TestCase.runBare
    1. junit.framework.TestCase.runBare(TestCase.java:132)
    1 frame
  11. Hudson :: Test Framework
    HudsonTestCase.runBare
    1. org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:285)
    1 frame
  12. JUnit
    JUnit38ClassRunner.run
    1. junit.framework.TestResult$1.protect(TestResult.java:110)
    2. junit.framework.TestResult.runProtected(TestResult.java:128)
    3. junit.framework.TestResult.run(TestResult.java:113)
    4. junit.framework.TestCase.run(TestCase.java:124)
    5. junit.framework.TestSuite.runTest(TestSuite.java:232)
    6. junit.framework.TestSuite.run(TestSuite.java:227)
    7. org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
    7 frames
  13. JUnit4 Provider
    JUnit4Provider.invoke
    1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
    2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
    3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
    3 frames
  14. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  15. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
    3. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
    4. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
    5 frames