-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
Centos 7 Java 8
-
Powered by SuggestiMate
I upgraded Jenkins to 2.107 yesterday and upgraded all the plugins to their latest version. After that some of our jobs can no longer be configured. The page just shows "Loading" with a blinking icon. In addition, the chrome developer tool shows
hudson-behavior.js:424 Uncaught TypeError: Cannot read property 'firstChild' of undefined
at registerValidator (hudson-behavior.js:424)
at Array.forEach (<anonymous>)
at behavior.js:111
at Array.forEach (<anonymous>)
at behavior.js:107
at Array.forEach (<anonymous>)
at Object.applySubtree (behavior.js:93)
at select.js:269
registerValidator @ hudson-behavior.js:424
(anonymous) @ behavior.js:111
(anonymous) @ behavior.js:107
applySubtree @ behavior.js:93
(anonymous) @ select.js:269
setTimeout (async)
(anonymous) @ select.js:263
- duplicates
-
JENKINS-49625 Config pages of Maven jobs do no load
-
- Closed
-
- is duplicated by
-
JENKINS-49688 Job Configration page shows Loading... and hangs
-
- Resolved
-
-
JENKINS-49625 Config pages of Maven jobs do no load
-
- Closed
-
- is related to
-
JENKINS-46653 Jenkins configure system save and apply buttons missing
-
- Reopened
-
-
JENKINS-49375 Cannot read property 'firstChild' of undefined
-
- Resolved
-
-
JENKINS-42228 Javascript error credentials select
-
- Closed
-
- relates to
-
JENKINS-49694 NPE in io.jenkins.blueocean.preload.PipelineActivityStatePreloader.getFetchData
-
- Open
-
-
JENKINS-49392 Violations plugin freezes project settings screen
-
- Closed
-
- links to
[JENKINS-49630] Unable to view configuration of some projects after upgrade to 2.107
Upgrading the Maven plugin seems to have resolved the second stack trace but I still cannot view the configuration for several jobs. They are still getting the Javascript error I noted above.
Just to be clear, you're looking at classic Jenkins, correct? hudson-behavior.js has nothing to do with Blue Ocean.
Yes - this is Jenkins downloaded from your site as a war on Friday. I am adding as much information as I can here in the hopes that something in the logs is related to what is happening in the UI.
After upgrading the Maven plugin I now notice. I am not sure if this was there previously and I just missed it or if it is new to the restart.
Feb 19, 2018 9:32:00 AM WARNING hudson.init.impl.InstallUncaughtExceptionHandler lambda$init$0
null org.apache.commons.jelly.JellyTagException: jar:file:/opt/jenkins/apache-tomcat-7.0.65/webapps/jenkins/WEB-INF/lib/jenkins-core-2.107.jar!/hudson/model/View/index.jelly:42:43: <st:include> org.apache.commons.jelly.JellyTagException: jar:file:/opt/jenkins/apache-tomcat-7.0.65/webapps/jenkins/WEB-INF/lib/jenkins-core-2.107.jar!/lib/hudson/projectViewRow.jelly:38:17: <st:nbsp> java.net.SocketException: Broken pipe at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:726) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:281) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.kohsuke.stapler.jelly.CompressTag.doTag(CompressTag.java:44) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53) at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:112) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:140) at org.kohsuke.stapler.IndexViewDispatcher.dispatch(IndexViewDispatcher.java:30) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:782) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:225) 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 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.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:64) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 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:117) 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:135) 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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: org.apache.commons.jelly.JellyTagException: jar:file:/opt/jenkins/apache-tomcat-7.0.65/webapps/jenkins/WEB-INF/lib/jenkins-core-2.107.jar!/lib/hudson/projectViewRow.jelly:38:17: <st:nbsp> java.net.SocketException: Broken pipe at org.kohsuke.stapler.jelly.groovy.JellyBuilder.doInvokeMethod(JellyBuilder.java:280) at org.kohsuke.stapler.jelly.groovy.Namespace$ProxyImpl.invoke(Namespace.java:92) at com.sun.proxy.$Proxy106.projectView(Unknown Source) at lib.JenkinsTagLib$projectView$1.call(Unknown Source) at hudson.model.View.main.run(main.groovy:16) at org.kohsuke.stapler.jelly.groovy.GroovierJellyScript.run(GroovierJellyScript.java:74) at org.kohsuke.stapler.jelly.groovy.GroovierJellyScript.run(GroovierJellyScript.java:62) at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) ... 105 more Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/opt/jenkins/apache-tomcat-7.0.65/webapps/jenkins/WEB-INF/lib/jenkins-core-2.107.jar!/lib/hudson/projectViewRow.jelly:38:17: <st:nbsp> java.net.SocketException: Broken pipe at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:726) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161) at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.kohsuke.stapler.jelly.groovy.JellyBuilder.doInvokeMethod(JellyBuilder.java:276) ... 113 more Caused by: org.apache.catalina.connector.ClientAbortException: java.net.SocketException: Broken pipe at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:407) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:366) at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:432) at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:420) at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:91) at com.jcraft.jzlib.DeflaterOutputStream.deflate(DeflaterOutputStream.java:144) at com.jcraft.jzlib.DeflaterOutputStream.write(DeflaterOutputStream.java:102) at org.kohsuke.stapler.compression.FilterServletOutputStream.write(FilterServletOutputStream.java:41) at org.kohsuke.stapler.jelly.DefaultScriptInvoker$1.write(DefaultScriptInvoker.java:99) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) at java.io.BufferedWriter.flush(BufferedWriter.java:254) at org.dom4j.io.XMLWriter.flush(XMLWriter.java:276) at org.apache.commons.jelly.XMLOutput.flush(XMLOutput.java:127) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:271) ... 133 more Caused by: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:215) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:366) at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:240) at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:93) at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:192) at org.apache.coyote.Response.doWrite(Response.java:499) at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:402) ... 151 more Caused: javax.servlet.ServletException at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:117) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:140) at org.kohsuke.stapler.IndexViewDispatcher.dispatch(IndexViewDispatcher.java:30) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:782) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:225) 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 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.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:64) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 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:117) 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:135) 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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)
Looking further at the exception we see
Exception
:
TypeError: Cannot read property 'firstChild' of undefined at updateListBox (https://jenkins.nextiva.xyz/jenkins/adjuncts/7c62842d/lib/form/select/select.js:8:67) at https://jenkins.nextiva.xyz/jenkins/adjuncts/7c62842d/lib/form/select/select.js:79:13 at h (https://jenkins.nextiva.xyz/jenkins/static/7c62842d/scripts/hudson-behavior.js:1298:9) at refillOnChange (https://jenkins.nextiva.xyz/jenkins/static/7c62842d/scripts/hudson-behavior.js:1313:5) at https://jenkins.nextiva.xyz/jenkins/adjuncts/7c62842d/lib/form/select/select.js:77:9 at Array.forEach (<anonymous>) at https://jenkins.nextiva.xyz/jenkins/static/7c62842d/scripts/behavior.js:111:30 at Array.forEach (<anonymous>) at https://jenkins.nextiva.xyz/jenkins/static/7c62842d/scripts/behavior.js:107:27 at Array.forEach (<anonymous>)
arguments
:
Arguments(3) [select.setting-input.select.credentials-select, "/jenkins/view/Calendar/job/calendar-dry-run-rev/descriptorByName/bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger/fillCredentialsIdItems", F, callee: Æ’, Symbol(Symbol.iterator): Æ’]
I created a new Job and selected "Maven Project" as the type. It has the same problem without me configuring anything.
In stepping through the code where the error is occurring I can see it is going through an HTMLCollection that contains a set of div.credentials-select-control objects. I am having some trouble getting any deeper.
We were on 2.76. I am not sure to tell you the versions of all the plugins we were using.
Digging further we see that select.js updateListBox is calling hudson-behavior.js findFollowingTR which is returning undefined, causing the subsequent code to fail.
See image-2018-02-19-12-03-57-775.png
I am also noticing that the number of div.credentials-select-control items seems to vary each time I run it. It will contain anywhere from 4 to 6 items. I have no idea why that would change.
I should also add that we see the same Javascript error on other pages but only ones with the credentials selection seem to fail to completely load.
vivek not sure why our Blue Ocean preloader is running in this case - this appears to be rendering a classic jelly page. Something strange going on?
After research we determined that the problem is related to the jobs configuration files (config.xml)
In the changelog we found information that in version 2.105 changes were made with updating xml version from 1.0 to 1.1. - https://jenkins.io/changelog/#v2.105
After rollback to version 2.104 and several manual manipulations Jenkins started with no error.
So, what we have done:
- We downgraded Jenkins from 2.107 to 2.104
2.104 version is the latest stable version with support xml 1.0
- In all xml-files we changed xml-version from 1.1 to 1.0 (<?xml version='1.0' encoding='UTF-8'?>)
After all changes Jenkins master started with no errors and look all jobs works fine now.
@reporter - if possible, can you attach the broken config.xml, as well as provide any relevant detail about the manual manipulations you had to perfrom for the the downgrade (ie. was it more than just changing the xml version in the config files?)
I didn't perform the work myself, but I am told that after downgrading to 2.104 the only change was to change the XML version in the files.
<?xml version='1.1' encoding='UTF-8'?> to <?xml version='1.0' encoding='UTF-8'?>
As noted in JENKINS-49625 I appreciate the workaround, rgoers. Yet, this doesn't seem to confirm that the root cause is actually in the XML file parsing. It only confirms that one could go back to 2.104. Yesterday, I set up a Jenkins Docker instance and couldn't reproduce the bug so far. Although a newly created config.xml looks the same on both our real Jenkins instance and the Docker one.
I was also unable to reproduce this with the information provided. Nothing in the stack trace indicates to me that this is related to the XML change.
Any ideas mikecirioli and oleg_nenashev how to help finding the root cause of this?
IIUC the issue does not apprear on 2.104 with the latest BlueOcean release, am I right?
If yes, something is clearly wrong in the core.
How to diagnose the issue?
- Start Web Developer tools in your browser
- Open script console
- Open the Jenkins page which fails to load
- Debug JavaScript to see which form fails and what is the reason for the first reported issue (what field/data cause that).
You mileage may vary. I am not a JS developer, and I am definitely not the best source of such guidelines . Maybe kzantow can provide more details
It's actually unrelated to BlueOcean at all, I think. In our setup we don't have BlueOcean installed and it still fails. So I agree that there is something fishy in the core (or the maven-plugin)
And in some maven jobs I can't actually get to the point of seeing the spinner above the config page, but simply nothing happens and the request eventually times out. So I'd even argue it is JS related.
I've just solved it disabling 2 very outdated plugins:
- Violations (violations-plugin)
- Warnings
But looking at the jenkins thread dumps I'm pretty sure was caused by Violations plugin
Notes:
Jenkins Version: 2.108
All plugins updated to the latest versions.
ferratello You're the man! That worked for me as well. I actually installed the violations plugin on the Docker instance and it works, but somehow it doesn't on our live setup. Fun fact: The plugin wasn't even used in the respective Maven Jobs, but in a different non-maven job
We have violations 0.7.11 and warnings 4.6.5 installed. Since we are now back on 2.104 I can't say if they are the real cause of the problem. I also don't think it has anything to do with blue ocean, despite seeing the exception in the log.
Thanks a lot for the analysis! There is a branch for Violations plugin with a serious rewrite by tomasbjerre: https://github.com/jenkinsci/violations-plugin/commits/master . If somebody can try that and verify that the issue dissapears, it could be an additional justification to move forward with that
For the record, future of violations plugin is discussed here:
https://github.com/jenkinsci/violations-plugin/issues/88
I don't mind releasing it. Should require minimal effort from my part to maintain as I already maintain the lib for a bunch of other tools.
The last change in core's registerValidator JavaScript was 5 years ago. the failing line is here: https://github.com/jenkinsci/jenkins/blame/5c8cc45900bf8d78058cecd471840bdbc88215d3/war/src/main/webapp/scripts/hudson-behavior.js#L424
Apparently, "validation-error-area" is missing, and it causes the code to fail.
Since Violations plugin has not been updated for long as well, my theory is that the plugin is a collateral damage as well. Likely recent update in something (e.g. analytics core) contributed an extension implementation with a bogus field.
Will see if I can reproduce that
I have tried to reproduce the issue by installing Violations / Warnings and other plugins on 2.108, was unable to do so.
From the screenshots I see that it something related to credentials: "select.credentials-select". It comes from Credentials plugin: https://github.com/jenkinsci/credentials-plugin/search?utf8=%E2%9C%93&q=%22credentials-select%22&type=
Now the challenge is to find an overlap between Credentials and Violations
As a general note, I would kindly request that whenever coming across a reproducible case of Jenkins emitting an Uncaught TypeError: Cannot read property 'firstChild' of undefined for any reason, that in addition to fixing the root cause, the assignee also improve hudson-behavior.js to
- console.log a meaningful warning explaining what exactly it was looking for and where it failed to find that
- if possible, carry on other JavaScript processing on the page, so that the UI is not completely broken
As an additional data point: in our current system (didn't manage to isolate the exact plugin combination yet) we can only observe this behaviour with Maven/Ivy Projects. Specifically it is enough to try to create a new job of these types as the renderer will fail on first enter of the UI already. This behaviour does not occur with Freestyle, Pipeline or External Jobs. However we also do have the Validations and Warnings plugins installed (which I cannot remove easily right now).
Without knowing too much about the code around this: the target element ID of the failing element is select.setting-input.validated.select.credentials-select
The surrounding DOM looks like this, so given from the select element in the last TR element there actually is no following TR to find here. The block seems to step from the Git configuration block and looking at a Freestyle project, those actually do have following TR elements.
<table style="width:100%"> <tbody> <tr> <td class="setting-leftspace"> </td> <td class="setting-name">Repository URL</td> <td class="setting-main"> <input checkdependson="credentialsId" checkmethod="post" checkurl="/job/DB-MavenJob/descriptorByName/hudson.plugins.git.UserRemoteConfig/checkUrl" name="_.url" type="text" class="setting-input validated " value=""> </td> <td class="setting-help"> <a helpurl="/descriptor/hudson.plugins.git.UserRemoteConfig/help/url" href="#" class="help-button"><img src="/static/431de1fb/images/16x16/help.png" alt="Help for feature: Repository URL" style="width: 16px; height: 16px; " class="icon-help icon-sm"></a></td></tr><tr class="validation-error-area"><td colspan="2"></td><td></td><td></td></tr><tr class="help-area"><td></td><td colspan="2"><div class="help">Loading...</div> </td> <td></td> </tr> <tr> <td class="setting-leftspace"> </td> <td class="setting-name">Credentials</td> <td class="setting-main"> <div class="credentials-select-control"><div class="credentials-select-content-select credentials-select-content-active"> <select checkdependson="url" fillurl="/job/DB-MavenJob/descriptorByName/hudson.plugins.git.UserRemoteConfig/fillCredentialsIdItems" checkurl="/job/DB-MavenJob/descriptorByName/hudson.plugins.git.UserRemoteConfig/checkCredentialsId" filldependson="url credentialsId" name="_.credentialsId" class="setting-input validated select credentials-select" value=""></select> <span class="yui-button yui-menu-button" id="yui-gen3"><span class="first-child"><button type="button" tabindex="0" id="yui-gen3-button" class="credentials-add-menu" suffix="null"><img src="/static/431de1fb/plugin/credentials/images/16x16/new-credential.png" style="width: 16px; height: 16px; " class="icon-credentials-new-credential icon-sm"> Add</button></span></span> <div class="credentials-add-menu-items yuimenu yui-module yui-overlay yui-overlay-hidden yui-button-menu yui-menu-button-menu" id="yui-gen4" style="z-index: 2; position: absolute; visibility: hidden;"><div class="bd"><ul class="first-of-type"><li class="yuimenuitem" data-url="/descriptor/com.cloudbees.plugins.credentials.CredentialsSelectHelper/resolver/com.cloudbees.plugins.credentials.CredentialsSelectHelper$SystemContextResolver/provider/com.cloudbees.plugins.credentials.SystemCredentialsProvider$ProviderImpl/context/jenkins/dialog"><span tooltip="Jenkins Credentials Provider" class="yuimenuitemlabel"><img src="/static/431de1fb/plugin/credentials/images/16x16/system-store.png" style="width: 16px; height: 16px; " class="icon-credentials-system-store icon-sm"> Jenkins </span></li></ul></div></div></div> </div> </td> </tr> </tbody> </table>
From previous comments, it seems to happen in Maven projects, with Violations and Warnings plugins installed. Is that the consensus here?
At least in our installation it seems to be localized to Maven and Ivy projects only, although I couldn't reproduce it on a fresh instance yet (even with Violations / Warnings installed). One other thing I noticed is that the DOM tree seems to look okay after the problematic JS call failed (i.e. there is a proper following TR element then). Maybe the call somehow gets issued too early or there is some kind of race condition going on?
In my case the problem was only happening in Maven projects. We had both the Violations and Warnings plugins installed.
Note that even after downgrading to 2.104 we are still getting the javascript error from hudson-behavior.js, although the pages are now working properly. That error appears on most of our job's configuration pages. So I doubt it is related to whatever the problem was when we were running 2.107. It would be useful to fix that javascript error just so it doesn't keep muddying the waters.
I have had this same issue in Jenkins version 2.109, violations version 0.7.11 with Freestyle jobs. I've looked at the thread dump for projects that I couldn't load and saw this:
It appears to be stuck loading something with the violations plugin. This appears to affect all the freestyle jobs that use the violations plugin on my server.
Actually upgrading to 2.111 fixed the issue completely for me. Could this be related to the fix to JENKINS-49968? Comments there mention breaking the validation logic which seems to be involved in this one as well.
triphoenix JENKINS-49968 was introduced in 2.110, and this issue predates that.
That's true, however I can observe that while the JavaScript TypeError in findFollowingTR still occurs (as others noted here that probably happened before already), the inability to edit maven projects did in fact disappear for us when upgrading to 2.111 (only other updates were the Durable Tasks 1.18 to 1.21 and Metrics 3.1.2.10 to 3.1.2.11); maybe the issue is now shadowed or handled better by existing code?
View Image: image-2018-03-19-07-58-52-706.png
updateListBox gets called before a following tr with the class="validation-error-area" exists / is being appended.
That js error exists for long time in jenkins.
"uninstalling Violations plugin" works for us (maven project loading issue is gone), we are using v2.113
Same here with Jenkins 2.107.2. Desactivating the Violations plugin 0.7.11 (with dependencies on him Violation Columns(List View Columns) 1.6, Warnings Plug-in, Static Analysis Collector Plug-in 1.52) made possible editing the configuration of the project. Still getting JS errors in the browser console :
hudson-behavior.js:424 Uncaught TypeError: Cannot read property 'firstChild' of undefined at registerValidator (hudson-behavior.js:424) at Array.forEach (<anonymous>) at behavior.js:111 at Array.forEach (<anonymous>) at behavior.js:107 at Array.forEach (<anonymous>) at Object.applySubtree (behavior.js:93) at select.js:269 registerValidator @ hudson-behavior.js:424 (anonymous) @ behavior.js:111 (anonymous) @ behavior.js:107 applySubtree @ behavior.js:93 (anonymous) @ select.js:269 setTimeout (async) (anonymous) @ select.js:263 configure:1 [DOM] Found 2 elements with non-unique id #svn.remote.loc: (More info: https://goo.gl/9p2vKq) input#svn.remote.loc.setting-input.validated input#svn.remote.loc.setting-input.validated hudson-behavior.js:1311 Unable to find nearby server (anonymous) @ hudson-behavior.js:1311 (anonymous) @ prototype.js:853 each @ prototype.js:852 refillOnChange @ hudson-behavior.js:1308 (anonymous) @ select.js:77 (anonymous) @ behavior.js:111 (anonymous) @ behavior.js:107 applySubtree @ behavior.js:93 apply @ behavior.js:76 (anonymous) @ behavior.js:71 window.onload @ behavior.js:125
Deactivating just Violations plugin 0.7.11 work for us. Using Jenkins 2.107.2 LTS also.
Having this issue on a brand new Jenkins ver. 2.138.1 instance with only the default suggested plugins, can't create a new build pipeline because of it. Don't have violations plugin. Can't remove the credentials plugin because everything (even git integration) is dependent on it.
This issue seems to have become a grab-bag of possibly many unrelated problems, without steps to reproduce. I would suggest closing it. Anyone encountering reproducible issues should please ignore this and file fresh issues with complete steps to reproduce from scratch.
I have this issue on new updated Jenkins (2.138.3). I can't create or open a Jenkins job with Maven type. It tries to load the config page and the loading symbol do not stop moving. If I remove the mentioned "violations" plugin, it works again. But I can't just remove the plugin. It will be needed for the code analysis I guess.
Are there any news?
In our case, we found that (for whatever reason) restarting the Jenkins instance fixed the issue.
Thank you for your answer, but in my case it do not solve the problem. I restarted Jenkins the last 3 days more than 20 times.
As I read, the violations plugin will be replaced by the warnings plugin. So I removed the violations plugin and my Jenkins is now running without problem.
yes (for the second reported issue)