java.lang.NullPointerException

Jenkins JIRA | xlv_at_gwc | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    After updating from 1.324 to 1.326, I get an NPE at the end of a build. I also changed the directory structure and removed some directories in the hierarchy so the location of the xml files is not the same. The trace is: [...] BUILD SUCCESSFUL Total time: 1 minute 42 seconds Terminating xvnc. [workspace] $ vncserver -kill :12 Killing Xvnc process ID 4037 Recording test results FATAL: null java.lang.NullPointerException at hudson.tasks.junit.SuiteResult.getCase(SuiteResult.java:228) at hudson.tasks.junit.CaseResult.getPreviousResult(CaseResult.java:318) at hudson.tasks.junit.CaseResult.freeze(CaseResult.java:412) at hudson.tasks.junit.SuiteResult.freeze(SuiteResult.java:248) at hudson.tasks.junit.TestResult.freeze(TestResult.java:313) at hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:78) at hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:71) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:120) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1143) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123)

    Jenkins JIRA | 7 years ago | xlv_at_gwc
    java.lang.NullPointerException
  2. 0

    After updating from 1.324 to 1.326, I get an NPE at the end of a build. I also changed the directory structure and removed some directories in the hierarchy so the location of the xml files is not the same. The trace is: [...] BUILD SUCCESSFUL Total time: 1 minute 42 seconds Terminating xvnc. [workspace] $ vncserver -kill :12 Killing Xvnc process ID 4037 Recording test results FATAL: null java.lang.NullPointerException at hudson.tasks.junit.SuiteResult.getCase(SuiteResult.java:228) at hudson.tasks.junit.CaseResult.getPreviousResult(CaseResult.java:318) at hudson.tasks.junit.CaseResult.freeze(CaseResult.java:412) at hudson.tasks.junit.SuiteResult.freeze(SuiteResult.java:248) at hudson.tasks.junit.TestResult.freeze(TestResult.java:313) at hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:78) at hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:71) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:120) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1143) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123)

    Jenkins JIRA | 7 years ago | xlv_at_gwc
    java.lang.NullPointerException
  3. 0

    Using a component that generates JUnit compatible reports files (xml). When clicking at the webgui and start a build the report will be read and displayed as a testresult. However when the build is a result of a scm trigger the xml file don't get loaded and instead this happens --Recording test results FATAL: null java.lang.NullPointerException at hudson.tasks.junit.SuiteResult.getCase(SuiteResult.java:228) at hudson.tasks.junit.CaseResult.getPreviousResult(CaseResult.java:318) at hudson.tasks.junit.CaseResult.freeze(CaseResult.java:411) at hudson.tasks.junit.SuiteResult.freeze(SuiteResult.java:248) at hudson.tasks.junit.TestResult.freeze(TestResult.java:310) at hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:78) at hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:71) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:119) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1140) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:122) --- sample of the result file --- <?xml version="1.0" encoding="UTF-8" ?> <testsuite errors="0" failures="1" name="blocktea" tests="3" time="0" timestamp="0"> <testcase classname="Cblocktea" name="T1" time="0" /> <testcase classname="Cblocktea" name="T2" time="0" /> <testcase classname="Cblocktea" name="T2" time="0"> <failure message="nomesg" time="0" type="junit.framework.AssertionFailedError">nomessage</failure> </testcase> </testsuite> ---

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

    Automated exception search integrated into your IDE

  5. 0

    Using a component that generates JUnit compatible reports files (xml). When clicking at the webgui and start a build the report will be read and displayed as a testresult. However when the build is a result of a scm trigger the xml file don't get loaded and instead this happens --Recording test results FATAL: null java.lang.NullPointerException at hudson.tasks.junit.SuiteResult.getCase(SuiteResult.java:228) at hudson.tasks.junit.CaseResult.getPreviousResult(CaseResult.java:318) at hudson.tasks.junit.CaseResult.freeze(CaseResult.java:411) at hudson.tasks.junit.SuiteResult.freeze(SuiteResult.java:248) at hudson.tasks.junit.TestResult.freeze(TestResult.java:310) at hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:78) at hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:71) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:119) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1140) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:122) --- sample of the result file --- <?xml version="1.0" encoding="UTF-8" ?> <testsuite errors="0" failures="1" name="blocktea" tests="3" time="0" timestamp="0"> <testcase classname="Cblocktea" name="T1" time="0" /> <testcase classname="Cblocktea" name="T2" time="0" /> <testcase classname="Cblocktea" name="T2" time="0"> <failure message="nomesg" time="0" type="junit.framework.AssertionFailedError">nomessage</failure> </testcase> </testsuite> ---

    Jenkins JIRA | 8 years ago | jonke0
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at hudson.tasks.junit.SuiteResult.getCase()
    2. Hudson
      AbstractBuild$AbstractRunner.perform
      1. hudson.tasks.junit.SuiteResult.getCase(SuiteResult.java:228)
      2. hudson.tasks.junit.CaseResult.getPreviousResult(CaseResult.java:318)
      3. hudson.tasks.junit.CaseResult.freeze(CaseResult.java:412)
      4. hudson.tasks.junit.SuiteResult.freeze(SuiteResult.java:248)
      5. hudson.tasks.junit.TestResult.freeze(TestResult.java:313)
      6. hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:78)
      7. hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:71)
      8. hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:120)
      9. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      10. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480)
      10 frames