java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Warnings Plugin - Jenkins - Jenkins Wiki
    via by Unknown author,
  • 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}}.
    via by Olaf Lenz,
  • 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}}.
    via by Olaf Lenz,
  • 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
    via by Lucas Galfaso,
  • 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
    via by Lucas Galfaso,
    • 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)
    No Bugmate found.