java.lang.NumberFormatException: For input string: ""

Jenkins JIRA | rutsky | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    As I understand plugin shows configuration in this way: 1. For projects with "Discard Old Builds" checkbox DISABLED plugin shows: (Disabled) :: job1 2. For projects with "Discard Old Builds" checkbox ENABLED, but number of builds not specified plugin shows: :: job2 3. For projects with "Discard Old Builds" checkbox ENABLED and number of builds specified plugin shows: 10 :: job3 If I'm trying to save this configuration: --------------------- :: job2 10 :: job3 (Disabled) :: job1 --------------------- I'm getting: -------------------------------------------------------------- Status Code: 500 Exception: Stacktrace: java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at configurationslicing.logrotator.LogRotationSlicer$LogRotationBuildsSliceSpec.setValues(LogRotationSlicer.java:145) at configurationslicing.logrotator.LogRotationSlicer$LogRotationBuildsSliceSpec.setValues(LogRotationSlicer.java:99) at configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:33) at configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:8) at configurationslicing.ConfigurationSlicing$SliceExecutor.transform(ConfigurationSlicing.java:84) at configurationslicing.ConfigurationSlicing$SliceExecutor.doSliceconfigSubmit(ConfigurationSlicing.java:109) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:185) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:318) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:318) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:408) at org.kohsuke.stapler.Stapler.service(Stapler.java:117) 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(Unknown Source) Generated by Winstone Servlet Engine v0.9.10 at Tue Jan 12 15:27:07 MSK 2010 -------------------------------------------------------------- This is probably due to " :: job2" field. Also, if I'm trying to save this configuration: --------------------- (Disabled) :: job2 10 :: job3 (Disabled) :: job1 --------------------- I'm getting result, that can be described in configuration as: --------------------- :: job2, job1 10 :: job3 --------------------- But expected: --------------------- 10 :: job3 (Disabled) :: job2, job1 --------------------- Thanks!

    Jenkins JIRA | 7 years ago | rutsky
    java.lang.NumberFormatException: For input string: ""
  2. 0

    As I understand plugin shows configuration in this way: 1. For projects with "Discard Old Builds" checkbox DISABLED plugin shows: (Disabled) :: job1 2. For projects with "Discard Old Builds" checkbox ENABLED, but number of builds not specified plugin shows: :: job2 3. For projects with "Discard Old Builds" checkbox ENABLED and number of builds specified plugin shows: 10 :: job3 If I'm trying to save this configuration: --------------------- :: job2 10 :: job3 (Disabled) :: job1 --------------------- I'm getting: -------------------------------------------------------------- Status Code: 500 Exception: Stacktrace: java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at configurationslicing.logrotator.LogRotationSlicer$LogRotationBuildsSliceSpec.setValues(LogRotationSlicer.java:145) at configurationslicing.logrotator.LogRotationSlicer$LogRotationBuildsSliceSpec.setValues(LogRotationSlicer.java:99) at configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:33) at configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:8) at configurationslicing.ConfigurationSlicing$SliceExecutor.transform(ConfigurationSlicing.java:84) at configurationslicing.ConfigurationSlicing$SliceExecutor.doSliceconfigSubmit(ConfigurationSlicing.java:109) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:185) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:318) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:318) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:408) at org.kohsuke.stapler.Stapler.service(Stapler.java:117) 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(Unknown Source) Generated by Winstone Servlet Engine v0.9.10 at Tue Jan 12 15:27:07 MSK 2010 -------------------------------------------------------------- This is probably due to " :: job2" field. Also, if I'm trying to save this configuration: --------------------- (Disabled) :: job2 10 :: job3 (Disabled) :: job1 --------------------- I'm getting result, that can be described in configuration as: --------------------- :: job2, job1 10 :: job3 --------------------- But expected: --------------------- 10 :: job3 (Disabled) :: job2, job1 --------------------- Thanks!

    Jenkins JIRA | 7 years ago | rutsky
    java.lang.NumberFormatException: For input string: ""
  3. 0

    java : convert string value to int

    Stack Overflow | 6 years ago | lamisse
    java.lang.NumberFormatException: For input string: ""
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GWT call Axis2 on Tomcat doesn't work

    Stack Overflow | 4 years ago | nap.gab
    java.lang.NumberFormatException: For input string: ""
  6. 0

    Aptana 3 - wont load

    Stack Overflow | 4 years ago | Phil Jackson
    java.lang.NumberFormatException: For input string: ""
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.NumberFormatException

    For input string: ""

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.parseInt
    1. java.lang.NumberFormatException.forInputString(Unknown Source)
    2. java.lang.Integer.parseInt(Unknown Source)
    3. java.lang.Integer.parseInt(Unknown Source)
    3 frames
  3. configurationslicing.logrotator
    LogRotationSlicer$LogRotationBuildsSliceSpec.setValues
    1. configurationslicing.logrotator.LogRotationSlicer$LogRotationBuildsSliceSpec.setValues(LogRotationSlicer.java:145)
    2. configurationslicing.logrotator.LogRotationSlicer$LogRotationBuildsSliceSpec.setValues(LogRotationSlicer.java:99)
    2 frames
  4. configurationslicing
    ConfigurationSlicing$SliceExecutor.doSliceconfigSubmit
    1. configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:33)
    2. configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:8)
    3. configurationslicing.ConfigurationSlicing$SliceExecutor.transform(ConfigurationSlicing.java:84)
    4. configurationslicing.ConfigurationSlicing$SliceExecutor.doSliceconfigSubmit(ConfigurationSlicing.java:109)
    4 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  6. Stapler
    Stapler.service
    1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:185)
    2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101)
    3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54)
    4. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74)
    5. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
    6. org.kohsuke.stapler.Stapler.invoke(Stapler.java:492)
    7. org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:318)
    8. org.kohsuke.stapler.Stapler.invoke(Stapler.java:492)
    9. org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:318)
    10. org.kohsuke.stapler.Stapler.invoke(Stapler.java:492)
    11. org.kohsuke.stapler.Stapler.invoke(Stapler.java:408)
    12. org.kohsuke.stapler.Stapler.service(Stapler.java:117)
    12 frames
  7. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
    1 frame
  8. 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
  9. Hudson
    PluginServletFilter.doFilter
    1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
    2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
    2 frames
  10. winstone
    RequestDispatcher.doFilter
    1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
    2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    2 frames
  11. Hudson
    CrumbFilter.doFilter
    1. hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
    1 frame
  12. winstone
    RequestDispatcher.doFilter
    1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
    2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    2 frames
  13. 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
  14. 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
  15. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame