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

AUTH: IllegalStateException: Singleton is called recursively returning different results

    XMLWordPrintable

Details

    Description

      Confusing warning dealing with security authentication feature?

       

      Apr 02, 2020 2:09:51 PM WARNING 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:1092)
       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.iterator(ExtensionList.java:172)
       at jenkins.model.Jenkins.getDescriptor(Jenkins.java:1565)
       at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1580)
       at hudson.security.csrf.CrumbIssuer.getDescriptor(CrumbIssuer.java:152)
       at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:131)
       at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
       at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:169)
       at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
       at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
       at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
       at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
       at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
       at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
       at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
       at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:36)
       at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
       at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
       at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:566)
       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
       at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
       at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
       at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
       at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
       at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1215)
       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
       at org.eclipse.jetty.server.Server.handle(Server.java:500)
       at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
       at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
       at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
       at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
       at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:543)
       at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:398)
       at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:161)
       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
       at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
       at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
       at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
       at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
       at java.lang.Thread.run(Thread.java:748)

      Attachments

        Activity

          based3 Basile Chandesris created issue -
          based3 Basile Chandesris made changes -
          Field Original Value New Value
          Environment Redhat 7, Java 8 442, Jenkins LTS 2.222.1, REST Remote API is used. Redhat 7, Java 8 242, Jenkins LTS 2.222.1, REST Remote API is used.
          ankurja Ankur made changes -
          Attachment Jenkins error.log [ 51160 ]
          danielbeck Daniel Beck made changes -
          Component/s authorize-project-plugin [ 18155 ]
          rehmana1 Azizul Rehman made changes -
          Comment [ Upgraded to 2.222.3 and encountered the error after second Jenkins reboot.

          [Due to restriction from my end, i can not share the log file as a whole, so adding exception encountered in the comment itself]

          {color:#0747A6}com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:379)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:48)
          at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:458)
          at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:324)
          Caused: jenkins.util.xstream.CriticalXStreamException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          ---- Debugging information ----
          message : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
          cause-message : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          class : hudson.model.Hudson
          required-type : hudson.model.Hudson
          converter-type : hudson.util.RobustReflectionConverter
          path : /hudson/securityRealm
          line number : 121
          version : not available
          -------------------------------
          at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:353)
          at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:267)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
          at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
          at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
          at hudson.util.XStream2.unmarshal(XStream2.java:161)
          at hudson.util.XStream2.unmarshal(XStream2.java:132)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
          at hudson.XmlFile.unmarshal(XmlFile.java:180)
          Caused: java.io.IOException: Unable to read E:\Program Files (x86)\Jenkins\config.xml
          at hudson.XmlFile.unmarshal(XmlFile.java:183)
          at hudson.XmlFile.unmarshal(XmlFile.java:163)
          at jenkins.model.Jenkins.loadConfig(Jenkins.java:3118)
          at jenkins.model.Jenkins.access$1200(Jenkins.java:320)
          at jenkins.model.Jenkins$13.run(Jenkins.java:3219)
          at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
          at jenkins.model.Jenkins$5.runTask(Jenkins.java:1133)
          at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          Caused: org.jvnet.hudson.reactor.ReactorException
          at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)
          at jenkins.InitReactorRunner.run(InitReactorRunner.java:50)
          at jenkins.model.Jenkins.executeReactor(Jenkins.java:1166)
          at jenkins.model.Jenkins.<init>(Jenkins.java:966)
          at hudson.model.Hudson.<init>(Hudson.java:85)
          at hudson.model.Hudson.<init>(Hudson.java:81)
          at hudson.WebAppMain$3.run(WebAppMain.java:233)
          Caused: hudson.util.HudsonFailedToLoad
          at hudson.WebAppMain$3.run(WebAppMain.java:250){color} ]

          People

            Unassigned Unassigned
            based3 Basile Chandesris
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: