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

NoClassDefFoundError during startup (Template Project plugin 1.5)

    Details

    • Similar Issues:

      Description

      After upgrading the Template Project Plugin from 1.4.2 to 1.5 following error is thrown during startup of Jenkins:

      PM WARNING hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error

      Failed to instantiate Key[type=hudson.plugins.templateproject.ProxySCM$DescriptorImpl, annotation=[none]]; skipping this component
      com.google.inject.ProvisionException: Guice provision errors:

      1) Error injecting constructor, java.lang.NoClassDefFoundError: org/jenkinsci/plugins/multiplescms/MultiSCMRevisionState
      at hudson.plugins.templateproject.ProxySCM$DescriptorImpl.<init>(ProxySCM.java:112)

      1 error
      at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52)
      at com.google.inject.Scopes$1$1.get(Scopes.java:65)
      at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:427)
      at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
      at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)
      at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1051)
      at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)
      at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:389)
      at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:380)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:386)
      at hudson.ExtensionList.load(ExtensionList.java:300)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253)
      at hudson.ExtensionList.iterator(ExtensionList.java:143)
      at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1192)
      at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:135)
      at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35)
      at hudson.PluginManager$2$1$2.run(PluginManager.java:389)
      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:904)
      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:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/multiplescms/MultiSCMRevisionState
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
      at java.lang.Class.getMethod0(Class.java:2856)
      at java.lang.Class.getMethod(Class.java:1668)
      at hudson.model.Descriptor.<init>(Descriptor.java:286)
      at hudson.scm.SCMDescriptor.<init>(SCMDescriptor.java:71)
      at hudson.plugins.templateproject.ProxySCM$DescriptorImpl.<init>(ProxySCM.java:112)
      at hudson.plugins.templateproject.ProxySCM$DescriptorImpl$$FastClassByGuice$$4e632614.newInstance(<generated>)
      at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
      at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
      at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
      at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88)
      at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
      at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
      at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      ... 24 more
      Caused by: java.lang.ClassNotFoundException: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState
      at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375)
      at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
      at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ... 40 more

        Attachments

          Issue Links

            Activity

            tkahler Thorsten Kahler created issue -
            tkahler Thorsten Kahler made changes -
            Field Original Value New Value
            Summary NoClassDefFoundError during startup NoClassDefFoundError during startup (Template Project plugin 1.5)
            brantone Brantone made changes -
            Component/s multiple-scms-plugin [ 15810 ]
            brantone Brantone made changes -
            Assignee huybrechts [ huybrechts ]
            brantone Brantone made changes -
            Assignee Brantone [ brantone ]
            tkahler Thorsten Kahler made changes -
            Environment Jenkins 1.609.2
            Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
            CentOS
            Jenkins 1.609.2
            Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
            CentOS
            Template Project plugin 1.5.0
            jazze Jason Azze made changes -
            Link This issue is related to JENKINS-31712 [ JENKINS-31712 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 165336 ] JNJira + In-Review [ 181930 ]

              People

              • Assignee:
                brantone Brantone
                Reporter:
                tkahler Thorsten Kahler
              • Votes:
                5 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated: