java.lang.NoClassDefFoundError: jenkins/plugins/git/AbstractGitSCMSource

Jenkins JIRA | Jesse Glick | 5 months ago
  1. 0

    To reproduce in {{2.14-SNAPSHOT}}: * start on a new home * swat aside the setup wizard * install {{github-branch-source}} including all dependencies * manually upload {{workflow-scm-step-2.0.hpi}} (downgrading from the 2.2 installed from the UC) * restart You will see a warning about cyclic dependencies: {code:none} ... hudson.PluginManager$1$3$2$3 reactOnCycle SEVERE: found cycle in plugin dependencies: (root=Plugin:workflow-scm-step, deactivating all involved) Plugin:workflow-scm-step -> Plugin:git -> Plugin:workflow-scm-step {code} Which looks fine (you need to update {{workflow-scm-step}} to solve the conflict) until you realize it is disabling {{git}} but not its dependencies. So then you see a lot of extension loading errors, which would normally be just noise: {code:none} ... hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error WARNING: Failed to instantiate Key[type=org.jenkinsci.plugins.github_branch_source.GitHubSCMSource$DescriptorImpl, annotation=[none]]; skipping this component com.google.inject.ProvisionException: Guice provision errors: 1) Error injecting constructor, java.lang.NoClassDefFoundError: jenkins/plugins/git/AbstractGitSCMSource at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource$DescriptorImpl.<init>(GitHubSCMSource.java:722) 1 error at ... at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:386) at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:377) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:471) at hudson.ExtensionList.load(ExtensionList.java:349) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.getComponents(ExtensionList.java:167) at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:185) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.iterator(ExtensionList.java:156) at hudson.ExtensionList.get(ExtensionList.java:147) at com.cloudbees.jenkins.GitHubPushTrigger$DescriptorImpl.get(GitHubPushTrigger.java:359) at org.jenkinsci.plugins.github.migration.Migrator.migrate(Migrator.java:40) at org.jenkinsci.plugins.github.GitHubPlugin.postInitialize(GitHubPlugin.java:39) at hudson.PluginManager$2$4$5.run(PluginManager.java:537) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:998) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: jenkins/plugins/git/AbstractGitSCMSource at ... at java.lang.Class.getEnclosingClass(Class.java:1277) at hudson.model.Descriptor.<init>(Descriptor.java:270) at jenkins.scm.api.SCMSourceDescriptor.<init>(SCMSourceDescriptor.java:42) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource$DescriptorImpl.<init>(GitHubSCMSource.java:722) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource$DescriptorImpl$$FastClassByGuice$$fee958e6.newInstance(<generated>) at ... ... 28 more Caused by: java.lang.ClassNotFoundException: jenkins.plugins.git.AbstractGitSCMSource at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376) at ... ... hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error WARNING: Failed to instantiate Key[type=org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator$DescriptorImpl, annotation=[none]]; skipping this component com.google.inject.ProvisionException: Guice provision errors: 1) Error injecting constructor, java.lang.NoClassDefFoundError: jenkins/plugins/git/AbstractGitSCMSource at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator$DescriptorImpl.<init>(GitHubSCMNavigator.java:326) 1 error at ... {code} However after all this you get {code:none} ... hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtException SEVERE: A thread (pool-6-thread-5/40) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code. java.lang.NoClassDefFoundError: org/jenkinsci/plugins/github_branch_source/GitHubSCMSource at java.lang.Class.getDeclaringClass0(Native Method) at java.lang.Class.getDeclaringClass(Class.java:1235) at java.lang.Class.getEnclosingClass(Class.java:1277) at java.lang.Class.getSimpleBinaryName(Class.java:1443) at java.lang.Class.getSimpleName(Class.java:1309) at hudson.init.TaskMethodFinder.getDisplayNameOf(TaskMethodFinder.java:80) at hudson.init.TaskMethodFinder$TaskImpl.getDisplayName(TaskMethodFinder.java:167) at jenkins.InitReactorRunner$1.onTaskStarted(InitReactorRunner.java:64) at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onTaskStarted(ReactorListener.java:89) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:208) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} and at this point Jenkins startup ends; the UI just says _Please wait while Jenkins is restarting..._ forever. These steps to reproduce are somewhat artificial. The original report comes from CloudBees Jenkins Enterprise: after starting 1.642.4.1 and installing {{subversion}} from the update center, Jenkins will not start (though in that case the fatal error comes a little later and lacks the "in a bad way" message.

    Jenkins JIRA | 5 months ago | Jesse Glick
    java.lang.NoClassDefFoundError: jenkins/plugins/git/AbstractGitSCMSource
  2. 0

    To reproduce in {{2.14-SNAPSHOT}}: * start on a new home * swat aside the setup wizard * install {{github-branch-source}} including all dependencies * manually upload {{workflow-scm-step-2.0.hpi}} (downgrading from the 2.2 installed from the UC) * restart You will see a warning about cyclic dependencies: {code:none} ... hudson.PluginManager$1$3$2$3 reactOnCycle SEVERE: found cycle in plugin dependencies: (root=Plugin:workflow-scm-step, deactivating all involved) Plugin:workflow-scm-step -> Plugin:git -> Plugin:workflow-scm-step {code} Which looks fine (you need to update {{workflow-scm-step}} to solve the conflict) until you realize it is disabling {{git}} but not its dependencies. So then you see a lot of extension loading errors, which would normally be just noise: {code:none} ... hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error WARNING: Failed to instantiate Key[type=org.jenkinsci.plugins.github_branch_source.GitHubSCMSource$DescriptorImpl, annotation=[none]]; skipping this component com.google.inject.ProvisionException: Guice provision errors: 1) Error injecting constructor, java.lang.NoClassDefFoundError: jenkins/plugins/git/AbstractGitSCMSource at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource$DescriptorImpl.<init>(GitHubSCMSource.java:722) 1 error at ... at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:386) at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:377) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:471) at hudson.ExtensionList.load(ExtensionList.java:349) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.getComponents(ExtensionList.java:167) at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:185) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.iterator(ExtensionList.java:156) at hudson.ExtensionList.get(ExtensionList.java:147) at com.cloudbees.jenkins.GitHubPushTrigger$DescriptorImpl.get(GitHubPushTrigger.java:359) at org.jenkinsci.plugins.github.migration.Migrator.migrate(Migrator.java:40) at org.jenkinsci.plugins.github.GitHubPlugin.postInitialize(GitHubPlugin.java:39) at hudson.PluginManager$2$4$5.run(PluginManager.java:537) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:998) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: jenkins/plugins/git/AbstractGitSCMSource at ... at java.lang.Class.getEnclosingClass(Class.java:1277) at hudson.model.Descriptor.<init>(Descriptor.java:270) at jenkins.scm.api.SCMSourceDescriptor.<init>(SCMSourceDescriptor.java:42) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource$DescriptorImpl.<init>(GitHubSCMSource.java:722) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource$DescriptorImpl$$FastClassByGuice$$fee958e6.newInstance(<generated>) at ... ... 28 more Caused by: java.lang.ClassNotFoundException: jenkins.plugins.git.AbstractGitSCMSource at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376) at ... ... hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error WARNING: Failed to instantiate Key[type=org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator$DescriptorImpl, annotation=[none]]; skipping this component com.google.inject.ProvisionException: Guice provision errors: 1) Error injecting constructor, java.lang.NoClassDefFoundError: jenkins/plugins/git/AbstractGitSCMSource at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator$DescriptorImpl.<init>(GitHubSCMNavigator.java:326) 1 error at ... {code} However after all this you get {code:none} ... hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtException SEVERE: A thread (pool-6-thread-5/40) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code. java.lang.NoClassDefFoundError: org/jenkinsci/plugins/github_branch_source/GitHubSCMSource at java.lang.Class.getDeclaringClass0(Native Method) at java.lang.Class.getDeclaringClass(Class.java:1235) at java.lang.Class.getEnclosingClass(Class.java:1277) at java.lang.Class.getSimpleBinaryName(Class.java:1443) at java.lang.Class.getSimpleName(Class.java:1309) at hudson.init.TaskMethodFinder.getDisplayNameOf(TaskMethodFinder.java:80) at hudson.init.TaskMethodFinder$TaskImpl.getDisplayName(TaskMethodFinder.java:167) at jenkins.InitReactorRunner$1.onTaskStarted(InitReactorRunner.java:64) at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onTaskStarted(ReactorListener.java:89) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:208) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} and at this point Jenkins startup ends; the UI just says _Please wait while Jenkins is restarting..._ forever. These steps to reproduce are somewhat artificial. The original report comes from CloudBees Jenkins Enterprise: after starting 1.642.4.1 and installing {{subversion}} from the update center, Jenkins will not start (though in that case the fatal error comes a little later and lacks the "in a bad way" message.

    Jenkins JIRA | 5 months ago | Jesse Glick
    java.lang.NoClassDefFoundError: jenkins/plugins/git/AbstractGitSCMSource
  3. 0

    [JIRA] (JENKINS-36666) Jenkins startup fails due to cyclic dependency miscalculation

    Google Groups | 5 months ago | jgl...@cloudbees.com (JIRA)
    java.lang.NoClassDefFoundError: jenkins/plugins/git/AbstractGitSCMSource at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource$DescriptorImpl.&lt;init&gt;(GitHubSCMSource.java:722) 1 error at ...
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I regret that I have no additional information concerning this issue -- the exception below is all I get when commencing a build. :( Last Build : #18 FATAL: remote file operation failed hudson.util.IOException2: remote file operation failed at hudson.FilePath.act(FilePath.java:672) at hudson.FilePath.act(FilePath.java:660) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:358) at hudson.model.AbstractProject.checkout(AbstractProject.java:898) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:400) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:349) at hudson.model.Run.run(Run.java:1090) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:301) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:122) Caused by: java.io.IOException: Remote call failed at hudson.remoting.Channel.call(Channel.java:524) at hudson.FilePath.act(FilePath.java:667) ... 9 more Caused by: java.lang.NoClassDefFoundError: hudson/plugins/git/GitException at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2291) at java.lang.Class.getDeclaredField(Class.java:1880) at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1610) at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.UserRequest.perform(UserRequest.java:87) at hudson.remoting.UserRequest.perform(UserRequest.java:47) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: hudson.plugins.git.GitException at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch(RemoteClassLoader.java:275) at sun.reflect.GeneratedMethodAccessor660.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636)

    Jenkins JIRA | 7 years ago | sfalvo
    hudson.util.IOException2: remote file operation failed
  6. 0

    Gerrit Trigger, Jenkins GIT Plugin, and GerritTriggerBuildChooser

    Google Groups | 4 years ago | Bo Shi
    java.lang.NoClassDefFoundError: hudson/plugins/git/IGitAPI

    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

      jenkins/plugins/git/AbstractGitSCMSource

      at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator$DescriptorImpl.<init>()
    2. org.jenkinsci.plugins
      GitHubSCMNavigator$DescriptorImpl.<init>
      1. org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator$DescriptorImpl.<init>(GitHubSCMNavigator.java:326)
      1 frame