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

NPE thown at login when after AD Plugin update

    XMLWordPrintable

Details

    Description

      after updating to the latest versin (2.1?) of the scurity plugin following NPE is thrown

       

      java.lang.NullPointerException at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:299) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:265) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:207) at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:122) at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:200) at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:47) at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:74) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) 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)
      
      

      Attachments

        Activity

          bernd_farka Bernd Farka created issue -
          troncek Tadej Lasic added a comment -

          Yup, v2.1 completely brakes Jenkins, it doesn't even start. Reverting back to 2.0 fixes it.

          SEVERE: Failed Loading global config
          java.io.IOException: Unable to read C:\Jenkins\config.xml
          at hudson.XmlFile.unmarshal(XmlFile.java:161)
          at jenkins.model.Jenkins.loadConfig(Jenkins.java:3022)
          at jenkins.model.Jenkins.access$1200(Jenkins.java:304)
          at jenkins.model.Jenkins$16.run(Jenkins.java:3040)
          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$7.runTask(Jenkins.java:1064)
          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(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          Caused by: jenkins.util.xstream.CriticalXStreamException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          ---- Debugging information ----
          message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
          cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          converter-type : hudson.util.RobustReflectionConverter
          path : /hudson/securityRealm
          line number : 254
          ------------------------------- : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          ---- Debugging information ----
          message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
          cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          converter-type : hudson.util.RobustReflectionConverter
          path : /hudson/securityRealm
          line number : 254
          -------------------------------
          message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          ---- Debugging information ----
          message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
          cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          converter-type : hudson.util.RobustReflectionConverter
          path : /hudson/securityRealm
          line number : 254
          -------------------------------
          cause-exception : com.thoughtworks.xstream.converters.ConversionException
          cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          class : hudson.model.Hudson
          required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          converter-type : hudson.util.RobustReflectionConverter
          path : /hudson/securityRealm
          line number : 254
          version : not available
          -------------------------------
          at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356)
          at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
          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:114)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
          at hudson.XmlFile.unmarshal(XmlFile.java:159)
          ... 11 more
          Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          ---- Debugging information ----
          message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
          cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          converter-type : hudson.util.RobustReflectionConverter
          path : /hudson/securityRealm
          line number : 254
          -------------------------------
          at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
          at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
          at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:393)
          at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:331)
          ... 22 more
          Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:72)
          at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:271)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
          ... 26 more
          Caused by: java.lang.NullPointerException
          at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve(ActiveDirectorySecurityRealm.java:330)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:66)
          ... 28 more
          
          Mar 14, 2017 8:36:29 AM hudson.util.BootFailure publish
          SEVERE: Failed to initialize Jenkins
          hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read C:\Jenkins\config.xml
          at hudson.WebAppMain$3.run(WebAppMain.java:248)
          Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read C:\Jenkins\config.xml
          at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
          at jenkins.InitReactorRunner.run(InitReactorRunner.java:47)
          at jenkins.model.Jenkins.executeReactor(Jenkins.java:1088)
          at jenkins.model.Jenkins.<init>(Jenkins.java:904)
          at hudson.model.Hudson.<init>(Hudson.java:85)
          at hudson.model.Hudson.<init>(Hudson.java:81)
          at hudson.WebAppMain$3.run(WebAppMain.java:231)
          Caused by: java.io.IOException: Unable to read C:\Jenkins\config.xml
          at hudson.XmlFile.unmarshal(XmlFile.java:161)
          at jenkins.model.Jenkins.loadConfig(Jenkins.java:3022)
          at jenkins.model.Jenkins.access$1200(Jenkins.java:304)
          at jenkins.model.Jenkins$16.run(Jenkins.java:3040)
          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$7.runTask(Jenkins.java:1064)
          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(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          Caused by: jenkins.util.xstream.CriticalXStreamException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          ---- Debugging information ----
          message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
          cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          converter-type : hudson.util.RobustReflectionConverter
          path : /hudson/securityRealm
          line number : 254
          ------------------------------- : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          ---- Debugging information ----
          message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
          cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          converter-type : hudson.util.RobustReflectionConverter
          path : /hudson/securityRealm
          line number : 254
          -------------------------------
          message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          ---- Debugging information ----
          message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
          cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          converter-type : hudson.util.RobustReflectionConverter
          path : /hudson/securityRealm
          line number : 254
          -------------------------------
          cause-exception : com.thoughtworks.xstream.converters.ConversionException
          cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          class : hudson.model.Hudson
          required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          converter-type : hudson.util.RobustReflectionConverter
          path : /hudson/securityRealm
          line number : 254
          version : not available
          -------------------------------
          at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356)
          at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
          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:114)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
          at hudson.XmlFile.unmarshal(XmlFile.java:159)
          ... 11 more
          Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          ---- Debugging information ----
          message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
          cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          converter-type : hudson.util.RobustReflectionConverter
          path : /hudson/securityRealm
          line number : 254
          -------------------------------
          at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
          at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
          at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:393)
          at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:331)
          ... 22 more
          Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null
          at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:72)
          at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:271)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
          ... 26 more
          Caused by: java.lang.NullPointerException
          at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve(ActiveDirectorySecurityRealm.java:330)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:66)
          ... 28 more
          
          Mar 14, 2017 8:36:29 AM jenkins.model.Jenkins cleanUp
          INFO: Stopping Jenkins
          Mar 14, 2017 8:36:29 AM jenkins.model.Jenkins$21 onAttained
          INFO: Started termination
          Mar 14, 2017 8:36:29 AM jenkins.model.Jenkins$21 onTaskFailed
          SEVERE: Failed ActiveDirectorySecurityRealm.shutDownthreadPoolExecutors
          com.google.inject.ConfigurationException: Guice configuration errors:
          
          1) Could not find a suitable constructor in hudson.plugins.active_directory.ActiveDirectorySecurityRealm. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
          at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.class(ActiveDirectorySecurityRealm.java:107)
          while locating hudson.plugins.active_directory.ActiveDirectorySecurityRealm
          
          1 error
          at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1042)
          at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1001)
          at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
          at jenkins.ProxyInjector.getInstance(ProxyInjector.java:98)
          at hudson.init.TaskMethodFinder.lookUp(TaskMethodFinder.java:124)
          at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
          at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
          at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at jenkins.model.Jenkins$20.execute(Jenkins.java:3254)
          at org.jvnet.hudson.reactor.Reactor$Node.runIfPossible(Reactor.java:139)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:128)
          at jenkins.model.Jenkins$20.execute(Jenkins.java:3254)
          at org.jvnet.hudson.reactor.Reactor$Node.runIfPossible(Reactor.java:139)
          at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:263)
          at jenkins.model.Jenkins._cleanUpRunTerminators(Jenkins.java:3251)
          at jenkins.model.Jenkins.cleanUp(Jenkins.java:3173)
          at hudson.WebAppMain$3.run(WebAppMain.java:252)
          
          troncek Tadej Lasic added a comment - Yup, v2.1 completely brakes Jenkins, it doesn't even start. Reverting back to 2.0 fixes it. SEVERE: Failed Loading global config java.io.IOException: Unable to read C:\Jenkins\config.xml at hudson.XmlFile.unmarshal(XmlFile.java:161) at jenkins.model.Jenkins.loadConfig(Jenkins.java:3022) at jenkins.model.Jenkins.access$1200(Jenkins.java:304) at jenkins.model.Jenkins$16.run(Jenkins.java:3040) 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$7.runTask(Jenkins.java:1064) 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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang. Thread .run(Unknown Source) Caused by: jenkins.util.xstream.CriticalXStreamException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null ---- Debugging information ---- message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm converter-type : hudson.util.RobustReflectionConverter path : /hudson/securityRealm line number : 254 ------------------------------- : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null ---- Debugging information ---- message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm converter-type : hudson.util.RobustReflectionConverter path : /hudson/securityRealm line number : 254 ------------------------------- message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null ---- Debugging information ---- message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm converter-type : hudson.util.RobustReflectionConverter path : /hudson/securityRealm line number : 254 ------------------------------- cause-exception : com.thoughtworks.xstream.converters.ConversionException cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null class : hudson.model.Hudson required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm converter-type : hudson.util.RobustReflectionConverter path : /hudson/securityRealm line number : 254 version : not available ------------------------------- at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270) 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:114) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173) at hudson.XmlFile.unmarshal(XmlFile.java:159) ... 11 more Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null ---- Debugging information ---- message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm converter-type : hudson.util.RobustReflectionConverter path : /hudson/securityRealm line number : 254 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:393) at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:331) ... 22 more Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:72) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:271) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ... 26 more Caused by: java.lang.NullPointerException at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve(ActiveDirectorySecurityRealm.java:330) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:66) ... 28 more Mar 14, 2017 8:36:29 AM hudson.util.BootFailure publish SEVERE: Failed to initialize Jenkins hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read C:\Jenkins\config.xml at hudson.WebAppMain$3.run(WebAppMain.java:248) Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read C:\Jenkins\config.xml at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269) at jenkins.InitReactorRunner.run(InitReactorRunner.java:47) at jenkins.model.Jenkins.executeReactor(Jenkins.java:1088) at jenkins.model.Jenkins.<init>(Jenkins.java:904) at hudson.model.Hudson.<init>(Hudson.java:85) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.WebAppMain$3.run(WebAppMain.java:231) Caused by: java.io.IOException: Unable to read C:\Jenkins\config.xml at hudson.XmlFile.unmarshal(XmlFile.java:161) at jenkins.model.Jenkins.loadConfig(Jenkins.java:3022) at jenkins.model.Jenkins.access$1200(Jenkins.java:304) at jenkins.model.Jenkins$16.run(Jenkins.java:3040) 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$7.runTask(Jenkins.java:1064) 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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang. Thread .run(Unknown Source) Caused by: jenkins.util.xstream.CriticalXStreamException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null ---- Debugging information ---- message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm converter-type : hudson.util.RobustReflectionConverter path : /hudson/securityRealm line number : 254 ------------------------------- : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null ---- Debugging information ---- message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm converter-type : hudson.util.RobustReflectionConverter path : /hudson/securityRealm line number : 254 ------------------------------- message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null ---- Debugging information ---- message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm converter-type : hudson.util.RobustReflectionConverter path : /hudson/securityRealm line number : 254 ------------------------------- cause-exception : com.thoughtworks.xstream.converters.ConversionException cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null class : hudson.model.Hudson required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm converter-type : hudson.util.RobustReflectionConverter path : /hudson/securityRealm line number : 254 version : not available ------------------------------- at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270) 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:114) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173) at hudson.XmlFile.unmarshal(XmlFile.java:159) ... 11 more Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null ---- Debugging information ---- message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null class : hudson.plugins.active_directory.ActiveDirectorySecurityRealm required-type : hudson.plugins.active_directory.ActiveDirectorySecurityRealm converter-type : hudson.util.RobustReflectionConverter path : /hudson/securityRealm line number : 254 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:393) at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:331) ... 22 more Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Could not call hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve() : null at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:72) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:271) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ... 26 more Caused by: java.lang.NullPointerException at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.readResolve(ActiveDirectorySecurityRealm.java:330) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:66) ... 28 more Mar 14, 2017 8:36:29 AM jenkins.model.Jenkins cleanUp INFO: Stopping Jenkins Mar 14, 2017 8:36:29 AM jenkins.model.Jenkins$21 onAttained INFO: Started termination Mar 14, 2017 8:36:29 AM jenkins.model.Jenkins$21 onTaskFailed SEVERE: Failed ActiveDirectorySecurityRealm.shutDownthreadPoolExecutors com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in hudson.plugins.active_directory.ActiveDirectorySecurityRealm. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private . at hudson.plugins.active_directory.ActiveDirectorySecurityRealm. class( ActiveDirectorySecurityRealm.java:107) while locating hudson.plugins.active_directory.ActiveDirectorySecurityRealm 1 error at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1042) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1001) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051) at jenkins.ProxyInjector.getInstance(ProxyInjector.java:98) at hudson.init.TaskMethodFinder.lookUp(TaskMethodFinder.java:124) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at jenkins.model.Jenkins$20.execute(Jenkins.java:3254) at org.jvnet.hudson.reactor.Reactor$Node.runIfPossible(Reactor.java:139) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:128) at jenkins.model.Jenkins$20.execute(Jenkins.java:3254) at org.jvnet.hudson.reactor.Reactor$Node.runIfPossible(Reactor.java:139) at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:263) at jenkins.model.Jenkins._cleanUpRunTerminators(Jenkins.java:3251) at jenkins.model.Jenkins.cleanUp(Jenkins.java:3173) at hudson.WebAppMain$3.run(WebAppMain.java:252)
          bernd_farka Bernd Farka added a comment -

          Startup went fine (at my installation 2.50) but i was not able to log in

          bernd_farka Bernd Farka added a comment - Startup went fine (at my installation 2.50) but i was not able to log in
          bernd_farka Bernd Farka made changes -
          Field Original Value New Value
          Description after updating to the latest versin (2.1?) of the scurity plugin following NPE is thrown

           

          \{code}

          java.lang.NullPointerException at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:299) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:265) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:207) at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:122) at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:200) at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:47) at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:74) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) 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}
          after updating to the latest versin (2.1?) of the scurity plugin following NPE is thrown

           

          {code}

          java.lang.NullPointerException at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:299) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:265) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:207) at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:122) at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:200) at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:47) at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:74) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) 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}

          Same issue with us. We had to disable security before reverting the plugin to version 2.0.

          To disable security on Jenkins:

          https://jenkins.io/doc/book/operating/security/#disabling-security

          ciaran_mccarthy Ciaran McCarthy added a comment - Same issue with us. We had to disable security before reverting the plugin to version 2.0. To disable security on Jenkins: https://jenkins.io/doc/book/operating/security/#disabling-security
          fbelzunc Félix Belzunce Arcos made changes -
          Status Open [ 1 ] In Progress [ 3 ]

          Code changed in jenkins
          User: Felix Belzunce Arcos
          Path:
          src/main/resources/artifact-ignores.properties
          http://jenkins-ci.org/commit/backend-update-center2/b0ad1e9f33b5783a0acb9ce8c095b0512b5fa088
          Log:
          Release broken by JENKINS-42739 (#128)

          • Address comments
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Felix Belzunce Arcos Path: src/main/resources/artifact-ignores.properties http://jenkins-ci.org/commit/backend-update-center2/b0ad1e9f33b5783a0acb9ce8c095b0512b5fa088 Log: Release broken by JENKINS-42739 (#128) Release broken by JENKINS-42739 Address comments

          bernd_farka The initial issue you reported I have it locally fixed - I will submit a PR very soon

          troncek I think the issue you are reporting is happening only on Windows, but I would like to check with you if you could take a screenshot of the ad configuration removing any confidencial information - basically I would like to know if the domain field is empty or not.

          fbelzunc Félix Belzunce Arcos added a comment - bernd_farka The initial issue you reported I have it locally fixed - I will submit a PR very soon troncek I think the issue you are reporting is happening only on Windows, but I would like to check with you if you could take a screenshot of the ad configuration removing any confidencial information - basically I would like to know if the domain field is empty or not.
          fbelzunc Félix Belzunce Arcos made changes -
          Attachment active-directory.hpi [ 36508 ]
          fbelzunc Félix Belzunce Arcos made changes -
          Attachment active-directory.hpi [ 36508 ]
          fbelzunc Félix Belzunce Arcos made changes -
          Attachment active-directory.hpi [ 36509 ]

          bernd_farka troncek I would also appreciated if you both could test the version I just attached to the Jira issue and confirm me that everything is fine so I can release again and fix this critical issue.

          active-directory.hpi

          fbelzunc Félix Belzunce Arcos added a comment - bernd_farka troncek I would also appreciated if you both could test the version I just attached to the Jira issue and confirm me that everything is fine so I can release again and fix this critical issue. active-directory.hpi
          troncek Tadej Lasic added a comment - - edited

          You mean my Jenkins config in Configure Global Security? I just have Enable security, Active Directory and Matrix-based security enabled, everything else is disabled.

          troncek Tadej Lasic added a comment - - edited You mean my Jenkins config in Configure Global Security? I just have Enable security, Active Directory and Matrix-based security enabled, everything else is disabled.

          divintajee The UI for the AD plugin is different when running on Windows/Linux - I just would like to know on the Active Directory section if you have something set-up.

          fbelzunc Félix Belzunce Arcos added a comment - divintajee The UI for the AD plugin is different when running on Windows/Linux - I just would like to know on the Active Directory section if you have something set-up.
          troncek Tadej Lasic added a comment -

          Nope, Specify custom Active Directory domain name under AD is disabled.

          troncek Tadej Lasic added a comment - Nope, Specify custom Active Directory domain name under AD is disabled.
          bernd_farka Bernd Farka added a comment - - edited

          with

          2.2-SNAPSHOT (private-44528ab1-fbelzunc)
          

          i was able to log in again...

          i did no further testing, only deploy it restart jenkins (still 2.50) and the login worked

          bernd_farka Bernd Farka added a comment - - edited with 2.2-SNAPSHOT ( private -44528ab1-fbelzunc) i was able to log in again... i did no further testing, only deploy it restart jenkins (still 2.50) and the login worked
          fbelzunc Félix Belzunce Arcos added a comment - - edited

          troncek Great! So that is the problem, I did not keep this case on mind

          Can you check if the custom version I attached here fixes the problem? I can submit a PR if you prefer to take the bits directly from jenkins.

          fbelzunc Félix Belzunce Arcos added a comment - - edited troncek Great! So that is the problem, I did not keep this case on mind Can you check if the custom version I attached here fixes the problem? I can submit a PR if you prefer to take the bits directly from jenkins.
          bernd_farka Bernd Farka added a comment - - edited

          I'd definitly Go for a PR and try to publish this Version since ist seems 2.1 ia doomed to fail anyway?

          bernd_farka Bernd Farka added a comment - - edited I'd definitly Go for a PR and try to publish this Version since ist seems 2.1 ia doomed to fail anyway?
          fbelzunc Félix Belzunce Arcos added a comment - - edited

          2.1 should be out of the Update Center see https://github.com/jenkins-infra/backend-update-center2/pull/128

          I am going to submit the PR ASAP, but I would like to wait for troncek to ACK the patch is fine on Windows environment before releasing 2.2

          fbelzunc Félix Belzunce Arcos added a comment - - edited 2.1 should be out of the Update Center see https://github.com/jenkins-infra/backend-update-center2/pull/128 I am going to submit the PR ASAP, but I would like to wait for troncek to ACK the patch is fine on Windows environment before releasing 2.2
          troncek Tadej Lasic added a comment -

          Sorry, but I can't try an untested version on a production build server, and I don't have a test server setup.

          troncek Tadej Lasic added a comment - Sorry, but I can't try an untested version on a production build server, and I don't have a test server setup.
          fbelzunc Félix Belzunce Arcos added a comment - https://github.com/jenkinsci/active-directory-plugin/pull/70

          Code changed in jenkins
          User: Félix Belzunce Arcos
          Path:
          src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java
          http://jenkins-ci.org/commit/active-directory-plugin/44528ab1d6735c6125569d5e1f3a68760608b59e
          Log:
          JENKINS-42739 Fix the NPE

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Félix Belzunce Arcos Path: src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java http://jenkins-ci.org/commit/active-directory-plugin/44528ab1d6735c6125569d5e1f3a68760608b59e Log: JENKINS-42739 Fix the NPE

          Code changed in jenkins
          User: Felix Belzunce Arcos
          Path:
          src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java
          src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java
          http://jenkins-ci.org/commit/active-directory-plugin/54802d5a26f76fa0ae65028b4bf6a9b7ca9b3780
          Log:
          Merge pull request #70 from fbelzunc/JENKINS-42739

          [FIXED JENKINS-42739] NPE thown at login when after AD Plugin update

          Compare: https://github.com/jenkinsci/active-directory-plugin/compare/3f16b77f8647...54802d5a26f7

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Felix Belzunce Arcos Path: src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java http://jenkins-ci.org/commit/active-directory-plugin/54802d5a26f76fa0ae65028b4bf6a9b7ca9b3780 Log: Merge pull request #70 from fbelzunc/ JENKINS-42739 [FIXED JENKINS-42739] NPE thown at login when after AD Plugin update Compare: https://github.com/jenkinsci/active-directory-plugin/compare/3f16b77f8647...54802d5a26f7
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]

          People

            fbelzunc Félix Belzunce Arcos
            bernd_farka Bernd Farka
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: