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.

  • 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.
    via by Andrei Costescu,
  • 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.
    via by Andrei Costescu,
  • {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}
    via by R. Tyler Croy,
  • {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}
    via by R. Tyler Croy,
    • 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)
    No Bugmate found.