com.google.inject.ProvisionException: Guice provision errors: 1) Tried proxying hudson.plugins.sonar.SonarPublisher$DescriptorImpl to support a circular dependency, but it is not an interface. 1 error

Jenkins JIRA | Allan BURDAJEWICZ | 9 months ago
  1. 0

    When *sonar-plugin 2.2* (and later) and *p4-plugin 1.3.6* (and later) are both installed, the following warning warning is generated on Jenkins startup: {code} WARNING: Failed to instantiate Key[type=hudson.plugins.sonar.SonarPublisher$DescriptorImpl, annotation=[none]]; skipping this component com.google.inject.ProvisionException: Guice provision errors: 1) Tried proxying hudson.plugins.sonar.SonarPublisher$DescriptorImpl to support a circular dependency, but it is not an interface. 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:1058) 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:388) at hudson.ExtensionList.load(ExtensionList.java:349) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.iterator(ExtensionList.java:156) at jenkins.model.Jenkins.getDescriptor(Jenkins.java:1207) at org.jenkinsci.plugins.p4.ConfigurationListener.onChange(ConfigurationListener.java:28) at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:81) at hudson.model.Descriptor.save(Descriptor.java:856) at hudson.plugins.sonar.SonarPublisher$DescriptorImpl.<init>(SonarPublisher.java:420) at hudson.plugins.sonar.SonarPublisher$DescriptorImpl$$FastClassByGuice$$46a6cf4e.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) 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:388) 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:320) at org.jenkinsci.plugins.github.migration.Migrator.migrate(Migrator.java:41) at org.jenkinsci.plugins.github.GitHubPlugin.postInitialize(GitHubPlugin.java:39) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} This can be easily reproduce. With either sonar-plugin:2.1 or p4-plugin:1.3.5, there is no warning. In p4-plugin version 1.3.6, a SaveableListener extension has been added: * https://github.com/jenkinsci/p4-plugin/blob/p4-1.3.6/src/main/java/org/jenkinsci/plugins/p4/ConfigurationListener.java#L28 In sonar-plugin version 2.2, a `save()` method has been added in the constructor of the SonarPublisher default constructor: * https://github.com/SonarSource/jenkins-sonar-plugin/blob/2.2/src/main/java/hudson/plugins/sonar/SonarPublisher.java#L420

    Jenkins JIRA | 9 months ago | Allan BURDAJEWICZ
    com.google.inject.ProvisionException: Guice provision errors: 1) Tried proxying hudson.plugins.sonar.SonarPublisher$DescriptorImpl to support a circular dependency, but it is not an interface. 1 error
  2. 0

    When *sonar-plugin 2.2* (and later) and *p4-plugin 1.3.6* (and later) are both installed, the following warning warning is generated on Jenkins startup: {code} WARNING: Failed to instantiate Key[type=hudson.plugins.sonar.SonarPublisher$DescriptorImpl, annotation=[none]]; skipping this component com.google.inject.ProvisionException: Guice provision errors: 1) Tried proxying hudson.plugins.sonar.SonarPublisher$DescriptorImpl to support a circular dependency, but it is not an interface. 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:1058) 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:388) at hudson.ExtensionList.load(ExtensionList.java:349) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.iterator(ExtensionList.java:156) at jenkins.model.Jenkins.getDescriptor(Jenkins.java:1207) at org.jenkinsci.plugins.p4.ConfigurationListener.onChange(ConfigurationListener.java:28) at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:81) at hudson.model.Descriptor.save(Descriptor.java:856) at hudson.plugins.sonar.SonarPublisher$DescriptorImpl.<init>(SonarPublisher.java:420) at hudson.plugins.sonar.SonarPublisher$DescriptorImpl$$FastClassByGuice$$46a6cf4e.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) 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:388) 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:320) at org.jenkinsci.plugins.github.migration.Migrator.migrate(Migrator.java:41) at org.jenkinsci.plugins.github.GitHubPlugin.postInitialize(GitHubPlugin.java:39) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} This can be easily reproduce. With either sonar-plugin:2.1 or p4-plugin:1.3.5, there is no warning. In p4-plugin version 1.3.6, a SaveableListener extension has been added: * https://github.com/jenkinsci/p4-plugin/blob/p4-1.3.6/src/main/java/org/jenkinsci/plugins/p4/ConfigurationListener.java#L28 In sonar-plugin version 2.2, a `save()` method has been added in the constructor of the SonarPublisher default constructor: * https://github.com/SonarSource/jenkins-sonar-plugin/blob/2.2/src/main/java/hudson/plugins/sonar/SonarPublisher.java#L420

    Jenkins JIRA | 9 months ago | Allan BURDAJEWICZ
    com.google.inject.ProvisionException: Guice provision errors: 1) Tried proxying hudson.plugins.sonar.SonarPublisher$DescriptorImpl to support a circular dependency, but it is not an interface. 1 error
  3. 0

    [JIRA] [p4-plugin] (JENKINS-33417) P4 and Sonar plugins generates circular dependency warning

    Google Groups | 9 months ago | aburda...@cloudbees.com (JIRA)
    com.google.inject.ProvisionException: Guice provision errors:</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">1) Tried proxying hudson.plugins.sonar.SonarPublisher$DescriptorImpl to support a circular dependency, but it is not an interface.</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">1 error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [dependency-check-jenkins-plugin] (JENKINS-29908) Male OWASP Dependency-Check Plug-in compatible with Workflow

    Google Groups | 1 year ago | recena@gmail.com (JIRA)
    com.google.inject.ProvisionException: Guice provision errors: 1) Tried proxying org.jenkinsci.plugins.DependencyCheck.DependencyCheckUpdateOnlyBuilder$DescriptorImpl to support a circular dependency, but it is not an <span class="code-keyword" style="color: #000091">interface</span>. 1 error
  6. 0

    SSHD not initializing properly

    Google Groups | 2 years ago | Pieter Breed
    com.google.inject.ProvisionException: Guice provision errors: 1) null returned by binding at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:513) but org.jenkinsci.main.modules.sshd.ItemListenerImpl.sshd is not @Nullable while locating org.jenkinsci.main.modules.sshd.SSHD for field at org.jenkinsci.main.modules.sshd.ItemListenerImpl.sshd(Unknown Source) 1 error

  1. davidvanlaatum 29 times, last 6 months ago
2 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. com.google.inject.ProvisionException

    Guice provision errors: 1) Tried proxying hudson.plugins.sonar.SonarPublisher$DescriptorImpl to support a circular dependency, but it is not an interface. 1 error

    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get()
  2. Google Guice - Core Library
    Scopes$1$1.get
    1. com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52)
    2. com.google.inject.Scopes$1$1.get(Scopes.java:65)
    2 frames
  3. Hudson
    ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get
    1. hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:427)
    1 frame
  4. Google Guice - Core Library
    InjectorImpl$3.get
    1. com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
    2. com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)
    3. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
    4. com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)
    4 frames
  5. Hudson
    ExtensionList.iterator
    1. hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:389)
    2. hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:380)
    3. hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:388)
    4. hudson.ExtensionList.load(ExtensionList.java:349)
    5. hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
    6. hudson.ExtensionList.iterator(ExtensionList.java:156)
    6 frames
  6. jenkins.model
    Jenkins.getDescriptor
    1. jenkins.model.Jenkins.getDescriptor(Jenkins.java:1207)
    1 frame
  7. org.jenkinsci.plugins
    ConfigurationListener.onChange
    1. org.jenkinsci.plugins.p4.ConfigurationListener.onChange(ConfigurationListener.java:28)
    1 frame
  8. Hudson
    Descriptor.save
    1. hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:81)
    2. hudson.model.Descriptor.save(Descriptor.java:856)
    2 frames
  9. hudson.plugins.sonar
    SonarPublisher$DescriptorImpl$$FastClassByGuice$$46a6cf4e.newInstance
    1. hudson.plugins.sonar.SonarPublisher$DescriptorImpl.<init>(SonarPublisher.java:420)
    2. hudson.plugins.sonar.SonarPublisher$DescriptorImpl$$FastClassByGuice$$46a6cf4e.newInstance(<generated>)
    2 frames
  10. Google Guice - Core Library
    Scopes$1$1.get
    1. com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
    2. com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
    3. com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
    4. com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88)
    5. com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
    6. com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    7. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
    8. com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    9. com.google.inject.Scopes$1$1.get(Scopes.java:65)
    9 frames
  11. Hudson
    ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get
    1. hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:427)
    1 frame
  12. Google Guice - Core Library
    InjectorImpl$3.get
    1. com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
    2. com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)
    3. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1051)
    4. com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)
    4 frames
  13. Hudson
    ExtensionList.get
    1. hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:389)
    2. hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:380)
    3. hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:388)
    4. hudson.ExtensionList.load(ExtensionList.java:349)
    5. hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
    6. hudson.ExtensionList.getComponents(ExtensionList.java:167)
    7. hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:185)
    8. hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
    9. hudson.ExtensionList.iterator(ExtensionList.java:156)
    10. hudson.ExtensionList.get(ExtensionList.java:147)
    10 frames
  14. com.cloudbees.jenkins
    GitHubPushTrigger$DescriptorImpl.get
    1. com.cloudbees.jenkins.GitHubPushTrigger$DescriptorImpl.get(GitHubPushTrigger.java:320)
    1 frame
  15. org.jenkinsci.plugins
    GitHubPlugin.postInitialize
    1. org.jenkinsci.plugins.github.migration.Migrator.migrate(Migrator.java:41)
    2. org.jenkinsci.plugins.github.GitHubPlugin.postInitialize(GitHubPlugin.java:39)
    2 frames
  16. Hudson
    PluginManager$2$1$2.run
    1. hudson.PluginManager$2$1$2.run(PluginManager.java:403)
    1 frame
  17. init
    Reactor.runTask
    1. org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    2. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
    2 frames
  18. jenkins.model
    Jenkins$8.runTask
    1. jenkins.model.Jenkins$8.runTask(Jenkins.java:924)
    1 frame
  19. init
    Reactor$Node.run
    1. org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
    2. org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    2 frames
  20. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames