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

Guice provision errors at startup

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Jenkins shows following error at startup.

      06.08.2013 18:06:00 jenkins.InitReactorRunner$1 onAttained
      INFO: Prepared all plugins
      06.08.2013 18:06:06 hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
      WARNUNG: Failed to instantiate Key[type=org.jenkinsci.plugins.configfiles.maven.security.MvnServerPassword$DescriptorImpl, annotation=[none]]; skip
      ping this component
      com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error injecting constructor, java.lang.AssertionError: Outer class class org.jenkinsci.plugins.configfiles.maven.security.MvnServerPassword of c
      lass org.jenkinsci.plugins.configfiles.maven.security.MvnServerPassword$DescriptorImpl is not assignable to interface com.cloudbees.plugins.credent
      ials.Credentials. Perhaps wrong outer class?
        at org.jenkinsci.plugins.configfiles.maven.security.MvnServerPassword$DescriptorImpl.<init>(MvnServerPassword.java:58)
      
      1 error
              at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52)
              at com.google.inject.Scopes$1$1.get(Scopes.java:59)
              at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:429)
              at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
              at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
              at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
              at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:391)
              at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:382)
              at hudson.ExtensionFinder._find(ExtensionFinder.java:151)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:326)
              at hudson.ExtensionList.load(ExtensionList.java:295)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
              at hudson.ExtensionList.iterator(ExtensionList.java:138)
              at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1183)
              at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:100)
              at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35)
              at hudson.PluginManager$2$1$2.run(PluginManager.java:353)
              at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
              at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
              at jenkins.model.Jenkins$7.runTask(Jenkins.java:895)
              at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
              at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
              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:662)
      Caused by: java.lang.AssertionError: Outer class class org.jenkinsci.plugins.configfiles.maven.security.MvnServerPassword of class org.jenkinsci.pl
      ugins.configfiles.maven.security.MvnServerPassword$DescriptorImpl is not assignable to interface com.cloudbees.plugins.credentials.Credentials. Per
      haps wrong outer class?
              at hudson.model.Descriptor.<init>(Descriptor.java:277)
              at com.cloudbees.plugins.credentials.CredentialsDescriptor.<init>(CredentialsDescriptor.java:56)
              at org.jenkinsci.plugins.configfiles.maven.security.MvnServerPassword$DescriptorImpl.<init>(MvnServerPassword.java:58)
              at org.jenkinsci.plugins.configfiles.maven.security.MvnServerPassword$DescriptorImpl$$FastClassByGuice$$6542c798.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:87)
              at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
              ... 25 more
      06.08.2013 18:06:06 jenkins.InitReactorRunner$1 onAttained
      INFO: Started all plugins
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/org/jenkinsci/plugins/configfiles/maven/job/MvnGlobalSettingsProvider.java
          src/main/java/org/jenkinsci/plugins/configfiles/maven/job/MvnSettingsProvider.java
          src/main/java/org/jenkinsci/plugins/configfiles/maven/security/BaseMvnServerCredentials.java
          src/main/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelper.java
          src/main/java/org/jenkinsci/plugins/configfiles/maven/security/MvnServerPassword.java
          src/main/resources/org/jenkinsci/plugins/configfiles/maven/security/MvnServerPassword/credentials.jelly
          src/main/resources/org/jenkinsci/plugins/configfiles/maven/security/MvnServerPassword/help-id.html
          src/main/resources/org/jenkinsci/plugins/configfiles/maven/security/MvnServerPassword/help-password.html
          src/test/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelperTest.java
          http://jenkins-ci.org/commit/config-file-provider-plugin/00b8294d901960cedfd0c9aae1d5a2d8b9c4ffd2
          Log:
          [FIXED JENKINS-19076] properly disable extension for credentials

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jenkinsci/plugins/configfiles/maven/job/MvnGlobalSettingsProvider.java src/main/java/org/jenkinsci/plugins/configfiles/maven/job/MvnSettingsProvider.java src/main/java/org/jenkinsci/plugins/configfiles/maven/security/BaseMvnServerCredentials.java src/main/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelper.java src/main/java/org/jenkinsci/plugins/configfiles/maven/security/MvnServerPassword.java src/main/resources/org/jenkinsci/plugins/configfiles/maven/security/MvnServerPassword/credentials.jelly src/main/resources/org/jenkinsci/plugins/configfiles/maven/security/MvnServerPassword/help-id.html src/main/resources/org/jenkinsci/plugins/configfiles/maven/security/MvnServerPassword/help-password.html src/test/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelperTest.java http://jenkins-ci.org/commit/config-file-provider-plugin/00b8294d901960cedfd0c9aae1d5a2d8b9c4ffd2 Log: [FIXED JENKINS-19076] properly disable extension for credentials
          Hide
          domi Dominik Bartholdi added a comment -

          The real issue here is that I did not properly disable the support for credentials - I have fixed this for now and released a proper version (2.6.2). Please let my know if you have any more issues.
          Sorry for all the trouble!!!

          Show
          domi Dominik Bartholdi added a comment - The real issue here is that I did not properly disable the support for credentials - I have fixed this for now and released a proper version (2.6.2). Please let my know if you have any more issues. Sorry for all the trouble!!!
          Hide
          zhh Hua Zhang added a comment -

          The stack trace stopped showing up after I upgraded to 2.6.2 (Credential plugin 1.5 + Jenkins 1.531). Thanks for the fix!

          Show
          zhh Hua Zhang added a comment - The stack trace stopped showing up after I upgraded to 2.6.2 (Credential plugin 1.5 + Jenkins 1.531). Thanks for the fix!
          Hide
          slavd slav dok added a comment -

          Please, i am completely confused how to fix this. I have Jenkins LTS installed 1.509.4. I cannot move away from LTS, as a lot of plugins break when i do that.

          What am i supposed to upgrade to 2.6.2?
          I don't have a plugin called "Config File Provider"
          My "Credentials Plugin" is at 1.9

          Thank you

          Show
          slavd slav dok added a comment - Please, i am completely confused how to fix this. I have Jenkins LTS installed 1.509.4. I cannot move away from LTS, as a lot of plugins break when i do that. What am i supposed to upgrade to 2.6.2? I don't have a plugin called "Config File Provider" My "Credentials Plugin" is at 1.9 Thank you
          Hide
          domi Dominik Bartholdi added a comment -

          this is the plugin we talk about: https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin - update it to 2.6.2
          If you don't have this installed, then you have an other issue then this bug report is about.

          Show
          domi Dominik Bartholdi added a comment - this is the plugin we talk about: https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin - update it to 2.6.2 If you don't have this installed, then you have an other issue then this bug report is about.

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              zhh Hua Zhang
            • Votes:
              10 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: