• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • htmlpublisher-plugin
    • None
    • jenkins-2.164.3

      Stack trace

      java.lang.NullPointerException at hudson.security.TokenBasedRememberMeServices2.autoLogin(TokenBasedRememberMeServices2.java:164) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:104) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) 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:90) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:503) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) at java.lang.Thread.run(Unknown Source)

          [JENKINS-57732] 安装插件报错

          Hi - are you able to please translate the subject to English and also provide some more details about the issue you are facing? Thanks

          Richard Bywater added a comment - Hi - are you able to please translate the subject to English and also provide some more details about the issue you are facing? Thanks

          I'm getting the same stack trace on my Jenkins instance. I get an "Oops" page for any URL. I don't have any more insight yet.

           

          Andrew Mroczkowski added a comment - I'm getting the same stack trace on my Jenkins instance. I get an "Oops" page for any URL. I don't have any more insight yet.  

          Update: I tried a few things, and now it's working. I'm not sure what exactly did it:

          •  First I removed the{{ <disableRememberMe>false</disableRememberMe> }}from{{ config.xml}}
          • I also manually removed the{{ htmlpublisher-plugin }}from the{{ $JENKINS_HOME/plugins }}as the original ticket mentioned it

          Then I started getting "out of heap space" errors in Jenkins. Next

          • I increased this heap size to 1G, which didn't work
          • Then I increased to 2G. Jenkins loaded!

          Finally, I got errors saying that the html-publisher plugin was missing (which makes sense, I  forcibly removed it

          • I re-installed the html-publisher plugin and everything appears to be working.

          If I had to guess, the real fix was probably the heap size increase. The auth-related stack trace was a red-herring.

          HTH

          Andrew Mroczkowski added a comment - Update: I tried a few things, and now it's working. I'm not sure what exactly did it:  First I removed the{{ <disableRememberMe>false</disableRememberMe> }}from{{ config.xml}} I also manually removed the{{  htmlpublisher-plugin  }}from the{{ $JENKINS_HOME/plugins }}as the original ticket mentioned it Then I started getting "out of heap space" errors in Jenkins. Next I increased this heap size to 1G, which didn't work Then I increased to 2G. Jenkins loaded! Finally, I got errors saying that the html-publisher plugin was missing (which makes sense, I  forcibly removed it I re-installed the html-publisher plugin and everything appears to be working. If I had to guess, the real fix was probably the heap size increase. The auth-related stack trace was a red-herring. HTH

          Stuart Frew added a comment -

          I had the same issue, the root cause was due to an error in the Job DSL with in a CasC block.

          The Jenkins logs correctly reported the cause of the error but the stack trace shown in the browser was to do with the TokenBasedRememberMeServices2.

          This error has nothing to do with the real cause of error and can be confusing.

          Stuart Frew added a comment - I had the same issue, the root cause was due to an error in the Job DSL with in a CasC block. The Jenkins logs correctly reported the cause of the error but the stack trace shown in the browser was to do with the TokenBasedRememberMeServices2. This error has nothing to do with the real cause of error and can be confusing.

          As issue doesn't appear (on the surface) to be related to HTML Publisher plugin closing. Please reopen with more details if it is a related issue.

          Richard Bywater added a comment - As issue doesn't appear (on the surface) to be related to HTML Publisher plugin closing. Please reopen with more details if it is a related issue.

            r2b2_nz Richard Bywater
            pennyxiaoxiantu penny xiaoxiantu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: