java.lang.NullPointerException

Jenkins JIRA | jalexand | 5 years ago
  1. 0

    Latest xUnit v1.30 fails with NullPointerException when parsing cppunit xml results - regressing back to v1.29 resolves the issue. {noformat} [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing CppUnit-1.12.1 (default) [xUnit] [INFO] - [CppUnit-1.12.1 (default)] - 13 test report file(s) were found with the pattern 'build/**/cppunit.xml' relative to '/sandbox/trunk' for the testing framework 'CppUnit-1.12.1 (default)'. ERROR: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception java.lang.NullPointerException at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.processResultThreshold(XUnitPublisher.java:354) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.getResultWithThreshold(XUnitPublisher.java:345) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.setBuildStatus(XUnitPublisher.java:330) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:133) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) 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) {noformat} Here is the xunit config from config.xml: {code:xml} <com.thalesgroup.hudson.plugins.xunit.XUnitPublisher> <types> <com.thalesgroup.dtkit.metrics.hudson.model.CppUnitJunitHudsonTestType> <pattern>build/**/cppunit.xml</pattern> <faildedIfNotNew>false</faildedIfNotNew> <deleteOutputFiles>true</deleteOutputFiles> <stopProcessingIfError>true</stopProcessingIfError> </com.thalesgroup.dtkit.metrics.hudson.model.CppUnitJunitHudsonTestType> </types> </com.thalesgroup.hudson.plugins.xunit.XUnitPublisher> {code}

    Jenkins JIRA | 5 years ago | jalexand
    java.lang.NullPointerException
  2. 0

    Latest xUnit v1.30 fails with NullPointerException when parsing cppunit xml results - regressing back to v1.29 resolves the issue. {noformat} [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing CppUnit-1.12.1 (default) [xUnit] [INFO] - [CppUnit-1.12.1 (default)] - 13 test report file(s) were found with the pattern 'build/**/cppunit.xml' relative to '/sandbox/trunk' for the testing framework 'CppUnit-1.12.1 (default)'. ERROR: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception java.lang.NullPointerException at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.processResultThreshold(XUnitPublisher.java:354) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.getResultWithThreshold(XUnitPublisher.java:345) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.setBuildStatus(XUnitPublisher.java:330) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:133) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) 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) {noformat} Here is the xunit config from config.xml: {code:xml} <com.thalesgroup.hudson.plugins.xunit.XUnitPublisher> <types> <com.thalesgroup.dtkit.metrics.hudson.model.CppUnitJunitHudsonTestType> <pattern>build/**/cppunit.xml</pattern> <faildedIfNotNew>false</faildedIfNotNew> <deleteOutputFiles>true</deleteOutputFiles> <stopProcessingIfError>true</stopProcessingIfError> </com.thalesgroup.dtkit.metrics.hudson.model.CppUnitJunitHudsonTestType> </types> </com.thalesgroup.hudson.plugins.xunit.XUnitPublisher> {code}

    Jenkins JIRA | 5 years ago | jalexand
    java.lang.NullPointerException
  3. 0

    Works perfectly with xUnit 1.14, but after upgrading to 1.16: [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing CppUnit-1.x [xUnit] [ERROR] - The plugin hasn't been performed correctly: Unable to serialize hudson.FilePath$FileCallableWrapper@b749a3 And from the Main Jenkins log: WARNING: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception java.lang.NullPointerException at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:230) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:624) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581) at hudson.model.Build$RunnerImpl.post2(Build.java:160) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:550) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Feb 27, 2011 2:13:18 AM hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps WARNING: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:237) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:281) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:624) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581) at hudson.model.Build$RunnerImpl.post2(Build.java:160) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:550) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) We are running Jenkins master/slave build environment structure, e.g. all builds are running on Windows/Linux based slaves. Now all jobs, which are using xUnit failed.

    Jenkins JIRA | 6 years ago | tapiomtr
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Works perfectly with xUnit 1.14, but after upgrading to 1.16: [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing CppUnit-1.x [xUnit] [ERROR] - The plugin hasn't been performed correctly: Unable to serialize hudson.FilePath$FileCallableWrapper@b749a3 And from the Main Jenkins log: WARNING: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception java.lang.NullPointerException at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:230) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:624) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581) at hudson.model.Build$RunnerImpl.post2(Build.java:160) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:550) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Feb 27, 2011 2:13:18 AM hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps WARNING: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:237) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:281) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:624) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581) at hudson.model.Build$RunnerImpl.post2(Build.java:160) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:550) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) We are running Jenkins master/slave build environment structure, e.g. all builds are running on Windows/Linux based slaves. Now all jobs, which are using xUnit failed.

    Jenkins JIRA | 6 years ago | tapiomtr
    java.lang.NullPointerException
  6. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.processResultThreshold()
    2. com.thalesgroup.hudson
      XUnitPublisher.perform
      1. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.processResultThreshold(XUnitPublisher.java:354)
      2. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.getResultWithThreshold(XUnitPublisher.java:345)
      3. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.setBuildStatus(XUnitPublisher.java:330)
      4. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:133)
      5. com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:101)
      5 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:162)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614)
      7. hudson.model.Run.run(Run.java:1429)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:230)
      10 frames