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

TestNG publisher plugin throws NullPointerException when trying to publish testng results and makes build to fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: testng-plugin
    • Environment:
      Linux 2.6.18-274.3.1.el5 #1 SMP Tue Sep 6 20:13:52 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
    • Similar Issues:

      Description

      Looking for TestNG results report in workspace using pattern: */.xml
      ERROR: Publisher hudson.plugins.testng.Publisher aborted due to exception
      java.lang.NullPointerException
      at hudson.plugins.testng.parser.ResultsParser.finishSuite(ResultsParser.java:267)
      at hudson.plugins.testng.parser.ResultsParser.parse(ResultsParser.java:166)
      at hudson.plugins.testng.TestNGBuildAction.loadResults(TestNGBuildAction.java:105)
      at hudson.plugins.testng.Publisher.perform(Publisher.java:103)
      at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:669)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:647)
      at hudson.model.Build$RunnerImpl.post2(Build.java:162)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:616)
      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:230)

      I have other jobs that are configured in the same way (cloned the failing one) and these jobs are not failing (no exception is thrown).

        Attachments

          Activity

          dumghen Ghenadie Dumitru created issue -
          dumghen Ghenadie Dumitru made changes -
          Field Original Value New Value
          Fix Version/s current [ 10162 ]
          Affects Version/s current [ 10162 ]
          nalin_makar nalin_makar made changes -
          Assignee nalin_makar [ nalin_makar ] Ghenadie Dumitru [ dumghen ]
          dumghen Ghenadie Dumitru made changes -
          Attachment testng-results.xml [ 21094 ]
          nalin_makar nalin_makar made changes -
          Assignee Ghenadie Dumitru [ dumghen ] nalin_makar [ nalin_makar ]
          nalin_makar nalin_makar made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 141960 ] JNJira + In-Review [ 189903 ]
          markewaite Mark Waite made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            Assignee:
            nalin_makar nalin_makar
            Reporter:
            dumghen Ghenadie Dumitru
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: