java.io.IOException: Failed to write number

Jenkins JIRA | bmuskalla | 6 years ago
  1. 0

    Simple job with a Run Parameter, access the job via http://localhost:8080/job/test-parameterized/lastBuild/api/xml [Winstone 2010/08/31 01:03:22] - Untrapped Error in Servlet java.io.IOException: Failed to write number at org.kohsuke.stapler.export.Property.writeTo(Property.java:89) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156) at org.kohsuke.stapler.export.Property.writeValue(Property.java:188) at org.kohsuke.stapler.export.Property.writeValue(Property.java:151) at org.kohsuke.stapler.export.Property.writeValue(Property.java:106) at org.kohsuke.stapler.export.Property.writeTo(Property.java:83) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156) at org.kohsuke.stapler.export.Property.writeValue(Property.java:188) at org.kohsuke.stapler.export.Property.writeValue(Property.java:151) at org.kohsuke.stapler.export.Property.writeValue(Property.java:106) at org.kohsuke.stapler.export.Property.writeTo(Property.java:83) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153) at org.kohsuke.stapler.export.Model.writeTo(Model.java:129) at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:176) at hudson.model.Api.doXml(Api.java:88) at sun.reflect.GeneratedMethodAccessor9.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:259) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534) at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:181) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534) at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:181) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534) at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:219) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:450) at org.kohsuke.stapler.Stapler.service(Stapler.java:132) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) 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 winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:619) 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:43) at org.kohsuke.stapler.export.Property.writeTo(Property.java:83) ... 58 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at hudson.model.RunParameterValue.getNumber(RunParameterValue.java:63) ... 64 more

    Jenkins JIRA | 6 years ago | bmuskalla
    java.io.IOException: Failed to write number
  2. 0

    Simple job with a Run Parameter, access the job via http://localhost:8080/job/test-parameterized/lastBuild/api/xml [Winstone 2010/08/31 01:03:22] - Untrapped Error in Servlet java.io.IOException: Failed to write number at org.kohsuke.stapler.export.Property.writeTo(Property.java:89) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156) at org.kohsuke.stapler.export.Property.writeValue(Property.java:188) at org.kohsuke.stapler.export.Property.writeValue(Property.java:151) at org.kohsuke.stapler.export.Property.writeValue(Property.java:106) at org.kohsuke.stapler.export.Property.writeTo(Property.java:83) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156) at org.kohsuke.stapler.export.Property.writeValue(Property.java:188) at org.kohsuke.stapler.export.Property.writeValue(Property.java:151) at org.kohsuke.stapler.export.Property.writeValue(Property.java:106) at org.kohsuke.stapler.export.Property.writeTo(Property.java:83) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153) at org.kohsuke.stapler.export.Model.writeTo(Model.java:129) at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:176) at hudson.model.Api.doXml(Api.java:88) at sun.reflect.GeneratedMethodAccessor9.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:259) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534) at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:181) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534) at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:181) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534) at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:219) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:450) at org.kohsuke.stapler.Stapler.service(Stapler.java:132) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) 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 winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:619) 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:43) at org.kohsuke.stapler.export.Property.writeTo(Property.java:83) ... 58 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at hudson.model.RunParameterValue.getNumber(RunParameterValue.java:63) ... 64 more

    Jenkins JIRA | 6 years ago | bmuskalla
    java.io.IOException: Failed to write number
  3. 0

    ArrayIndexOutOfBounds When Splitting String

    Stack Overflow | 4 years ago | n0shadow
    java.lang.ArrayIndexOutOfBoundsException: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ArrayIndexOutOfBoundsException occurring when program running

    Stack Overflow | 4 years ago | dharma
    java.lang.ArrayIndexOutOfBoundsException: 1
  6. 0

    Parsing Data from CSV to Array in Java

    Stack Overflow | 5 years ago
    java.lang.ArrayIndexOutOfBoundsException: 1

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      1

      at hudson.model.RunParameterValue.getNumber()
    2. Hudson
      RunParameterValue.getNumber
      1. hudson.model.RunParameterValue.getNumber(RunParameterValue.java:63)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. Stapler
      ResponseImpl.serveExposedBean
      1. org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:43)
      2. org.kohsuke.stapler.export.Property.writeTo(Property.java:83)
      3. org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156)
      4. org.kohsuke.stapler.export.Property.writeValue(Property.java:188)
      5. org.kohsuke.stapler.export.Property.writeValue(Property.java:151)
      6. org.kohsuke.stapler.export.Property.writeValue(Property.java:106)
      7. org.kohsuke.stapler.export.Property.writeTo(Property.java:83)
      8. org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156)
      9. org.kohsuke.stapler.export.Property.writeValue(Property.java:188)
      10. org.kohsuke.stapler.export.Property.writeValue(Property.java:151)
      11. org.kohsuke.stapler.export.Property.writeValue(Property.java:106)
      12. org.kohsuke.stapler.export.Property.writeTo(Property.java:83)
      13. org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156)
      14. org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153)
      15. org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153)
      16. org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153)
      17. org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153)
      18. org.kohsuke.stapler.export.Model.writeTo(Model.java:129)
      19. org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:176)
      19 frames
    5. Hudson
      Api.doXml
      1. hudson.model.Api.doXml(Api.java:88)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    7. Stapler
      Stapler.service
      1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259)
      2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126)
      3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65)
      4. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79)
      5. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      6. org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      7. org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:181)
      8. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      9. org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      10. org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:181)
      11. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      12. org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      13. org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:219)
      14. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      15. org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      16. org.kohsuke.stapler.Stapler.invoke(Stapler.java:450)
      17. org.kohsuke.stapler.Stapler.service(Stapler.java:132)
      17 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      1 frame
    9. winstone
      RequestDispatcher.doFilter
      1. winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      2. winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      3. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      3 frames
    10. Hudson
      PluginServletFilter.doFilter
      1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      2 frames
    11. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      2 frames
    12. Hudson
      CrumbFilter.doFilter
      1. hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      1 frame
    13. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      2 frames
    14. Hudson
      HudsonFilter.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      2. hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      3. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      3 frames
    15. winstone
      RequestHandlerThread.run
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      3. winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      4. winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      5. winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      5 frames
    16. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame