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

http://<jenkins>/job/XXX/41/api/xml IOException: Failed to write timestamp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
       jenkins 1.609.2 LTS
       git plugin 2.4.0
      git client plugin 1.18.0
    • Similar Issues:

      Description

      Stack trace

      java.io.IOException: Failed to write timestamp
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:122)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:197)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:192)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:241)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:172)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:139)
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:197)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:192)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:241)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:139)
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:197)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:192)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:192)
      at org.kohsuke.stapler.export.Model.writeTo(Model.java:164)
      at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:267)
      at hudson.model.Api.doXml(Api.java:100)
      at sun.reflect.GeneratedMethodAccessor1202.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
      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.MetaClass$4.doDispatch(MetaClass.java:211)
      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.MetaClass$13.dispatch(MetaClass.java:411)
      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:123)
      at com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:46)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120)
      at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120)
      at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)
      at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)
      at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:85)
      at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:99)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114)
      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:168)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
      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$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
      ... 90 more
      Caused by: java.lang.IllegalArgumentException: Illegal pattern character 'X'
      at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:768)
      at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:575)
      at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:500)
      at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:475)
      at hudson.plugins.git.GitChangeSet.getTimestamp(GitChangeSet.java:214)
      ... 96 more

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Seems ti be an issue in Git Plugin. I've corrected the component. The issue will be reassigned to the plugin's owner

          Show
          oleg_nenashev Oleg Nenashev added a comment - Seems ti be an issue in Git Plugin. I've corrected the component. The issue will be reassigned to the plugin's owner
          Hide
          markewaite Mark Waite added a comment - - edited

          This is only a problem on machines running the Jenkins master on Java 6. The exception is due to Java 6 not understanding the date format argument "X". Java 7 and Java 8 support that argument.

          I prepared a change to fix this. It should be included in the next release of the git plugin after 2.4.0

          I assume your Jenkins master is running Java 6. If so, you should refer to "Goodbye Java 6" for the Jenkins plans for eventual end of Java 6 support, and the Oracle Java SE support page which notes that public updates to Java 6 stopped in December 2013. I realize Oracle will continue to support Java 6 for paying support customers through 2018, but the Jenkins community has started the transition to Java 7. The git plugin will probably support Java 6 for only 6-12 more months.

          Show
          markewaite Mark Waite added a comment - - edited This is only a problem on machines running the Jenkins master on Java 6. The exception is due to Java 6 not understanding the date format argument "X". Java 7 and Java 8 support that argument. I prepared a change to fix this. It should be included in the next release of the git plugin after 2.4.0 I assume your Jenkins master is running Java 6. If so, you should refer to " Goodbye Java 6 " for the Jenkins plans for eventual end of Java 6 support, and the Oracle Java SE support page which notes that public updates to Java 6 stopped in December 2013. I realize Oracle will continue to support Java 6 for paying support customers through 2018, but the Jenkins community has started the transition to Java 7. The git plugin will probably support Java 6 for only 6-12 more months.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Mark Waite
          Path:
          src/main/java/hudson/plugins/git/GitChangeSet.java
          http://jenkins-ci.org/commit/git-plugin/c6f0d49815a6f0a22e97b0acb73ca5b80aa3ac9d
          Log:
          [Fix JENKINS-29857] Java 6 refuses X argument for date parsing

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/hudson/plugins/git/GitChangeSet.java http://jenkins-ci.org/commit/git-plugin/c6f0d49815a6f0a22e97b0acb73ca5b80aa3ac9d Log: [Fix JENKINS-29857] Java 6 refuses X argument for date parsing
          Hide
          markewaite Mark Waite added a comment -

          A pre-release build is available from the CloudBees server if you'd like to try it.

          Show
          markewaite Mark Waite added a comment - A pre-release build is available from the CloudBees server if you'd like to try it.
          Hide
          step t stepanchuk added a comment -

          OK. Solved with java 7. Thanks

          Show
          step t stepanchuk added a comment - OK. Solved with java 7. Thanks
          Hide
          markewaite Mark Waite added a comment -

          Included in git plugin 2.4.1 released 26 Dec 2015

          Show
          markewaite Mark Waite added a comment - Included in git plugin 2.4.1 released 26 Dec 2015

            People

            • Assignee:
              markewaite Mark Waite
              Reporter:
              step t stepanchuk
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: