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

NPE from JUnitParser.parse

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: junit-plugin
    • Labels:
      None
    • Environment:
      1.447
    • Similar Issues:

      Description

      Found in a user's log:

      [date] hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps
      WARNING: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception
      java.lang.NullPointerException
      	at hudson.tasks.junit.JUnitParser.parse(JUnitParser.java:83)
      	at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:122)
      	at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:134)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:650)
      	at hudson.model.Build$RunnerImpl.post2(Build.java:162)
      	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:619)
      	at hudson.model.Run.run(Run.java:1429)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:238)
      

      No clue what the underlying cause is, but this can be handled better than with an NPE.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/main/java/hudson/model/AbstractBuild.java
          core/src/main/java/hudson/tasks/junit/JUnitParser.java
          core/src/main/resources/hudson/tasks/junit/Messages.properties
          http://jenkins-ci.org/commit/jenkins/931fa176e811878e0bd06e6007036f5e8651c917
          Log:
          [FIXED JENKINS-14507] NPE from JUnitParser.parse.

          Compare: https://github.com/jenkinsci/jenkins/compare/4f0bd429ed54...931fa176e811

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/model/AbstractBuild.java core/src/main/java/hudson/tasks/junit/JUnitParser.java core/src/main/resources/hudson/tasks/junit/Messages.properties http://jenkins-ci.org/commit/jenkins/931fa176e811878e0bd06e6007036f5e8651c917 Log: [FIXED JENKINS-14507] NPE from JUnitParser.parse. Compare: https://github.com/jenkinsci/jenkins/compare/4f0bd429ed54...931fa176e811
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #1812
          [FIXED JENKINS-14507] NPE from JUnitParser.parse. (Revision 931fa176e811878e0bd06e6007036f5e8651c917)

          Result = UNSTABLE
          Jesse Glick : 931fa176e811878e0bd06e6007036f5e8651c917
          Files :

          • changelog.html
          • core/src/main/resources/hudson/tasks/junit/Messages.properties
          • core/src/main/java/hudson/model/AbstractBuild.java
          • core/src/main/java/hudson/tasks/junit/JUnitParser.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1812 [FIXED JENKINS-14507] NPE from JUnitParser.parse. (Revision 931fa176e811878e0bd06e6007036f5e8651c917) Result = UNSTABLE Jesse Glick : 931fa176e811878e0bd06e6007036f5e8651c917 Files : changelog.html core/src/main/resources/hudson/tasks/junit/Messages.properties core/src/main/java/hudson/model/AbstractBuild.java core/src/main/java/hudson/tasks/junit/JUnitParser.java

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: