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

Disabled plugins should be managed as missed dependencies on Jenkins startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • None

      1. Install a fresh Jenkins instance
      2. Install Support Core plugin
      3. Disable metrics plugin

      The following Stacktrace happens

      Felixs-MBP:jenkins fbelzunc$ java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar war/target/jenkins.war 
      Listening for transport dt_socket at address: 5005
      Running from: /Users/fbelzunc/cloudbees/jenkins/jenkins/war/target/jenkins.war
      webroot: $user.home/.jenkins
      Jan 21, 2016 5:39:13 PM winstone.Logger logInternal
      INFO: Beginning extraction from war file
      Jan 21, 2016 5:39:14 PM org.eclipse.jetty.util.log.JavaUtilLog info
      INFO: jetty-winstone-2.9
      Jan 21, 2016 5:39:15 PM org.eclipse.jetty.util.log.JavaUtilLog info
      INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
      Jenkins home directory: /Users/fbelzunc/.jenkins found at: $user.home/.jenkins
      Jan 21, 2016 5:39:16 PM org.eclipse.jetty.util.log.JavaUtilLog info
      INFO: Started SelectChannelConnector@0.0.0.0:8080
      Jan 21, 2016 5:39:16 PM winstone.Logger logInternal
      INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
      Jan 21, 2016 5:39:16 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Started initialization
      Jan 21, 2016 5:39:23 PM hudson.ClassicPluginStrategy createPluginWrapper
      INFO: Plugin metrics.jpi is disabled
      Jan 21, 2016 5:39:25 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Listed all plugins
      Jan 21, 2016 5:39:25 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Prepared all plugins
      Jan 21, 2016 5:39:27 PM hudson.ExtensionFinder$GuiceFinder <init>
      SEVERE: Failed to create Guice container from all the plugins
      com.google.inject.internal.guava.collect.$ComputationException: java.lang.NoClassDefFoundError: com/codahale/metrics/Histogram
              at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:397)
              at com.google.inject.internal.FailableCache.get(FailableCache.java:49)
              at com.google.inject.internal.MembersInjectorStore.get(MembersInjectorStore.java:66)
              at com.google.inject.internal.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:74)
              at com.google.inject.internal.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:29)
              at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:37)
              at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:33)
              at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:38)
              at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:355)
              at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184)
              at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153)
              at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69)
              at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393)
              at com.google.inject.internal.FailableCache.get(FailableCache.java:49)
              at com.google.inject.internal.ConstructorInjectorStore.get(ConstructorInjectorStore.java:50)
              at com.google.inject.internal.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:137)
              at com.google.inject.internal.InjectorImpl.initializeBinding(InjectorImpl.java:537)
              at com.google.inject.internal.AbstractBindingProcessor$Processor$1.run(AbstractBindingProcessor.java:160)
              at com.google.inject.internal.ProcessedBindingData.initializeBindings(ProcessedBindingData.java:44)
              at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:123)
              at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
              at com.google.inject.Guice.createInjector(Guice.java:96)
              at com.google.inject.Guice.createInjector(Guice.java:73)
              at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:280)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
              at java.lang.Class.newInstance(Class.java:379)
              at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
              at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:637)
              at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:612)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:388)
              at hudson.ExtensionList.load(ExtensionList.java:349)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
              at hudson.ExtensionList.iterator(ExtensionList.java:156)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:381)
              at hudson.ExtensionList.load(ExtensionList.java:349)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
              at hudson.ExtensionList.iterator(ExtensionList.java:156)
              at com.cloudbees.jenkins.support.SupportPlugin.postInitialize(SupportPlugin.java:405)
              at hudson.PluginManager$2$1$2.run(PluginManager.java:403)
              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$8.runTask(Jenkins.java:924)
              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: com/codahale/metrics/Histogram
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
              at java.lang.Class.getDeclaredMethods(Class.java:1860)
              at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:674)
              at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366)
              at com.google.inject.internal.MembersInjectorStore.createWithListeners(MembersInjectorStore.java:91)
              at com.google.inject.internal.MembersInjectorStore.access$000(MembersInjectorStore.java:35)
              at com.google.inject.internal.MembersInjectorStore$1.create(MembersInjectorStore.java:43)
              at com.google.inject.internal.MembersInjectorStore$1.create(MembersInjectorStore.java:40)
              at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:38)
              at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:355)
              at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184)
              at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153)
              at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69)
              at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393)
              ... 49 more
      Caused by: java.lang.ClassNotFoundException: com.codahale.metrics.Histogram
              at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
              at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
              at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              ... 64 more
      
      Jan 21, 2016 5:39:27 PM hudson.ExtensionFinder$Sezpoz _find
      WARNING: Failed to load hudson.ExtensionFinder$GuiceFinder
      java.lang.InstantiationException: com.google.inject.CreationException: Guice creation errors:
      
      1) Could not find a suitable constructor in jenkins.model.Jenkins. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
        at jenkins.model.Jenkins.class(Jenkins.java:306)
        while locating jenkins.model.Jenkins
          for field at jenkins.security.s2m.AdminCallableMonitor.jenkins(AdminCallableMonitor.java:31)
        at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:511)
      
      2) Could not find a suitable constructor in jenkins.model.Jenkins. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
        at jenkins.model.Jenkins.class(Jenkins.java:306)
        while locating jenkins.model.Jenkins
          for field at jenkins.security.s2m.MasterKillSwitchConfiguration.jenkins(MasterKillSwitchConfiguration.java:18)
        at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:511)
      
      3) Could not find a suitable constructor in jenkins.model.Jenkins. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
        at jenkins.model.Jenkins.class(Jenkins.java:306)
        while locating jenkins.model.Jenkins
          for field at jenkins.diagnostics.PinningIsBlockingBundledPluginMonitor.jenkins(PinningIsBlockingBundledPluginMonitor.java:19)
        at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:511)
      
      3 errors
              at net.java.sezpoz.IndexItem.instance(IndexItem.java:191)
              at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:637)
              at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:612)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:388)
              at hudson.ExtensionList.load(ExtensionList.java:349)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
              at hudson.ExtensionList.iterator(ExtensionList.java:156)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:381)
              at hudson.ExtensionList.load(ExtensionList.java:349)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
              at hudson.ExtensionList.iterator(ExtensionList.java:156)
              at com.cloudbees.jenkins.support.SupportPlugin.postInitialize(SupportPlugin.java:405)
              at hudson.PluginManager$2$1$2.run(PluginManager.java:403)
              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$8.runTask(Jenkins.java:924)
              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: com.google.inject.CreationException: Guice creation errors:
      
      1) Could not find a suitable constructor in jenkins.model.Jenkins. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
        at jenkins.model.Jenkins.class(Jenkins.java:306)
        while locating jenkins.model.Jenkins
          for field at jenkins.security.s2m.AdminCallableMonitor.jenkins(AdminCallableMonitor.java:31)
        at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:511)
      
      2) Could not find a suitable constructor in jenkins.model.Jenkins. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
        at jenkins.model.Jenkins.class(Jenkins.java:306)
        while locating jenkins.model.Jenkins
          for field at jenkins.security.s2m.MasterKillSwitchConfiguration.jenkins(MasterKillSwitchConfiguration.java:18)
        at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:511)
      
      3) Could not find a suitable constructor in jenkins.model.Jenkins. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
        at jenkins.model.Jenkins.class(Jenkins.java:306)
        while locating jenkins.model.Jenkins
          for field at jenkins.diagnostics.PinningIsBlockingBundledPluginMonitor.jenkins(PinningIsBlockingBundledPluginMonitor.java:19)
        at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:511)
      
      3 errors
              at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:448)
              at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155)
              at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
              at com.google.inject.Guice.createInjector(Guice.java:96)
              at com.google.inject.Guice.createInjector(Guice.java:73)
              at com.google.inject.Guice.createInjector(Guice.java:62)
              at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:286)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
              at java.lang.Class.newInstance(Class.java:379)
              at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
              ... 20 more
      
      Jan 21, 2016 5:39:27 PM org.jvnet.hudson.annotation_indexer.Index$2$1 fetch
      WARNING: Failed to load com.cloudbees.jenkins.support.SupportPlugin
      java.lang.NoClassDefFoundError: com/codahale/metrics/Histogram
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
              at java.lang.Class.getDeclaredMethods(Class.java:1860)
              at org.jvnet.hudson.annotation_indexer.Index$2$1.fetch(Index.java:102)
              at org.jvnet.hudson.annotation_indexer.Index$2$1.hasNext(Index.java:72)
              at org.jvnet.hudson.annotation_indexer.SubtypeIterator.fetch(SubtypeIterator.java:18)
              at org.jvnet.hudson.annotation_indexer.SubtypeIterator.hasNext(SubtypeIterator.java:28)
              at hudson.init.TaskMethodFinder.discoverTasks(TaskMethodFinder.java:56)
              at hudson.init.InitializerFinder.discoverTasks(InitializerFinder.java:33)
              at hudson.PluginManager$2$1$3.run(PluginManager.java:417)
              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$8.runTask(Jenkins.java:924)
              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.ClassNotFoundException: com.codahale.metrics.Histogram
              at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
              at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
              at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              ... 18 more
      
      Jan 21, 2016 5:39:27 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Started all plugins
      Jan 21, 2016 5:39:27 PM jenkins.InitReactorRunner$1 onTaskFailed
      SEVERE: Failed PluginImpl.init
      java.lang.Error: java.lang.reflect.InvocationTargetException
              at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
              at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:176)
              at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
              at jenkins.model.Jenkins$8.runTask(Jenkins.java:924)
              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.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:106)
              ... 8 more
      Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
              at java.util.ArrayList.rangeCheck(ArrayList.java:635)
              at java.util.ArrayList.get(ArrayList.java:411)
              at hudson.ExtensionList.get(ExtensionList.java:171)
              at hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:1326)
              at hudson.maven.PluginImpl.init(PluginImpl.java:58)
              ... 13 more
      
      Jan 21, 2016 5:39:27 PM hudson.util.BootFailure publish
      SEVERE: Failed to initialize Jenkins
      hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
              at hudson.WebAppMain$3.run(WebAppMain.java:237)
      Caused by: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
              at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
              at jenkins.InitReactorRunner.run(InitReactorRunner.java:44)
              at jenkins.model.Jenkins.executeReactor(Jenkins.java:935)
              at jenkins.model.Jenkins.<init>(Jenkins.java:816)
              at hudson.model.Hudson.<init>(Hudson.java:83)
              at hudson.model.Hudson.<init>(Hudson.java:79)
              at hudson.WebAppMain$3.run(WebAppMain.java:225)
      Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException
              at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
              at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:176)
              at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
              at jenkins.model.Jenkins$8.runTask(Jenkins.java:924)
              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.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:106)
              ... 8 more
      Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
              at java.util.ArrayList.rangeCheck(ArrayList.java:635)
              at java.util.ArrayList.get(ArrayList.java:411)
              at hudson.ExtensionList.get(ExtensionList.java:171)
              at hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:1326)
              at hudson.maven.PluginImpl.init(PluginImpl.java:58)
              ... 13 more
      

      This makes Jenkins not able to start - See image attached.

            fbelzunc Félix Belzunce Arcos
            fbelzunc Félix Belzunce Arcos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: