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

NumberFormatException occurs when accessing the JSON api

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
    • Environment:
      Linux 2.6.18-371.el5 #1 SMP Thu Sep 5 21:21:44 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
    • Similar Issues:

      Description

      When accessing the http://.../api/json url we get the following exception in git plugin 2.0.2. The functionality seems to work in 2.0.1
      .
      java.io.IOException: Failed to write timestamp
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:120)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:232)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:169)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:137)
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:232)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:137)
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
      at org.kohsuke.stapler.export.Model.writeTo(Model.java:154)
      at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:267)
      at hudson.model.Api.doJson(Api.java:195)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      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:120)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:210)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
      ... 76 more
      Caused by: java.lang.NumberFormatException: For input string: "1970-01-16T21:55:36-0500 -0500"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Long.parseLong(Long.java:441)
      at java.lang.Long.parseLong(Long.java:483)
      at hudson.plugins.git.GitChangeSet.getTimestamp(GitChangeSet.java:194)
      ... 82 more

        Attachments

          Issue Links

            Activity

            uwodi uwodi created issue -
            uwodi uwodi made changes -
            Field Original Value New Value
            Description When accessing the http://.../api/json url we get the following exception in build 1.551


            java.io.IOException: Failed to write timestamp
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:120)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:232)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:169)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:137)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:232)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:137)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Model.writeTo(Model.java:154)
            at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:267)
            at hudson.model.Api.doJson(Api.java:195)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            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:120)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:210)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
            at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
            at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
            at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:722)
            Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            ... 76 more
            Caused by: java.lang.NumberFormatException: For input string: "1970-01-16T21:55:36-0500 -0500"
            at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
            at java.lang.Long.parseLong(Long.java:441)
            at java.lang.Long.parseLong(Long.java:483)
            at hudson.plugins.git.GitChangeSet.getTimestamp(GitChangeSet.java:194)
            ... 82 more
            When accessing the http://.../api/json url we get the following exception in build 1.551. The functionality works in 1.549.


            java.io.IOException: Failed to write timestamp
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:120)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:232)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:169)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:137)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:232)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:137)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Model.writeTo(Model.java:154)
            at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:267)
            at hudson.model.Api.doJson(Api.java:195)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            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:120)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:210)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
            at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
            at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
            at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:722)
            Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            ... 76 more
            Caused by: java.lang.NumberFormatException: For input string: "1970-01-16T21:55:36-0500 -0500"
            at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
            at java.lang.Long.parseLong(Long.java:441)
            at java.lang.Long.parseLong(Long.java:483)
            at hudson.plugins.git.GitChangeSet.getTimestamp(GitChangeSet.java:194)
            ... 82 more
            Hide
            jae2 James Edwards added a comment - - edited

            I think this might be related to the git plugin. You've probably got that with the upgrade. Can you try downgrading that from 2.0.2 to 2.0.1?

            Show
            jae2 James Edwards added a comment - - edited I think this might be related to the git plugin. You've probably got that with the upgrade. Can you try downgrading that from 2.0.2 to 2.0.1?
            uwodi uwodi made changes -
            Description When accessing the http://.../api/json url we get the following exception in build 1.551. The functionality works in 1.549.


            java.io.IOException: Failed to write timestamp
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:120)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:232)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:169)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:137)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:232)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:137)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Model.writeTo(Model.java:154)
            at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:267)
            at hudson.model.Api.doJson(Api.java:195)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            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:120)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:210)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
            at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
            at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
            at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:722)
            Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            ... 76 more
            Caused by: java.lang.NumberFormatException: For input string: "1970-01-16T21:55:36-0500 -0500"
            at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
            at java.lang.Long.parseLong(Long.java:441)
            at java.lang.Long.parseLong(Long.java:483)
            at hudson.plugins.git.GitChangeSet.getTimestamp(GitChangeSet.java:194)
            ... 82 more
            When accessing the http://.../api/json url we get the following exception in git plugin 2.0.2. The functionality seems to work in 2.0.1
            .
            java.io.IOException: Failed to write timestamp
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:120)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:232)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:169)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:137)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:232)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:137)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:187)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:182)
            at org.kohsuke.stapler.export.Model.writeTo(Model.java:154)
            at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:267)
            at hudson.model.Api.doJson(Api.java:195)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            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:120)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:210)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
            at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
            at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
            at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:722)
            Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:114)
            ... 76 more
            Caused by: java.lang.NumberFormatException: For input string: "1970-01-16T21:55:36-0500 -0500"
            at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
            at java.lang.Long.parseLong(Long.java:441)
            at java.lang.Long.parseLong(Long.java:483)
            at hudson.plugins.git.GitChangeSet.getTimestamp(GitChangeSet.java:194)
            ... 82 more
            Component/s git [ 15543 ]
            Component/s core [ 15593 ]
            uwodi uwodi made changes -
            Labels jenkins gitplugin
            uwodi uwodi made changes -
            Component/s git-client [ 17423 ]
            uwodi uwodi made changes -
            Component/s git-client [ 17423 ]
            Hide
            uwodi uwodi added a comment -

            Downgrading back to 2.0.1 solved my issue. I changed the component in the issue from jenkins core to git.

            Show
            uwodi uwodi added a comment - Downgrading back to 2.0.1 solved my issue. I changed the component in the issue from jenkins core to git.
            Hide
            gabe0x02 Gabriel Littman added a comment - - edited

            Just experienced this issue with git plugin 2.0.3 as well.

            Relsolved by downgrading 2.0.1

            Show
            gabe0x02 Gabriel Littman added a comment - - edited Just experienced this issue with git plugin 2.0.3 as well. Relsolved by downgrading 2.0.1
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-21948 [ JENKINS-21948 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-21954 [ JENKINS-21954 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nicolas De Loof
            Path:
            src/main/java/hudson/plugins/git/GitChangeSet.java
            http://jenkins-ci.org/commit/git-plugin/d1b7cc0d617bb10db2f4dfdaeb97f5de32d9480b
            Log:
            [FIXED JENKINS-21906] author|committerTime now uses iso date format

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: src/main/java/hudson/plugins/git/GitChangeSet.java http://jenkins-ci.org/commit/git-plugin/d1b7cc0d617bb10db2f4dfdaeb97f5de32d9480b Log: [FIXED JENKINS-21906] author|committerTime now uses iso date format
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nicolas De Loof
            Path:
            src/main/java/hudson/plugins/git/GitChangeSet.java
            http://jenkins-ci.org/commit/git-plugin/03d36a83cc76070259a0233183dedea70b9dc8a4
            Log:
            [FIXED JENKINS-21906] author|committerTime now uses iso date format

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: src/main/java/hudson/plugins/git/GitChangeSet.java http://jenkins-ci.org/commit/git-plugin/03d36a83cc76070259a0233183dedea70b9dc8a4 Log: [FIXED JENKINS-21906] author|committerTime now uses iso date format
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-22031 [ JENKINS-22031 ]
            Hide
            mooshben Moosh Ben added a comment -

            NumberFormatException is fixed in 2.0.4 but entry change date is not retrieved.

            Using the following groovy code:

            def thr = Thread.currentThread();
            def currentBuild = thr?.executable;
            def changes = currentBuild.getChangeSet();
            changes.getItems().each {
            	ChangeLogSet.Entry lastChange = (ChangeLogSet.Entry)it;
                lastChange.getTimestamp();
            }
            

            Produces a wrong timestamp (0).

            Reverting to git plugin 2.0.1 fixes the issue.

            Show
            mooshben Moosh Ben added a comment - NumberFormatException is fixed in 2.0.4 but entry change date is not retrieved. Using the following groovy code: def thr = Thread .currentThread(); def currentBuild = thr?.executable; def changes = currentBuild.getChangeSet(); changes.getItems().each { ChangeLogSet.Entry lastChange = (ChangeLogSet.Entry)it; lastChange.getTimestamp(); } Produces a wrong timestamp (0). Reverting to git plugin 2.0.1 fixes the issue.
            mooshben Moosh Ben made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            Assignee Nicolas De Loof [ ndeloof ]
            Hide
            xiaopan3322 Bao Xiaopan(Bob) added a comment -

            has this problem got fixed?!

            Show
            xiaopan3322 Bao Xiaopan(Bob) added a comment - has this problem got fixed?!
            Hide
            markewaite Mark Waite added a comment -

            The NumberFormatException is fixed.

            Since Moosh Ben reports that the data returned is not available and was available before, then I assume there is an unreported bug that the timestamp which was available previously is no longer available.

            Show
            markewaite Mark Waite added a comment - The NumberFormatException is fixed. Since Moosh Ben reports that the data returned is not available and was available before, then I assume there is an unreported bug that the timestamp which was available previously is no longer available.
            Hide
            markewaite Mark Waite added a comment -

            The NumberFormatException bug as reported here is fixed. Please provide a separate bug report for the data returned.

            Show
            markewaite Mark Waite added a comment - The NumberFormatException bug as reported here is fixed. Please provide a separate bug report for the data returned.
            markewaite Mark Waite made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            mooshben Moosh Ben made changes -
            Link This issue is related to JENKINS-23791 [ JENKINS-23791 ]
            Hide
            progdevel Kirill Geizerov added a comment - - edited

            Git plugin: 2.4.0
            Jnk: 1.609

            Python api fails on function get_last_build() with status 500
            Or when I try to send request

            http://localhost/job/job_name/67/api/python?depth=1
            

            I keep getting:

            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.doPython(Api.java:222)
            	at sun.reflect.GeneratedMethodAccessor217.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:622)
            	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 hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
            	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.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: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: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.runWorker(ThreadPoolExecutor.java:1146)
            	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            	at java.lang.Thread.run(Thread.java:701)
            Caused by: java.lang.reflect.InvocationTargetException
            	at sun.reflect.GeneratedMethodAccessor546.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:622)
            	at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
            	at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
            	... 98 more
            Caused by: java.lang.IllegalArgumentException: Illegal pattern character 'X'
            	at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:769)
            	at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:576)
            	at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:501)
            	at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:476)
            	at hudson.plugins.git.GitChangeSet.getTimestamp(GitChangeSet.java:214)
            	... 103 more
            
            Show
            progdevel Kirill Geizerov added a comment - - edited Git plugin: 2.4.0 Jnk: 1.609 Python api fails on function get_last_build() with status 500 Or when I try to send request http://localhost/job/job_name/67/api/python?depth=1 I keep getting: 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.doPython(Api.java:222) at sun.reflect.GeneratedMethodAccessor217.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) 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 hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58) 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.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: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: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.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang. Thread .run( Thread .java:701) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor546.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66) at org.kohsuke.stapler.export.Property.writeTo(Property.java:116) ... 98 more Caused by: java.lang.IllegalArgumentException: Illegal pattern character 'X' at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:769) at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:576) at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:501) at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:476) at hudson.plugins.git.GitChangeSet.getTimestamp(GitChangeSet.java:214) ... 103 more
            progdevel Kirill Geizerov made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            Hide
            markewaite Mark Waite added a comment -

            Kirill Geizerov your report is not a NumberFormatException, so it should not be reported under this NumberFormatException bug. You've found JENKINS-29857. You're running Java 6 and the code uses a Java 7 argument to SimpleDateFormat. Per the blog posting "Goodbye Java 6", the Jenkins project is moving towards dropping support for Java 6.

            You have several alternatives. You could:

            • Switch your Java virtual machine from Java 6 to Java 7 or Java 8
            • Wait for the next release of the git plugin which includes a work around for the problem
            • Test a [pre-release buildhttps://jenkins.ci.cloudbees.com/job/plugins/job/git-plugin/912/org.jenkins-ci.plugins$git/artifact/org.jenkins-ci.plugins/git/2.4.1-SNAPSHOT/git-2.4.1-SNAPSHOT.hpi|] of the git plugin which already contains the fix

            Since Oracle stopped shipping fixes for Java 6 a few years ago, and the Jenkins project already has plans to drop support for Java 6, you may want to upgrade to Java 8 whether or not you take any of the other alternatives.

            Show
            markewaite Mark Waite added a comment - Kirill Geizerov your report is not a NumberFormatException, so it should not be reported under this NumberFormatException bug. You've found JENKINS-29857 . You're running Java 6 and the code uses a Java 7 argument to SimpleDateFormat. Per the blog posting " Goodbye Java 6 ", the Jenkins project is moving towards dropping support for Java 6. You have several alternatives. You could: Switch your Java virtual machine from Java 6 to Java 7 or Java 8 Wait for the next release of the git plugin which includes a work around for the problem Test a [pre-release buildhttps://jenkins.ci.cloudbees.com/job/plugins/job/git-plugin/912/org.jenkins-ci.plugins$git/artifact/org.jenkins-ci.plugins/git/2.4.1-SNAPSHOT/git-2.4.1-SNAPSHOT.hpi|] of the git plugin which already contains the fix Since Oracle stopped shipping fixes for Java 6 a few years ago, and the Jenkins project already has plans to drop support for Java 6, you may want to upgrade to Java 8 whether or not you take any of the other alternatives.
            markewaite Mark Waite made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            progdevel Kirill Geizerov added a comment -

            Thanks a lot

            Show
            progdevel Kirill Geizerov added a comment - Thanks a lot
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 153907 ] JNJira + In-Review [ 194748 ]

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                uwodi uwodi
              • Votes:
                6 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: