[JIRA] (JENKINS-61357) every time I click the Save button in Configure System Jenkins Crashes

24 views
Skip to first unread message

sf258g@att.com (JIRA)

unread,
Mar 5, 2020, 3:02:04 PM3/5/20
to jenkinsc...@googlegroups.com
Steven Fransen created an issue
 
Jenkins / Bug JENKINS-61357
every time I click the Save button in Configure System Jenkins Crashes
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: Screen Shot 2020-03-05 at 12.01.10 PM.png
Components: core
Created: 2020-03-05 20:01
Priority: Blocker Blocker
Reporter: Steven Fransen

this all started on the LTS update of 2.204.3

When I did that jenkins would not start it just crashes.

 I downgrade back to earlier version and I was able to Launch Jenkins again. But everytime I try to click the Save button in Configure System it crashes. It also removed my Gitlab Config. I have since update to 2.204.4 since they fixed the crash on launch bug. But I still can't save the Configure System even if nothing is changed.

here is the message I get.

 

 I also can't do any pipeline script from SCM. I have error there of a of 

java.lang.NullPointerException
at java.util.TreeMap.putAll(TreeMap.java:313)
at hudson.slaves.EnvironmentVariablesNodeProperty.buildEnvVars(EnvironmentVariablesNodeProperty.java:86)
at hudson.model.Computer.buildEnvironment(Computer.java:1207)
at hudson.model.Job.getEnvironment(Job.java:386)
at hudson.plugins.git.UserRemoteConfig$DescriptorImpl.doCheckUrl(UserRemoteConfig.java:190)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
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)

 it will not even let me load any common pipeline code 

Please help I am dead in the water.

java.lang.ClassCastException: java.lang.Integer cannot be cast to hudson.model.Describablejava.lang.ClassCastException: java.lang.Integer cannot be cast to hudson.model.Describable at hudson.util.DescribableList.get(DescribableList.java:126) at hudson.util.DescribableList.rebuild(DescribableList.java:168) at jenkins.model.GlobalNodePropertiesConfiguration.configure(GlobalNodePropertiesConfiguration.java:25) at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:3834) at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:3798) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212) at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36) at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48) at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26) 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)Caused: javax.servlet.ServletException at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:797) 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 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.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:47) 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 hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59) 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:99) 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 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:1607) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297) 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:1577) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:54) 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:270) 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:388) 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)

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

dbeck@cloudbees.com (JIRA)

unread,
Mar 6, 2020, 9:38:02 AM3/6/20
to jenkinsc...@googlegroups.com
Daniel Beck updated an issue
Change By: Daniel Beck
Component/s: git-plugin
Component/s: core

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 6, 2020, 11:07:04 AM3/6/20
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-61357
 
Re: every time I click the Save button in Configure System Jenkins Crashes

Sorry that there is a null pointer exception in that code. Git plugin 4.2.0 includes changes in URL checking that might be related (if you are using git plugin 4.2.0). Jenkins 2.204.3 and 2.204.4 include a new version of jetty that has issues with very large page submissions. I don't think that is related, but you mentioned different behavior between 2.204.2 and 2.204.3.

What version of git plugin are you running? If 4.2.0, have you tried 4.1.1?

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 6, 2020, 11:22:03 AM3/6/20
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-61357
Sorry that there is a null pointer exception in that code.  Git plugin 4.2.0 includes changes in URL checking that might be related (if you are using git plugin 4.2.0).  Jenkins 2.204.3 and 2.204.4 include a new version of jetty that has issues with very large page submissions.  I don't think that is related, but you mentioned different behavior between 2.204.2 and 2.204.3.

What version of git plugin are you running?  If 4.2.0, have you tried 4.1.1?


I'm unable to duplicate the failure you're describing.  Steps I've tried:

* Modify job definition of a Pipeline job that retrieves from git SCM
* Save the job definition

I've also tried:

* Save pipeline job that retrieves from git SCM without modifying it

Since environment is mentioned in the stack trace, is there anything special about the job definition related to environment settings?  For example, is it using additional environment settings?

sf258g@att.com (JIRA)

unread,
Mar 9, 2020, 3:58:03 PM3/9/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 9, 2020, 4:42:03 PM3/9/20
to jenkinsc...@googlegroups.com

Is the issue still visible when you use git plugin 4.1.1? What about 4.0.0?

sf258g@att.com (JIRA)

unread,
Mar 11, 2020, 9:55:02 AM3/11/20
to jenkinsc...@googlegroups.com

after I reverted back to older jenkins and spend 1 full day fixing problem broken I am back to where I was I will not risk moving forward again. I can create a new VM and copy all there . but it will take me a bit to get that done

 

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 11, 2020, 10:10:03 AM3/11/20
to jenkinsc...@googlegroups.com

Thanks. Can you provide more details of the current working state? For instance, would you be willing to upload a "support bundle" with the support-core plugin. That will provide plugin versions, Jenkins version, etc.

sf258g@att.com (JIRA)

unread,
Apr 3, 2020, 4:23:03 PM4/3/20
to jenkinsc...@googlegroups.com

I am totally afraid to upload at this point.  it took me so long to get it back working again.

 Also with the lock down I am not willing to do anything to risk it again.

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 3, 2020, 5:20:03 PM4/3/20
to jenkinsc...@googlegroups.com

No problem, and perfectly understandable Steven Fransen.

I'll set myself a reminder to revisit this in a month or so. If you haven't been able to duplicate it by then and no one else has reported a similar condition, I'll close it as "cannot reproduce". It will remain in the issue tracker and will continue to be indexed by search engines so that others can find it.

mark.earl.waite@gmail.com (JIRA)

unread,
May 2, 2020, 10:03:02 AM5/2/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
May 2, 2020, 10:03:02 AM5/2/20
to jenkinsc...@googlegroups.com
 

Was unable to reproduce this on any of my attempts.

Change By: Mark Waite
Status: Open Fixed but Unreleased
Resolution: Cannot Reproduce
Reply all
Reply to author
Forward
0 new messages