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

Yet some unnecessary SEVERE warnings in logs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • plot-plugin
    • None
    • jenkins 1.611
      plot plugin 1.9

      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?

            nidaley nidaley
            bartoli Olivier BARTHELEMY
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: