java.lang.NullPointerException

Jenkins JIRA | Greg Domjan | 3 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

    Had a project with Coverity plugin installed and configured, successfully publishing results. Tried to make it conditional following instructions "importing existing publishers" https://wiki.jenkins-ci.org/display/JENKINS/Flexible+Publish+Plugin ``` import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.* def job = hudson.model.Hudson.instance.getItem('modulesJavaDatastore') list job movePublisher job,'Coverity' list job ``` Maven build completed successfully, then follows following exception in console log. Strings match run condition: string 1=[clean], string 2=[clean] Run condition [Strings match] enabling perform for step [Coverity] ERROR: Publisher org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher aborted due to exception java.lang.NullPointerException at jenkins.plugins.coverity.CoverityPublisher.perform(CoverityPublisher.java:404) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$DontRun.conditionalRun(BuildStepRunner.java:264) at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105) at org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:134) at org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:111) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:754) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1020) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:707) at hudson.model.Run.execute(Run.java:1690) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) [WARNINGS] Skipping publisher since build result is FAILURE

    Jenkins JIRA | 3 years ago | Greg Domjan
    java.lang.NullPointerException
  2. 0

    Had a project with Coverity plugin installed and configured, successfully publishing results. Tried to make it conditional following instructions "importing existing publishers" https://wiki.jenkins-ci.org/display/JENKINS/Flexible+Publish+Plugin ``` import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.* def job = hudson.model.Hudson.instance.getItem('modulesJavaDatastore') list job movePublisher job,'Coverity' list job ``` Maven build completed successfully, then follows following exception in console log. Strings match run condition: string 1=[clean], string 2=[clean] Run condition [Strings match] enabling perform for step [Coverity] ERROR: Publisher org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher aborted due to exception java.lang.NullPointerException at jenkins.plugins.coverity.CoverityPublisher.perform(CoverityPublisher.java:404) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$DontRun.conditionalRun(BuildStepRunner.java:264) at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105) at org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:134) at org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:111) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:754) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1020) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:707) at hudson.model.Run.execute(Run.java:1690) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) [WARNINGS] Skipping publisher since build result is FAILURE

    Jenkins JIRA | 3 years ago | Greg Domjan
    java.lang.NullPointerException
  3. 0

    start getting this after upgade to coverity 1.2.0 00:04:36.725 Connecting to server jena102:9090 00:04:36.909 2013-04-04 08:48:34 UTC - Committing 237 file descriptions... 00:04:36.909 |0----------25-----------50----------75---------100| 00:04:37.324 **************************************************** 00:04:39.510 2013-04-04 08:48:34 UTC - Calculating 237 cross-references... 00:04:39.510 |0----------25-----------50----------75---------100| 00:04:41.284 **************************************************** 00:04:41.288 2013-04-04 08:48:38 UTC - Committing 237 cross-references... 00:04:41.289 |0----------25-----------50----------75---------100| 00:04:42.098 **************************************************** 00:04:44.581 2013-04-04 08:48:41 UTC - Committing 1979 functions... 00:04:44.581 |0----------25-----------50----------75---------100| 00:04:44.795 **************************************************** 00:04:46.355 2013-04-04 08:48:43 UTC - Committing 55 defect occurrences... 00:04:46.355 |0----------25-----------50----------75---------100| 00:04:46.360 **************************************************** 00:04:50.226 2013-04-04 08:48:47 UTC - Committing 3 output files... 00:04:50.226 |0----------25-----------50----------75---------100| 00:04:50.234 **************************************************** 00:04:50.253 New snapshot ID 23853 added. 00:04:50.254 Elapsed time: 00:00:13 00:04:50.255 static done 00:04:50.378 Archiving artifacts 00:04:50.402 ERROR: Publisher jenkins.plugins.coverity.CoverityPublisher aborted due to exception 00:04:50.403 java.lang.NullPointerException 00:04:50.403 at jenkins.plugins.coverity.CoverityPublisher.perform(CoverityPublisher.java:248) 00:04:50.403 at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) 00:04:50.403 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:798) 00:04:50.403 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:770) 00:04:50.404 at hudson.model.Build$BuildExecution.post2(Build.java:183) 00:04:50.404 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:720) 00:04:50.404 at hudson.model.Run.execute(Run.java:1600) 00:04:50.404 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 00:04:50.404 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:04:50.405 at hudson.model.Executor.run(Executor.java:237) 00:04:50.406 Email was triggered for: Failure

    Jenkins JIRA | 4 years ago | Vlad Aginsky
    java.lang.NullPointerException
  4. 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 jenkins.plugins.coverity.CoverityPublisher.perform()
    2. jenkins.plugins.coverity
      CoverityPublisher.perform
      1. jenkins.plugins.coverity.CoverityPublisher.perform(CoverityPublisher.java:404)
      1 frame
    3. org.jenkins_ci.plugins
      FlexiblePublisher.perform
      1. org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
      2. org.jenkins_ci.plugins.run_condition.BuildStepRunner$DontRun.conditionalRun(BuildStepRunner.java:264)
      3. org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
      4. org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:134)
      5. org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:111)
      5 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:754)
      3 frames
    5. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.post2
      1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1020)
      1 frame
    6. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:707)
      2. hudson.model.Run.execute(Run.java:1690)
      2 frames
    7. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:246)
      2 frames