java.lang.NullPointerException

Jenkins JIRA | Andrei Costescu | 1 year 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 job runs, all tests pass, sauce job also looks normal/success.. Jenkins job reports Build Success in console and the tests reports show all passed. Even so the job is marked as a failure. I looked in the logs an I noticed this - which might be the culprit. {code}Feb 01, 2016 8:09:40 PM hudson.triggers.SafeTimerTask run SEVERE: Timer task hudson.plugins.build_timeout.BuildTimeoutWrapper$EnvironmentImpl$TimeoutTimerTask@68416dbd failed java.lang.NullPointerException at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.getCurrentHostName(SauceOnDemandBuildWrapper.java:466) at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.access$600(SauceOnDemandBuildWrapper.java:78) at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.getHostName(SauceOnDemandBuildWrapper.java:340) at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:317) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944) at hudson.plugins.build_timeout.operations.WriteDescriptionOperation.perform(WriteDescriptionOperation.java:65) at hudson.plugins.build_timeout.BuildTimeoutWrapper$EnvironmentImpl$TimeoutTimerTask.doRun(BuildTimeoutWrapper.java:142) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) Feb 01, 2016 8:12:02 PM com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager logMessage INFO: Decremented process count for ..., now 0 Feb 01, 2016 8:12:02 PM com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager logMessage INFO: Flushing Sauce Connect Input Stream Feb 01, 2016 8:12:02 PM com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager logMessage INFO: Flushing Sauce Connect Error Stream Feb 01, 2016 8:12:02 PM com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager logMessage INFO: Closing Sauce Connect process Feb 01, 2016 8:12:06 PM com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager logMessage INFO: Sauce Connect stopped for: ... Feb 01, 2016 8:12:06 PM hudson.model.Run execute INFO: my_job #1118 main build action completed: FAILURE {code} I noticed there are newer versions which I might test, but I didn't see anything like this mentioned as fixed in the changelogs.

    Jenkins JIRA | 1 year ago | Andrei Costescu
    java.lang.NullPointerException
  2. 0

    The job runs, all tests pass, sauce job also looks normal/success.. Jenkins job reports Build Success in console and the tests reports show all passed. Even so the job is marked as a failure. I looked in the logs an I noticed this - which might be the culprit. {code}Feb 01, 2016 8:09:40 PM hudson.triggers.SafeTimerTask run SEVERE: Timer task hudson.plugins.build_timeout.BuildTimeoutWrapper$EnvironmentImpl$TimeoutTimerTask@68416dbd failed java.lang.NullPointerException at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.getCurrentHostName(SauceOnDemandBuildWrapper.java:466) at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.access$600(SauceOnDemandBuildWrapper.java:78) at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.getHostName(SauceOnDemandBuildWrapper.java:340) at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:317) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944) at hudson.plugins.build_timeout.operations.WriteDescriptionOperation.perform(WriteDescriptionOperation.java:65) at hudson.plugins.build_timeout.BuildTimeoutWrapper$EnvironmentImpl$TimeoutTimerTask.doRun(BuildTimeoutWrapper.java:142) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) Feb 01, 2016 8:12:02 PM com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager logMessage INFO: Decremented process count for ..., now 0 Feb 01, 2016 8:12:02 PM com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager logMessage INFO: Flushing Sauce Connect Input Stream Feb 01, 2016 8:12:02 PM com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager logMessage INFO: Flushing Sauce Connect Error Stream Feb 01, 2016 8:12:02 PM com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager logMessage INFO: Closing Sauce Connect process Feb 01, 2016 8:12:06 PM com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager logMessage INFO: Sauce Connect stopped for: ... Feb 01, 2016 8:12:06 PM hudson.model.Run execute INFO: my_job #1118 main build action completed: FAILURE {code} I noticed there are newer versions which I might test, but I didn't see anything like this mentioned as fixed in the changelogs.

    Jenkins JIRA | 1 year ago | Andrei Costescu
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    {code} 10:20:34 Launching Sauce Connect [/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java, -cp, /var/lib/jenkins/plugins/sauce-ondemand/WEB-INF/lib/sauce-connect-3.0.18.jar, com.saucelabs.sauceconnect.SauceConnect, jenkins, REDACTED, -P, 4445] 10:20:56 Sauce Connect now launched 10:20:56 Incremented process count for jenkins, now1 10:20:56 Shutting down Sauce Connect SSH tunnels 10:20:56 Decremented process count for jenkins, now 0 10:20:56 Flushing Sauce Connect Input Stream 10:20:56 Flushing Sauce Connect Error Stream 10:20:56 Closing Sauce Connect process 10:20:56 Sauce Connect closed 10:20:56 FATAL: null 10:20:56 java.lang.NullPointerException 10:20:56 at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.outputEnvironmentVariablesForBrowser(SauceOnDemandBuildWrapper.java:197) 10:20:56 at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.outputWebDriverVariables(SauceOnDemandBuildWrapper.java:207) 10:20:56 at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:155) 10:20:56 at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:945) 10:20:56 at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:89) 10:20:56 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 10:20:56 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810) 10:20:56 at hudson.model.Build$BuildExecution.build(Build.java:199) 10:20:56 at hudson.model.Build$BuildExecution.doRun(Build.java:160) 10:20:56 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:592) 10:20:56 at hudson.model.Run.execute(Run.java:1557) 10:20:56 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 10:20:56 at hudson.model.ResourceController.execute(ResourceController.java:88) 10:20:56 at hudson.model.Executor.run(Executor.java:236) {code}

    Jenkins JIRA | 4 years ago | R. Tyler Croy
    java.lang.NullPointerException
  5. 0

    {code} 10:20:34 Launching Sauce Connect [/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java, -cp, /var/lib/jenkins/plugins/sauce-ondemand/WEB-INF/lib/sauce-connect-3.0.18.jar, com.saucelabs.sauceconnect.SauceConnect, jenkins, REDACTED, -P, 4445] 10:20:56 Sauce Connect now launched 10:20:56 Incremented process count for jenkins, now1 10:20:56 Shutting down Sauce Connect SSH tunnels 10:20:56 Decremented process count for jenkins, now 0 10:20:56 Flushing Sauce Connect Input Stream 10:20:56 Flushing Sauce Connect Error Stream 10:20:56 Closing Sauce Connect process 10:20:56 Sauce Connect closed 10:20:56 FATAL: null 10:20:56 java.lang.NullPointerException 10:20:56 at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.outputEnvironmentVariablesForBrowser(SauceOnDemandBuildWrapper.java:197) 10:20:56 at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.outputWebDriverVariables(SauceOnDemandBuildWrapper.java:207) 10:20:56 at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:155) 10:20:56 at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:945) 10:20:56 at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:89) 10:20:56 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 10:20:56 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810) 10:20:56 at hudson.model.Build$BuildExecution.build(Build.java:199) 10:20:56 at hudson.model.Build$BuildExecution.doRun(Build.java:160) 10:20:56 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:592) 10:20:56 at hudson.model.Run.execute(Run.java:1557) 10:20:56 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 10:20:56 at hudson.model.ResourceController.execute(ResourceController.java:88) 10:20:56 at hudson.model.Executor.run(Executor.java:236) {code}

    Jenkins JIRA | 4 years ago | R. Tyler Croy
    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.sauce_ondemand.SauceOnDemandBuildWrapper.getCurrentHostName()
    2. hudson.plugins.sauce_ondemand
      SauceOnDemandBuildWrapper$1.buildEnvVars
      1. hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.getCurrentHostName(SauceOnDemandBuildWrapper.java:466)
      2. hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.access$600(SauceOnDemandBuildWrapper.java:78)
      3. hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.getHostName(SauceOnDemandBuildWrapper.java:340)
      4. hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:317)
      4 frames
    3. Hudson
      AbstractBuild.getEnvironment
      1. hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)
      1 frame
    4. hudson.plugins.build_timeout
      BuildTimeoutWrapper$EnvironmentImpl$TimeoutTimerTask.doRun
      1. hudson.plugins.build_timeout.operations.WriteDescriptionOperation.perform(WriteDescriptionOperation.java:65)
      2. hudson.plugins.build_timeout.BuildTimeoutWrapper$EnvironmentImpl$TimeoutTimerTask.doRun(BuildTimeoutWrapper.java:142)
      2 frames
    5. Hudson
      SafeTimerTask.run
      1. hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51)
      1 frame
    6. Java RT
      TimerThread.run
      1. java.util.TimerThread.mainLoop(Timer.java:555)
      2. java.util.TimerThread.run(Timer.java:505)
      2 frames