java.lang.NullPointerException

Jenkins JIRA | amiqr | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The FitNesse Hudson Plugin version 1.4 allows Hudson to store the results in a results.xml file. After running all the tests, Hudson can also publish these Fitnesse results. This is the problem that we have when the Hudson job is done: Xml results saved as windows-1252 to D:\hudson\workspace\FitNesse 8332 BE Full\results\test.xml Reading results as windows-1252 from D:\hudson\workspace\FitNesse 8332 BE Full\results\test.xml Parsing results... Got results: null java.lang.NullPointerException at hudson.plugins.fitnesse.FitnesseResults.getFailCount(FitnesseResults.java:98) at hudson.tasks.test.TestResult.getBuildResult(TestResult.java:93) at hudson.plugins.fitnesse.FitnesseResultsRecorder.perform(FitnesseResultsRecorder.java:64) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:602) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:559) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:529) at hudson.model.Run.run(Run.java:1278) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:124) Email was triggered for: Failure Sending email for trigger: Failure We did some investigation: The ending tag </testResults> is missing at the end of the results.xml file and the FitNesse test results are written 2 times to the results.xml file. Inside the results.xml file, we also see that the xml-header <?xml version="1.0"?> is written twice. This causes the XML file to be invalid xml.

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

    The FitNesse Hudson Plugin version 1.4 allows Hudson to store the results in a results.xml file. After running all the tests, Hudson can also publish these Fitnesse results. This is the problem that we have when the Hudson job is done: Xml results saved as windows-1252 to D:\hudson\workspace\FitNesse 8332 BE Full\results\test.xml Reading results as windows-1252 from D:\hudson\workspace\FitNesse 8332 BE Full\results\test.xml Parsing results... Got results: null java.lang.NullPointerException at hudson.plugins.fitnesse.FitnesseResults.getFailCount(FitnesseResults.java:98) at hudson.tasks.test.TestResult.getBuildResult(TestResult.java:93) at hudson.plugins.fitnesse.FitnesseResultsRecorder.perform(FitnesseResultsRecorder.java:64) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:602) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:559) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:529) at hudson.model.Run.run(Run.java:1278) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:124) Email was triggered for: Failure Sending email for trigger: Failure We did some investigation: The ending tag </testResults> is missing at the end of the results.xml file and the FitNesse test results are written 2 times to the results.xml file. Inside the results.xml file, we also see that the xml-header <?xml version="1.0"?> is written twice. This causes the XML file to be invalid xml.

    Jenkins JIRA | 7 years ago | amiqr
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 hudson.plugins.fitnesse.FitnesseResults.getFailCount()
    2. hudson.plugins.fitnesse
      FitnesseResults.getFailCount
      1. hudson.plugins.fitnesse.FitnesseResults.getFailCount(FitnesseResults.java:98)
      1 frame
    3. Hudson
      TestResult.getBuildResult
      1. hudson.tasks.test.TestResult.getBuildResult(TestResult.java:93)
      1 frame
    4. hudson.plugins.fitnesse
      FitnesseResultsRecorder.perform
      1. hudson.plugins.fitnesse.FitnesseResultsRecorder.perform(FitnesseResultsRecorder.java:64)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:602)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:559)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:158)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:529)
      7. hudson.model.Run.run(Run.java:1278)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:124)
      10 frames