java.lang.NumberFormatException: empty String

Jenkins JIRA | Olivier BARTHELEMY | 1 year ago
  1. 0

    I am getting lots of SEVERE warnings in logs, about NumberFormatException each time when regenerating plots. Stacktrace: java.lang.NumberFormatException: empty String at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994) at java.lang.Double.valueOf(Double.java:475) at hudson.plugins.plot.Plot.generatePlot(Plot.java:620) at hudson.plugins.plot.Plot.plotGraph(Plot.java:462) at hudson.plugins.plot.PlotReport.doGetPlot(PlotReport.java:74) at sun.reflect.GeneratedMethodAccessor1211.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) Looking at the CSV data files generated by the plugin in /var/lib/jenkins/jobs/my_job, I can see that for each build of the project, I have N lines for the values of my N curves of a plot, then one line "", "N", "buildnum", "timestamp", "" : Exemple: "846631","1","271","1439971819188","" " 240361"," 2","271","1439971819188","" " 143274"," 4","271","1439971819188","" "","3","271","1439971819188","" "1.0564e+06","1","272","1440001800673","" " 354972"," 2","272","1440001800673","" " 180714"," 4","272","1440001800673","" "","3","272","1440001800673","" "846899","1","272","1440001800673","" " 288147"," 2","272","1440001800673","" " 145421"," 4","272","1440001800673","" "","3","272","1440001800673","" generatePlot doesn't seem to do any detection of that type of lines, and i strongly think those lines are the ones generating my errors about the value field being empty. My plot data starting to become big, this filled my logs (and my server's partition..) in just an afternoon of minimal useage of the plot plugin. If the line has a use and can't be removed. Could it at least be detected properly to avoid the exceptions in the logs, in the same spirit as JENKINS-25849?

    Jenkins JIRA | 1 year ago | Olivier BARTHELEMY
    java.lang.NumberFormatException: empty String
  2. 0

    I am getting lots of SEVERE warnings in logs, about NumberFormatException each time when regenerating plots. Stacktrace: java.lang.NumberFormatException: empty String at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994) at java.lang.Double.valueOf(Double.java:475) at hudson.plugins.plot.Plot.generatePlot(Plot.java:620) at hudson.plugins.plot.Plot.plotGraph(Plot.java:462) at hudson.plugins.plot.PlotReport.doGetPlot(PlotReport.java:74) at sun.reflect.GeneratedMethodAccessor1211.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) Looking at the CSV data files generated by the plugin in /var/lib/jenkins/jobs/my_job, I can see that for each build of the project, I have N lines for the values of my N curves of a plot, then one line "", "N", "buildnum", "timestamp", "" : Exemple: "846631","1","271","1439971819188","" " 240361"," 2","271","1439971819188","" " 143274"," 4","271","1439971819188","" "","3","271","1439971819188","" "1.0564e+06","1","272","1440001800673","" " 354972"," 2","272","1440001800673","" " 180714"," 4","272","1440001800673","" "","3","272","1440001800673","" "846899","1","272","1440001800673","" " 288147"," 2","272","1440001800673","" " 145421"," 4","272","1440001800673","" "","3","272","1440001800673","" generatePlot doesn't seem to do any detection of that type of lines, and i strongly think those lines are the ones generating my errors about the value field being empty. My plot data starting to become big, this filled my logs (and my server's partition..) in just an afternoon of minimal useage of the plot plugin. If the line has a use and can't be removed. Could it at least be detected properly to avoid the exceptions in the logs, in the same spirit as JENKINS-25849?

    Jenkins JIRA | 1 year ago | Olivier BARTHELEMY
    java.lang.NumberFormatException: empty String
  3. 0

    Problema Con Diario Asientos

    openbravo | 8 years ago | jpaulo
    java.lang.NumberFormatException: empty String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    2 problems in SVGPath

    GitHub | 2 years ago | yskwong
    java.lang.NumberFormatException: empty String
  6. 0

    Error.java.lang.NumberFormatException

    Stack Overflow | 2 years ago | a22asin
    java.lang.NumberFormatException: empty String

  1. maxxi 4 times, last 2 weeks ago
  2. marcbouvierdav 1 times, last 1 month ago
  3. abrazeneb 2 times, last 3 months ago
  4. Mihail Melnic 1 times, last 7 months ago
  5. Macapon 1 times, last 8 months ago
2 more registered users
1 unregistered visitors
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

    empty String

    at sun.misc.FloatingDecimal.readJavaFormatString()
  2. Java RT
    Double.valueOf
    1. sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994)
    2. java.lang.Double.valueOf(Double.java:475)
    2 frames
  3. hudson.plugins.plot
    PlotReport.doGetPlot
    1. hudson.plugins.plot.Plot.generatePlot(Plot.java:620)
    2. hudson.plugins.plot.Plot.plotGraph(Plot.java:462)
    3. hudson.plugins.plot.PlotReport.doGetPlot(PlotReport.java:74)
    3 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor1211.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  5. Stapler
    Stapler.tryInvoke
    1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
    2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
    3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
    4. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
    5. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
    6. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
    6 frames