java.lang.NullPointerException

Jenkins JIRA | Pratibha Srikanta | 8 months 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

    Jenkins builds are failing with a NullPointerException at the "Run Sauce Labs Publisher" post build step. The stack trace is as follows: {code} Finished post-build for Sauce Labs plugin Starting Sauce Labs test publisher Finished Sauce Labs test publisher Starting Sauce Labs test publisher Finished Sauce Labs test publisher ERROR: Build step failed with exception java.lang.NullPointerException at hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher.getSauceREST(SauceOnDemandReportPublisher.java:284) at hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher.processBuildOutput(SauceOnDemandReportPublisher.java:189) at hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher.getTestData(SauceOnDemandReportPublisher.java:143) at hudson.plugins.sauce_ondemand.SauceOnDemandTestPublisher.addTestDataPublishersToBuildReport(SauceOnDemandTestPublisher.java:124) at hudson.plugins.sauce_ondemand.SauceOnDemandTestPublisher.addTestDataPublishersToMavenModules(SauceOnDemandTestPublisher.java:96) at hudson.plugins.sauce_ondemand.SauceOnDemandTestPublisher.perform(SauceOnDemandTestPublisher.java:84) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Build step 'Run Sauce Labs Test Publisher' marked build as failure {code} This happens irrespective of the sauce test results

    Jenkins JIRA | 8 months ago | Pratibha Srikanta
    java.lang.NullPointerException
  2. 0

    Jenkins builds are failing with a NullPointerException at the "Run Sauce Labs Publisher" post build step. The stack trace is as follows: {code} Finished post-build for Sauce Labs plugin Starting Sauce Labs test publisher Finished Sauce Labs test publisher Starting Sauce Labs test publisher Finished Sauce Labs test publisher ERROR: Build step failed with exception java.lang.NullPointerException at hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher.getSauceREST(SauceOnDemandReportPublisher.java:284) at hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher.processBuildOutput(SauceOnDemandReportPublisher.java:189) at hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher.getTestData(SauceOnDemandReportPublisher.java:143) at hudson.plugins.sauce_ondemand.SauceOnDemandTestPublisher.addTestDataPublishersToBuildReport(SauceOnDemandTestPublisher.java:124) at hudson.plugins.sauce_ondemand.SauceOnDemandTestPublisher.addTestDataPublishersToMavenModules(SauceOnDemandTestPublisher.java:96) at hudson.plugins.sauce_ondemand.SauceOnDemandTestPublisher.perform(SauceOnDemandTestPublisher.java:84) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Build step 'Run Sauce Labs Test Publisher' marked build as failure {code} This happens irrespective of the sauce test results

    Jenkins JIRA | 8 months ago | Pratibha Srikanta
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher.getSauceREST()
    2. hudson.plugins.sauce_ondemand
      SauceOnDemandTestPublisher.perform
      1. hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher.getSauceREST(SauceOnDemandReportPublisher.java:284)
      2. hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher.processBuildOutput(SauceOnDemandReportPublisher.java:189)
      3. hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher.getTestData(SauceOnDemandReportPublisher.java:143)
      4. hudson.plugins.sauce_ondemand.SauceOnDemandTestPublisher.addTestDataPublishersToBuildReport(SauceOnDemandTestPublisher.java:124)
      5. hudson.plugins.sauce_ondemand.SauceOnDemandTestPublisher.addTestDataPublishersToMavenModules(SauceOnDemandTestPublisher.java:96)
      6. hudson.plugins.sauce_ondemand.SauceOnDemandTestPublisher.perform(SauceOnDemandTestPublisher.java:84)
      6 frames
    3. Hudson
      AbstractBuild$AbstractBuildExecution.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      3 frames
    4. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.post2
      1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047)
      1 frame
    5. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      2. hudson.model.Run.execute(Run.java:1763)
      2 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:410)
      2 frames