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

java.lang.IllegalStateException: Singleton is called recursively returning different results

    XMLWordPrintable

Details

    Description

      I just upgraded to version 3.0 (from 2.16) of this plugin, and during startup of jenkins i'm getting loads of these exceptions:

      6:21 PM (5 minutes ago)09-Jun-2020 17:40:04.359 WARNING [Handling POST /jenkins/ajaxBuildQueue from 10.136.134.38 : http-nio-8080-exec-4] hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.error Failed to instantiate Key[type=jenkins.security.QueueItemAuthenticatorConfiguration, annotation=[none]]; skipping this component        java.lang.IllegalStateException: Singleton is called recursively returning different results                at com.google.common.base.Preconditions.checkState(Preconditions.java:145)                at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:165)                at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:440)                at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)                at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)                at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)               at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)                at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:402)                at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:393)                at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:344)                at hudson.ExtensionList.load(ExtensionList.java:381)                at hudson.ExtensionList.ensureLoaded(ExtensionList.java:317)                at hudson.ExtensionList.getComponents(ExtensionList.java:183)                at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:194)                at hudson.ExtensionList.ensureLoaded(ExtensionList.java:317)                at hudson.ExtensionList.iterator(ExtensionList.java:172)                at hudson.ExtensionList.getInstance(ExtensionList.java:162)                at jenkins.security.QueueItemAuthenticatorConfiguration.get(QueueItemAuthenticatorConfiguration.java:61)                at org.jenkinsci.plugins.authorizeproject.ProjectQueueItemAuthenticator.getConfigured(ProjectQueueItemAuthenticator.java:178)                at org.jenkinsci.plugins.authorizeproject.ProjectQueueItemAuthenticator.isConfigured(ProjectQueueItemAuthenticator.java:190)                at org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategy.checkUnsecuredConfiguration(AuthorizeProjectStrategy.java:186)                at org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategy.readResolve(AuthorizeProjectStrategy.java:176)                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                at java.lang.reflect.Method.invoke(Method.java:498)

       

      Also, all jobs got stuck in the build queue because 'no executor could be found'. Downgrading to 2.16 fixed all issues.

      Attachments

        Activity

          heymjo Jorg Heymans created issue -
          heymjo Jorg Heymans made changes -
          Field Original Value New Value
          Description I just upgraded to version 3.0 (from 2.16) of this plugin, and during startup of jenkins i'm getting loads of these exceptions:

           
          {noformat}
          6:21 PM (5 minutes ago)09-Jun-2020 17:40:04.359 WARNING [Handling POST /jenkins/ajaxBuildQueue from 10.136.134.38 : http-nio-8080-exec-4] hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.error Failed to instantiate Key[type=jenkins.security.QueueItemAuthenticatorConfiguration, annotation=[none]]; skipping this component        java.lang.IllegalStateException: Singleton is called recursively returning different results                at com.google.common.base.Preconditions.checkState(Preconditions.java:145)                at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:165)                at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:440)                at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)                at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)                at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)               at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)                at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:402)                at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:393)                at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:344)                at hudson.ExtensionList.load(ExtensionList.java:381)                at hudson.ExtensionList.ensureLoaded(ExtensionList.java:317)                at hudson.ExtensionList.getComponents(ExtensionList.java:183)                at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:194)                at hudson.ExtensionList.ensureLoaded(ExtensionList.java:317)                at hudson.ExtensionList.iterator(ExtensionList.java:172)                at hudson.ExtensionList.getInstance(ExtensionList.java:162)                at jenkins.security.QueueItemAuthenticatorConfiguration.get(QueueItemAuthenticatorConfiguration.java:61)                at org.jenkinsci.plugins.authorizeproject.ProjectQueueItemAuthenticator.getConfigured(ProjectQueueItemAuthenticator.java:178)                at org.jenkinsci.plugins.authorizeproject.ProjectQueueItemAuthenticator.isConfigured(ProjectQueueItemAuthenticator.java:190)                at org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategy.checkUnsecuredConfiguration(AuthorizeProjectStrategy.java:186)                at org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategy.readResolve(AuthorizeProjectStrategy.java:176)                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                at java.lang.reflect.Method.invoke(Method.java:498)to me {noformat}
          Also, all jobs got stuck in the build queue because 'no executor could be found'. Downgrading to 2.16 fixed all issues.
          I just upgraded to version 3.0 (from 2.16) of this plugin, and during startup of jenkins i'm getting loads of these exceptions:
          {noformat}
          6:21 PM (5 minutes ago)09-Jun-2020 17:40:04.359 WARNING [Handling POST /jenkins/ajaxBuildQueue from 10.136.134.38 : http-nio-8080-exec-4] hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.error Failed to instantiate Key[type=jenkins.security.QueueItemAuthenticatorConfiguration, annotation=[none]]; skipping this component        java.lang.IllegalStateException: Singleton is called recursively returning different results                at com.google.common.base.Preconditions.checkState(Preconditions.java:145)                at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:165)                at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:440)                at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)                at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)                at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)               at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)                at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:402)                at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:393)                at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:344)                at hudson.ExtensionList.load(ExtensionList.java:381)                at hudson.ExtensionList.ensureLoaded(ExtensionList.java:317)                at hudson.ExtensionList.getComponents(ExtensionList.java:183)                at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:194)                at hudson.ExtensionList.ensureLoaded(ExtensionList.java:317)                at hudson.ExtensionList.iterator(ExtensionList.java:172)                at hudson.ExtensionList.getInstance(ExtensionList.java:162)                at jenkins.security.QueueItemAuthenticatorConfiguration.get(QueueItemAuthenticatorConfiguration.java:61)                at org.jenkinsci.plugins.authorizeproject.ProjectQueueItemAuthenticator.getConfigured(ProjectQueueItemAuthenticator.java:178)                at org.jenkinsci.plugins.authorizeproject.ProjectQueueItemAuthenticator.isConfigured(ProjectQueueItemAuthenticator.java:190)                at org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategy.checkUnsecuredConfiguration(AuthorizeProjectStrategy.java:186)                at org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategy.readResolve(AuthorizeProjectStrategy.java:176)                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                at java.lang.reflect.Method.invoke(Method.java:498){noformat}
           

          Also, all jobs got stuck in the build queue because 'no executor could be found'. Downgrading to 2.16 fixed all issues.
          oleg_nenashev Oleg Nenashev made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          mawinter69 Markus Winter made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ] Markus Winter [ mawinter69 ]
          mawinter69 Markus Winter made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          mawinter69 Markus Winter added a comment -

          This excpetion doesn't seem to be related to role-strategy plugin.

          If you still see the problem with the no executor found, please make sure to use the latest plugin version and provide steps to reproduce the problem.

          mawinter69 Markus Winter added a comment - This excpetion doesn't seem to be related to role-strategy plugin. If you still see the problem with the no executor found, please make sure to use the latest plugin version and provide steps to reproduce the problem.
          mawinter69 Markus Winter made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status Open [ 1 ] Closed [ 6 ]

          People

            mawinter69 Markus Winter
            heymjo Jorg Heymans
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: