[JIRA] (JENKINS-59198) NullPointerException in hudson.util.Secret$1.convert

18 views
Skip to first unread message

dbeck@cloudbees.com (JIRA)

unread,
Sep 4, 2019, 9:09:03 AM9/4/19
to jenkinsc...@googlegroups.com
Daniel Beck updated an issue
 
Jenkins / Bug JENKINS-59198
NullPointerException in hudson.util.Secret$1.convert
Change By: Daniel Beck
Summary: jenkisn配置发送测试邮件失败,报空指针异常 NullPointerException in hudson.util.Secret$1.convert
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

slide.o.mix@gmail.com (JIRA)

unread,
Sep 5, 2019, 1:35:02 PM9/5/19
to jenkinsc...@googlegroups.com
Alex Earl commented on Bug JENKINS-59198
 
Re: NullPointerException in hudson.util.Secret$1.convert

Based on the stack trace, it looks like value is null in the converter:

https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/util/Secret.java#L306.

Without more information, no debug is possible.

slide.o.mix@gmail.com (JIRA)

unread,
Feb 21, 2020, 2:01:03 PM2/21/20
to jenkinsc...@googlegroups.com
Alex Earl closed an issue as Incomplete
Change By: Alex Earl
Status: In Progress Closed
Resolution: Incomplete
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

based@free.fr (JIRA)

unread,
Apr 13, 2020, 8:12:05 AM4/13/20
to jenkinsc...@googlegroups.com
Basile Chandesris reopened an issue
 

I faced the same issue on a 2.222.1 server with Splunk plugin in the stacktrace:

java.lang.NullPointerException
at hudson.util.Secret$1.convert(Secret.java:306)
at hudson.util.Secret$1.convert(Secret.java:304)
at org.kohsuke.stapler.AnnotationHandler.convert(AnnotationHandler.java:66)
at org.kohsuke.stapler.QueryParameter$HandlerImpl.parse(QueryParameter.java:74)
at org.kohsuke.stapler.QueryParameter$HandlerImpl.parse(QueryParameter.java:62)
at org.kohsuke.stapler.AnnotationHandler.handle(AnnotationHandler.java:91)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:204)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
at com.splunk.splunkjenkins.WebPostAccessLogger.doFilter(WebPostAccessLogger.java:39)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:246)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:153)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
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: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)

Change By: Basile Chandesris
Resolution: Incomplete
Status: Closed Reopened
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

based@free.fr (JIRA)

unread,
Apr 13, 2020, 8:15:08 AM4/13/20
to jenkinsc...@googlegroups.com
I faced the same issue on a 2.222.1 server with Splunk plugin in the stacktrace:

maybe a side effect of SECURITY-1774 / CVE-2020-2160 fix:

[https://jenkins.io/security/advisory/2020-03-25/]

will check with:

As an additional safeguard, semicolon ({{;}}) characters in the path part of a URL are now banned by default. Administrators can disable this protection by setting the system property {{jenkins.security.SuspiciousRequestFilter.allowSemicolonsInPath}} to {{true}}

based@free.fr (JIRA)

unread,
Apr 13, 2020, 8:16:03 AM4/13/20
to jenkinsc...@googlegroups.com
Basile Chandesris updated an issue
Change By: Basile Chandesris
Component/s: splunk-devops-plugin

based@free.fr (JIRA)

unread,
Apr 13, 2020, 8:16:04 AM4/13/20
to jenkinsc...@googlegroups.com

based@free.fr (JIRA)

unread,
Apr 13, 2020, 8:18:03 AM4/13/20
to jenkinsc...@googlegroups.com
Basile Chandesris edited a comment on Bug JENKINS-59198
 
Re: NullPointerException in hudson.util.Secret$1.convert
I faced the same issue on a 2.222.1 server with Splunk plugin in the stacktrace : ,

maybe while testing the Plugins proxy setup.

Maybe,
a side effect of SECURITY-1774 / CVE-2020-2160 fix:

[https://jenkins.io/security/advisory/2020-03-25/]

will check
with disabling :

As _As an additional safeguard, semicolon ({{;}}) characters in the path part of a URL are now banned by default. Administrators can disable this protection by setting the system property {{jenkins.security.SuspiciousRequestFilter.allowSemicolonsInPath}} to {{true}} _

based@free.fr (JIRA)

unread,
Apr 13, 2020, 8:20:07 AM4/13/20
to jenkinsc...@googlegroups.com
Basile Chandesris edited a comment on Bug JENKINS-59198
 
Re: NullPointerException in hudson.util.Secret$1.convert
I faced the same issue on a 2.222.1 server , Redhat 7, Java 8 242,

with Splunk plugin in the stacktrace,


while testing the Plugins proxy setup.

Maybe  

As I found: jenkins.security.SuspiciousRequestFilte
, maybe,

a side effect of SECURITY-1774 / CVE-2020-2160 fix:

[https://jenkins.io/security/advisory/2020-03-25/]

will check disabling:

based@free.fr (JIRA)

unread,
Apr 13, 2020, 8:24:03 AM4/13/20
to jenkinsc...@googlegroups.com
Basile Chandesris edited a comment on Bug JENKINS-59198
 
Re: NullPointerException in hudson.util.Secret$1.convert
I faced the same issue on a 2.222.1 server, Redhat 7, Java 8 242,


with Splunk plugin in the stacktrace


and I have also email-ext-plugin on the server
,


while testing the Plugins proxy setup


(In the context of ENKINS-61820, after the manual failed update)
.

 

As I found: jenkins.security.SuspiciousRequestFilte, maybe,

based@free.fr (JIRA)

unread,
Apr 13, 2020, 8:25:05 AM4/13/20
to jenkinsc...@googlegroups.com
Basile Chandesris edited a comment on Bug JENKINS-59198
I faced the same issue on a 2.222.1 server, Redhat 7, Java 8 242,

with Splunk plugin in the stacktrace



and I have also email-ext-plugin on the server,

while testing the Plugins proxy setup

(In the context of ENKINS JENKINS -61820, after the manual failed update).

based@free.fr (JIRA)

unread,
Apr 13, 2020, 8:35:06 AM4/13/20
to jenkinsc...@googlegroups.com
Basile Chandesris edited a comment on Bug JENKINS-59198
I faced the same issue on a 2.222.1 server, Redhat 7, Java 8 242,

with Splunk plugin - 1.9.2 - in the stacktrace

and I have also email-ext-plugin
- 2.69 - on the server,


while testing the Plugins proxy setup

(In the context of JENKINS-61820, after the manual failed update).

slide.o.mix@gmail.com (JIRA)

unread,
Apr 13, 2020, 1:13:03 PM4/13/20
to jenkinsc...@googlegroups.com
Alex Earl assigned an issue to Unassigned
Change By: Alex Earl
Assignee: Alex Earl
Reply all
Reply to author
Forward
0 new messages