java.lang.NullPointerException

Jenkins JIRA | Olaf Lenz | 5 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

    Warnings Plugin - Jenkins - Jenkins Wiki

    jenkins-ci.org | 1 month ago
    java.lang.NullPointerException
  2. 0

    Since having updated Jenkins to 1.481 and the Warnings Plugin to 4.16 (and subsequently to 4.17), I get the following errors in some of the jobs: {noformat} ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.warnings.WarningsResult.getFileName(WarningsResult.java:108) at hudson.plugins.warnings.WarningsResult.getSerializationFileName(WarningsResult.java:94) at hudson.plugins.analysis.core.BuildResult.getDataFile(BuildResult.java:481) at hudson.plugins.analysis.core.BuildResult.loadResult(BuildResult.java:896) at hudson.plugins.analysis.core.BuildResult.getProject(BuildResult.java:880) at hudson.plugins.analysis.core.BuildResult.getContainer(BuildResult.java:1020) at hudson.plugins.analysis.core.BuildResult.getAnnotations(BuildResult.java:563) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:238) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:289) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {noformat} An example is this job: [http://espressomd.org/jenkins/job/ESPResSo-nightly-distcheck/] I have attached a tarfile of the whole job directory (without the artifacts), so that you can check for yourself. Here is some more information: * The error is reproducible when running the job again. * After the discussion in the plugin's comment section, I have checked the contents of the job directory. ** Build 224 has a file {{build.xml}} that contains three {{<result class="hudson.plugins.warnings.WarningsResult">}} tags, but all of them have a {{<group>}} subtag and the corresponding {{*-warnings.xml}}-file. The log contains the error. ** The build before ran without any trouble. Its {{build.xml}} does not contain any {{WarningResult}} tag, as the plugin was deactivated during that time. ** All other builds before either contained one (or more) files {{compiler-warnings.xml}} and the corresponding sections in {{build.xml}}.

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

    Since having updated Jenkins to 1.481 and the Warnings Plugin to 4.16 (and subsequently to 4.17), I get the following errors in some of the jobs: {noformat} ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.warnings.WarningsResult.getFileName(WarningsResult.java:108) at hudson.plugins.warnings.WarningsResult.getSerializationFileName(WarningsResult.java:94) at hudson.plugins.analysis.core.BuildResult.getDataFile(BuildResult.java:481) at hudson.plugins.analysis.core.BuildResult.loadResult(BuildResult.java:896) at hudson.plugins.analysis.core.BuildResult.getProject(BuildResult.java:880) at hudson.plugins.analysis.core.BuildResult.getContainer(BuildResult.java:1020) at hudson.plugins.analysis.core.BuildResult.getAnnotations(BuildResult.java:563) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:238) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:289) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {noformat} An example is this job: [http://espressomd.org/jenkins/job/ESPResSo-nightly-distcheck/] I have attached a tarfile of the whole job directory (without the artifacts), so that you can check for yourself. Here is some more information: * The error is reproducible when running the job again. * After the discussion in the plugin's comment section, I have checked the contents of the job directory. ** Build 224 has a file {{build.xml}} that contains three {{<result class="hudson.plugins.warnings.WarningsResult">}} tags, but all of them have a {{<group>}} subtag and the corresponding {{*-warnings.xml}}-file. The log contains the error. ** The build before ran without any trouble. Its {{build.xml}} does not contain any {{WarningResult}} tag, as the plugin was deactivated during that time. ** All other builds before either contained one (or more) files {{compiler-warnings.xml}} and the corresponding sections in {{build.xml}}.

    Jenkins JIRA | 5 years ago | Olaf Lenz
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am getting the NPE exception below during normal builds. Of course, this makes the build fail. [WARNINGS] Computing warning deltas based on reference build #327 ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.warnings.WarningsResult.getFileName(WarningsResult.java:108) at hudson.plugins.warnings.WarningsResult.getSerializationFileName(WarningsResult.java:94) at hudson.plugins.analysis.core.BuildResult.getDataFile(BuildResult.java:481) at hudson.plugins.analysis.core.BuildResult.loadResult(BuildResult.java:866) at hudson.plugins.analysis.core.BuildResult.getProject(BuildResult.java:850) at hudson.plugins.analysis.core.BuildResult.getContainer(BuildResult.java:990) at hudson.plugins.analysis.core.BuildResult.getAnnotations(BuildResult.java:563) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:373) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:994) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) [ANALYSIS-COLLECTOR] Skipping publisher since build result is FAILURE

    Jenkins JIRA | 5 years ago | Lucas Galfaso
    java.lang.NullPointerException
  6. 0

    I am getting the NPE exception below during normal builds. Of course, this makes the build fail. [WARNINGS] Computing warning deltas based on reference build #327 ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.warnings.WarningsResult.getFileName(WarningsResult.java:108) at hudson.plugins.warnings.WarningsResult.getSerializationFileName(WarningsResult.java:94) at hudson.plugins.analysis.core.BuildResult.getDataFile(BuildResult.java:481) at hudson.plugins.analysis.core.BuildResult.loadResult(BuildResult.java:866) at hudson.plugins.analysis.core.BuildResult.getProject(BuildResult.java:850) at hudson.plugins.analysis.core.BuildResult.getContainer(BuildResult.java:990) at hudson.plugins.analysis.core.BuildResult.getAnnotations(BuildResult.java:563) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:373) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:994) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) [ANALYSIS-COLLECTOR] Skipping publisher since build result is FAILURE

    Jenkins JIRA | 5 years ago | Lucas Galfaso
    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 hudson.plugins.warnings.WarningsResult.getFileName()
    2. hudson.plugins.warnings
      WarningsResult.getSerializationFileName
      1. hudson.plugins.warnings.WarningsResult.getFileName(WarningsResult.java:108)
      2. hudson.plugins.warnings.WarningsResult.getSerializationFileName(WarningsResult.java:94)
      2 frames
    3. Static Analysis Utilities
      HealthAwareRecorder.perform
      1. hudson.plugins.analysis.core.BuildResult.getDataFile(BuildResult.java:481)
      2. hudson.plugins.analysis.core.BuildResult.loadResult(BuildResult.java:896)
      3. hudson.plugins.analysis.core.BuildResult.getProject(BuildResult.java:880)
      4. hudson.plugins.analysis.core.BuildResult.getContainer(BuildResult.java:1020)
      5. hudson.plugins.analysis.core.BuildResult.getAnnotations(BuildResult.java:563)
      6. hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:238)
      7. hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:289)
      7 frames
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
      6. hudson.model.Run.execute(Run.java:1527)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:236)
      9 frames