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

NullPointerException in Publisher

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Console Output on Builds:

      >>>
      Recording plot data
      ERROR: Publisher hudson.plugins.plot.PlotPublisher aborted due to exception
      java.lang.NullPointerException
      at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
      at java.util.regex.Matcher.reset(Matcher.java:308)
      at java.util.regex.Matcher.<init>(Matcher.java:228)
      at java.util.regex.Pattern.matcher(Pattern.java:1088)
      at hudson.plugins.plot.XMLSeries.getUrl(XMLSeries.java:294)
      at hudson.plugins.plot.XMLSeries.addValueToList(XMLSeries.java:412)
      at hudson.plugins.plot.XMLSeries.loadSeries(XMLSeries.java:226)
      at hudson.plugins.plot.Plot.addBuild(Plot.java:463)
      at hudson.plugins.plot.PlotPublisher.perform(PlotPublisher.java:157)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:756)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:705)
      at hudson.model.Run.execute(Run.java:1695)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:231)
      <<<

      Jenkins ver. 1.548

      This issue exists since updating to Plot 1.6.

      If you need more info, please ask me.

        Attachments

          Activity

          Hide
          niko_k Nikolaus Krismer added a comment -

          Same problem here.
          I am using jenkins v. 1.546 and Plot 1.6 with a xml file (type: nodeset).

          Show
          niko_k Nikolaus Krismer added a comment - Same problem here. I am using jenkins v. 1.546 and Plot 1.6 with a xml file (type: nodeset).
          Hide
          ludyte Kevin German added a comment -

          I see the problem on Jenkins 1.532.1 with Plot 1.6, but
          I am unable to reproduce on Jenkins 1.532.1 with Plot 1.5 with the same data.

          Show
          ludyte Kevin German added a comment - I see the problem on Jenkins 1.532.1 with Plot 1.6, but I am unable to reproduce on Jenkins 1.532.1 with Plot 1.5 with the same data.
          Hide
          ludyte Kevin German added a comment -
          Show
          ludyte Kevin German added a comment - submitted fix -> https://github.com/jenkinsci/plot-plugin/pull/9
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kevin German
          Path:
          src/test/java/hudson/plugins/plot/XMLSeriesTest.java
          src/test/resources/test3.xml
          http://jenkins-ci.org/commit/plot-plugin/60b081b05e0f75548afce58063cdb7da298198bd
          Log:
          test to replicate JENKINS-21493

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kevin German Path: src/test/java/hudson/plugins/plot/XMLSeriesTest.java src/test/resources/test3.xml http://jenkins-ci.org/commit/plot-plugin/60b081b05e0f75548afce58063cdb7da298198bd Log: test to replicate JENKINS-21493
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kevin German
          Path:
          src/main/java/hudson/plugins/plot/XMLSeries.java
          src/test/java/hudson/plugins/plot/XMLSeriesTest.java
          http://jenkins-ci.org/commit/plot-plugin/96f1acc161a6c536e0b4b4f66e646fd724edf308
          Log:
          reimplement loadSeries to support all cases described in tests - fix JENKINS-21493

          rename test methods to descibe use case being asserted
          cleanup use of Double.parseDouble and replace with Scanner becuase it
          extract block to handle case for coalescing nodes in a Nodeset
          supports LOCALES, does not throw, handles commas appropriately for locale
          and doesn't throw.
          Tests updated where comparisons were failing for number format.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kevin German Path: src/main/java/hudson/plugins/plot/XMLSeries.java src/test/java/hudson/plugins/plot/XMLSeriesTest.java http://jenkins-ci.org/commit/plot-plugin/96f1acc161a6c536e0b4b4f66e646fd724edf308 Log: reimplement loadSeries to support all cases described in tests - fix JENKINS-21493 rename test methods to descibe use case being asserted cleanup use of Double.parseDouble and replace with Scanner becuase it extract block to handle case for coalescing nodes in a Nodeset supports LOCALES, does not throw, handles commas appropriately for locale and doesn't throw. Tests updated where comparisons were failing for number format.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ericbn
          Path:
          src/main/java/hudson/plugins/plot/XMLSeries.java
          src/test/java/hudson/plugins/plot/XMLSeriesTest.java
          src/test/resources/test3.xml
          http://jenkins-ci.org/commit/plot-plugin/7274fce3884ed0bd750d4b962f6348adc7de2ba3
          Log:
          Merge pull request #9 from ludyte/master

          [FIXED JENKINS-21493]

          Compare: https://github.com/jenkinsci/plot-plugin/compare/07babd8fdf32...7274fce3884e

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ericbn Path: src/main/java/hudson/plugins/plot/XMLSeries.java src/test/java/hudson/plugins/plot/XMLSeriesTest.java src/test/resources/test3.xml http://jenkins-ci.org/commit/plot-plugin/7274fce3884ed0bd750d4b962f6348adc7de2ba3 Log: Merge pull request #9 from ludyte/master [FIXED JENKINS-21493] Compare: https://github.com/jenkinsci/plot-plugin/compare/07babd8fdf32...7274fce3884e
          Hide
          opi Alexander Opitz added a comment -

          Works after update.

          Show
          opi Alexander Opitz added a comment - Works after update.

            People

            • Assignee:
              nidaley nidaley
              Reporter:
              opi Alexander Opitz
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: