[JIRA] (JENKINS-57732) 安装插件报错

9 views
Skip to first unread message

qiuzhimin918@163.com (JIRA)

unread,
May 29, 2019, 4:17:02 AM5/29/19
to jenkinsc...@googlegroups.com
penny xiaoxiantu created an issue
 
Jenkins / Bug JENKINS-57732
安装插件报错
Issue Type: Bug Bug
Assignee: Richard Bywater
Components: htmlpublisher-plugin
Created: 2019-05-29 08:16
Environment: jenkins-2.164.3
Priority: Critical Critical
Reporter: penny xiaoxiantu

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)

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

richard@bywater.nz (JIRA)

unread,
Jul 4, 2019, 4:29:02 AM7/4/19
to jenkinsc...@googlegroups.com
Richard Bywater commented on Bug JENKINS-57732
 
Re: 安装插件报错

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

andy@slyce.it (JIRA)

unread,
Jul 17, 2019, 12:12:05 PM7/17/19
to jenkinsc...@googlegroups.com
Andrew Mroczkowski commented on Bug JENKINS-57732
 
Re: 安装插件报错

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.

 

andy@slyce.it (JIRA)

unread,
Jul 17, 2019, 12:40:02 PM7/17/19
to jenkinsc...@googlegroups.com
 
Re: 安装插件报错

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.net.nz (JIRA)

unread,
Aug 4, 2019, 10:46:02 PM8/4/19
to jenkinsc...@googlegroups.com
Stuart Frew commented on Bug JENKINS-57732
 
Re: 安装插件报错

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.

richard@bywater.nz (JIRA)

unread,
Sep 13, 2019, 2:34:03 AM9/13/19
to jenkinsc...@googlegroups.com
Richard Bywater closed an issue as Not A Defect
 

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.

Change By: Richard Bywater
Status: Open Closed
Resolution: Not A Defect
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages