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
      

          [JENKINS-19076] Guice provision errors at startup

          Adam Batkin added a comment -

          I'm running Jenkins 1.527 with Credentials 1.7.3 and Config File Provider 2.6.1 and get the same error. Looking at the source, the exception is expected (albeit unwanted of course):

          The outer class of MvnServerPassword$DescriptorImpl (MvnServerPassword) doesn't implement (or extend from something that implements) the Credentials interface (it doesn't implement/extend anything). This may have been intentional, but since MvnServerPassword$DescriptorImpl extends CredentialsDescriptor, the outer class needs to be assignable to Credentials.

          https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/Descriptor.java#L258 (CredentialsDescriptor extends Descriptor with a type parameter of Credentials)
          https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/CredentialsDescriptor.java#L37

          Adam Batkin added a comment - I'm running Jenkins 1.527 with Credentials 1.7.3 and Config File Provider 2.6.1 and get the same error. Looking at the source, the exception is expected (albeit unwanted of course): The outer class of MvnServerPassword$DescriptorImpl (MvnServerPassword) doesn't implement (or extend from something that implements) the Credentials interface (it doesn't implement/extend anything ). This may have been intentional, but since MvnServerPassword$DescriptorImpl extends CredentialsDescriptor, the outer class needs to be assignable to Credentials. https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/Descriptor.java#L258 (CredentialsDescriptor extends Descriptor with a type parameter of Credentials) https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/CredentialsDescriptor.java#L37

          Stephan Dühr added a comment -

          With Jenkins 1.5.30, Credentials Plugin 1.7.6, Config File Provider Plugin 2.6.1 I still get this error and I can't edit any job. Does a workaround exist?

          Stephan Dühr added a comment - With Jenkins 1.5.30, Credentials Plugin 1.7.6, Config File Provider Plugin 2.6.1 I still get this error and I can't edit any job. Does a workaround exist?

          This error also causes the Ivy plugin to fail because that has a dependency on this plugin to load.

          Walter Kacynski added a comment - This error also causes the Ivy plugin to fail because that has a dependency on this plugin to load.

          cowwoc added a comment -

          I don't know if this is related, but I can no longer log into Jenkins after having logged out. It looks like something blew away the admin's credentials.

          cowwoc added a comment - I don't know if this is related, but I can no longer log into Jenkins after having logged out. It looks like something blew away the admin's credentials.

          Dominik Bartholdi added a comment - - edited

          Sorry, but I will not reintegrate the support for server credentials until I have integrated the credentials plugin in the proper way. I have nearly finished this, but I do need to talk to @stephenc first. After taking to Stephen the first time, I realized, that my first implementation should never have been released. But if if you do want to use this implementation, then just use version 2.6 - but it will not be fully compatible with the future implementation.
          Unfortunately Stephen and I have different working windows where we have time to work on jenkins, but I hope to catch him soon again

          Dominik Bartholdi added a comment - - edited Sorry, but I will not reintegrate the support for server credentials until I have integrated the credentials plugin in the proper way. I have nearly finished this, but I do need to talk to @stephenc first. After taking to Stephen the first time, I realized, that my first implementation should never have been released. But if if you do want to use this implementation, then just use version 2.6 - but it will not be fully compatible with the future implementation. Unfortunately Stephen and I have different working windows where we have time to work on jenkins, but I hope to catch him soon again

          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

          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

          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!!!

          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!!!

          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!

          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!

          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

          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

          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.

          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.

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

              Created:
              Updated:
              Resolved: