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

p4 throw ProvisionException exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • p4-plugin
    • Jenkins: 2.332.2
      p4 plugin: 1.12.2
      email-ext: 2.88

      I am building a Jenkins docker container and during my docker build I am running:

       

      RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt 

       

      The plugins.txt contains these two lines: 

       

      email-ext:latest
      p4:latest

       

      This works good. No errors 

      However when I start my docker container to run I get this error:

       

      WARNING    h.ExtensionFinder$GuiceFinder$FaultTolerantScope$1#error: Failed to instantiate Key[type=jenkins.telemetry.Correlator, annotation=[none]]; skipping this component
      com.google.inject.ProvisionException: Unable to provision, see the following errors:
      1) [Guice/CanNotProxyClass]: Tried proxying Correlator to support a circular dependency, but it is not an interface.
      Learn more:
        https://github.com/google/guice/wiki/CAN_NOT_PROXY_CLASS
      1 error
      ======================
      Full classname legend:
      ======================
      Correlator: "jenkins.telemetry.Correlator"
      ========================
      End of classname legend:
      ========================
          at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251)
          at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43)
          at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
          at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:444)
          at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
          at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1100)
          at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:402)
          at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:393)
          at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:358)
          at hudson.ExtensionList.load(ExtensionList.java:384)
          at hudson.ExtensionList.ensureLoaded(ExtensionList.java:320)
          at hudson.ExtensionList.iterator(ExtensionList.java:172)
          at jenkins.model.Jenkins.getDescriptor(Jenkins.java:1612)
          at org.jenkinsci.plugins.p4.ConfigurationListener.onChange(ConfigurationListener.java:31)
          at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:82)
          at hudson.model.Descriptor.save(Descriptor.java:901)
          at jenkins.telemetry.Correlator.<init>(Correlator.java:52)
          at jenkins.telemetry.Correlator$$FastClassByGuice$$328435413.GUICE$TRAMPOLINE(<generated>)
          at jenkins.telemetry.Correlator$$FastClassByGuice$$328435413.apply(<generated>)
          at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82)
          at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
          at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:33)
          at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:98)
          at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109)
          at hudson.ExtensionFinder$GuiceFinder$SezpozModule.onProvision(ExtensionFinder.java:568)
          at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:117)
          at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:66)
          at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:93)
          at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:296)
          at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
          at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
          at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:444)
          at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
          at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1100)
          at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:402)
          at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:393)
          at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:358)
          at hudson.ExtensionList.load(ExtensionList.java:384)
          at hudson.ExtensionList.ensureLoaded(ExtensionList.java:320)
          at hudson.ExtensionList.iterator(ExtensionList.java:172)
          at hudson.diagnosis.NullIdDescriptorMonitor.verify(NullIdDescriptorMonitor.java:72)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.base/java.lang.reflect.Method.invoke(Unknown Source)
          at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)
          at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
          at jenkins.model.Jenkins$5.runTask(Jenkins.java:1156)
          at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121)
          at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.base/java.lang.Thread.run(Unknown Source)
      

      It looks like it goes through :

      org.jenkinsci.plugins.p4.ConfigurationListener.onChange(ConfigurationListener.java:31)

      This only happens when I have the p4 plugin installed. I have tried removing the p4 plugin and add other plugins but no other plugin throws this.

            Unassigned Unassigned
            orre Oscar Norlander
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: