Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26155

During build, the job page fails with : "<d:invokeBody> can't parse argument number"

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Linux, Jenkins 1.593

      Opening the job page, during build is throwing an exception:

      javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.593.jar!/lib/layout/main-panel.jelly:36:21: <d:invokeBody> can't parse argument number: 
      	at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:117)
      	at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:735)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
      	at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:391)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
      	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
      	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:848)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      	at org.eclipse.jetty.server.Server.handle(Server.java:370)
      	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
      	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)
      	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
      	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
      	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.593.jar!/lib/layout/main-panel.jelly:36:21: <d:invokeBody> can't parse argument number: 
      	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.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.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.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.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
      	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)
      	... 53 more
      Caused by: java.lang.IllegalArgumentException: can't parse argument number: 
      	at java.text.MessageFormat.makeFormat(MessageFormat.java:1429)
      	at java.text.MessageFormat.applyPattern(MessageFormat.java:479)
      	at java.text.MessageFormat.<init>(MessageFormat.java:362)
      	at java.text.MessageFormat.format(MessageFormat.java:840)
      	at org.kohsuke.stapler.jelly.ResourceBundle.format(ResourceBundle.java:74)
      	at org.kohsuke.stapler.jelly.InternationalizedStringExpression.format(InternationalizedStringExpression.java:144)
      	at org.kohsuke.stapler.jelly.InternationalizedStringExpression.access$100(InternationalizedStringExpression.java:54)
      	at org.kohsuke.stapler.jelly.InternationalizedStringExpression$1.evaluate(InternationalizedStringExpression.java:166)
      	at org.apache.commons.jelly.impl.ExpressionScript.run(ExpressionScript.java:66)
      	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.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.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)
      	... 80 more
      Caused by: java.lang.NumberFormatException: For input string: ""
      	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      	at java.lang.Integer.parseInt(Integer.java:592)
      	at java.lang.Integer.parseInt(Integer.java:615)
      	at java.text.MessageFormat.makeFormat(MessageFormat.java:1427)
      	... 97 more
      

          [JENKINS-26155] During build, the job page fails with : "<d:invokeBody> can't parse argument number"

          Zsombor g. created issue -

          Daniel Beck added a comment -

          What language are you using Jenkins in?

          Daniel Beck added a comment - What language are you using Jenkins in?

          Zsombor g. added a comment -

          The browser set to hungarian. Do you think, this is a locale specific error ?

          Zsombor g. added a comment - The browser set to hungarian. Do you think, this is a locale specific error ?

          Daniel Beck added a comment -

          It's possible. Change your browser's Accept-Language to test.

          Would be interesting to see the job config and/or a screenshot of the job page when no build is running (assuming it works then).

          Does this affect all jobs, or only specific ones? If the latter, what do they have in common?

          Daniel Beck added a comment - It's possible. Change your browser's Accept-Language to test. Would be interesting to see the job config and/or a screenshot of the job page when no build is running (assuming it works then). Does this affect all jobs, or only specific ones? If the latter, what do they have in common?

          Zsombor g. added a comment -

          I can confirm, that switching to en-us solve the problem. And it affects all the builds - currently I have only 2 maven build, one is multi-module, one is simple.
          The configuration for both are very simple, 'git pull' and 'mvn install'. Nothing else.

          Zsombor g. added a comment - I can confirm, that switching to en-us solve the problem. And it affects all the builds - currently I have only 2 maven build, one is multi-module, one is simple. The configuration for both are very simple, 'git pull' and 'mvn install'. Nothing else.

          Daniel Beck added a comment -

          Cannot reproduce the issue on Jenkins 1.594 (all plugins to latest non-beta version) with language set to hu on the index page of a Maven project.

          I can only assume a plugin renders something that breaks, hence the question about what gets shown on the index page. Could be as simple as parameterized trigger (or even core's 'Build other projects'.

          Could you provide screenshots of both the English and Hungarian job index page that breaks? This may give a hint as to what breaks.

          Straightforward workaround is present, so classification as Minor seems correct.

          Daniel Beck added a comment - Cannot reproduce the issue on Jenkins 1.594 (all plugins to latest non-beta version) with language set to hu on the index page of a Maven project. I can only assume a plugin renders something that breaks, hence the question about what gets shown on the index page. Could be as simple as parameterized trigger (or even core's 'Build other projects'. Could you provide screenshots of both the English and Hungarian job index page that breaks? This may give a hint as to what breaks. Straightforward workaround is present, so classification as Minor seems correct.

          Zsombor g. added a comment -

          I can reproduce it, just configure a maven project, using git, setting the repository to https://github.com/gzsombor/ixlibs.git, and runing the 'install' target.

          Zsombor g. added a comment - I can reproduce it, just configure a maven project, using git, setting the repository to https://github.com/gzsombor/ixlibs.git , and runing the 'install' target.

          Zsombor g. added a comment -

          The hungarian and the english version of the build

          Zsombor g. added a comment - The hungarian and the english version of the build
          Zsombor g. made changes -
          Attachment New: jenkins-hu.png [ 28197 ]
          Attachment New: jenkins-en.png [ 28198 ]

          Daniel Beck added a comment -

          Reproduced. It affects the build page (/job/foo/123) rather than the job page (/job/foo).

          Daniel Beck added a comment - Reproduced. It affects the build page (/job/foo/123) rather than the job page (/job/foo).

            danielbeck Daniel Beck
            renszarv Zsombor g.
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: