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

NPE after upgrade to 2.2.1 when run publisher

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Environment:
      Jenkins: 2.121.2
      xUnit: 2.2.1
    • Similar Issues:

      Description

      JUnit files created with phpunit started to cause a NULL-pointer exception after an upgrade from xUnit 2.1.0 to 2.2.1:

      java.lang.NullPointerException
      	at org.jenkinsci.plugins.xunit.XUnitProcessor.recordTestResult(XUnitProcessor.java:354)
      	at org.jenkinsci.plugins.xunit.XUnitProcessor.process(XUnitProcessor.java:157)
      	at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:161)
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      	at hudson.model.Build$BuildExecution.post2(Build.java:186)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      	at hudson.model.Run.execute(Run.java:1823)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      

      A temporary workaround is to downgrade to xUnit 2.1.0.

        Attachments

          Activity

          notizblock Florian P created issue -
          notizblock Florian P made changes -
          Field Original Value New Value
          Attachment config-xunit-2.1.0.xml [ 43748 ]
          notizblock Florian P made changes -
          Attachment config-xunit-2.2.1.xml [ 43749 ]
          nfalco Nikolas Falco made changes -
          Summary NULL pointer exception when parsing JUnit files created with phpunit NPE after upgrade to 2.2.1 when run publisher
          nfalco Nikolas Falco made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          nfalco Nikolas Falco made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              nfalco Nikolas Falco
              Reporter:
              notizblock Florian P
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: