Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29421

NullPointerException in latest version of SauceLabs plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: sauce-ondemand-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.619
      Sauce OnDemand plugin 1.130
    • Similar Issues:

      Description

      The plugin is unuseable after update:

      Starting pre-build for Sauce Labs plugin
      Starting Sauce Connect on master node using identifier: default
      Launching Sauce Connect on ip-10-197-79-50
      Sauce Connect 4.3.9 now launched for: xyz
      Incremented process count for xyz, now 1
      Finished pre-build for Sauce Labs plugin
      ERROR: Build step failed with exception
      java.lang.NullPointerException
      	at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:367)
      	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)
      	at hudson.tasks.Ant.perform(Ant.java:144)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      	at hudson.model.Build$BuildExecution.build(Build.java:205)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      	at hudson.model.Run.execute(Run.java:1741)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:381)

        Attachments

          Activity

          costescuandrei Andrei Costescu created issue -
          costescuandrei Andrei Costescu made changes -
          Field Original Value New Value
          Environment Jenkins 1.619

          Sauce OnDemand plugin 1.130
          costescuandrei Andrei Costescu made changes -
          Environment Jenkins 1.619

          Sauce OnDemand plugin 1.130
          Jenkins 1.619
          Sauce OnDemand plugin 1.130
          costescuandrei Andrei Costescu made changes -
          Description The plugin is unuseable:

          {noformat}Starting pre-build for Sauce Labs plugin
          Starting Sauce Connect on master node using identifier: default
          Launching Sauce Connect on ip-10-197-79-50
          Sauce Connect 4.3.9 now launched for: jblok
          Incremented process count for jblok, now 1
          Finished pre-build for Sauce Labs plugin
          ERROR: Build step failed with exception
          java.lang.NullPointerException
          at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:367)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)
          at hudson.tasks.Ant.perform(Ant.java:144)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.Build$BuildExecution.build(Build.java:205)
          at hudson.model.Build$BuildExecution.doRun(Build.java:162)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
          at hudson.model.Run.execute(Run.java:1741)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:381){noformat}
          The plugin is unuseable:

          {noformat}Starting pre-build for Sauce Labs plugin
          Starting Sauce Connect on master node using identifier: default
          Launching Sauce Connect on ip-10-197-79-50
          Sauce Connect 4.3.9 now launched for: xyz
          Incremented process count for xyz, now 1
          Finished pre-build for Sauce Labs plugin
          ERROR: Build step failed with exception
          java.lang.NullPointerException
          at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:367)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)
          at hudson.tasks.Ant.perform(Ant.java:144)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.Build$BuildExecution.build(Build.java:205)
          at hudson.model.Build$BuildExecution.doRun(Build.java:162)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
          at hudson.model.Run.execute(Run.java:1741)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:381){noformat}
          costescuandrei Andrei Costescu made changes -
          Description The plugin is unuseable:

          {noformat}Starting pre-build for Sauce Labs plugin
          Starting Sauce Connect on master node using identifier: default
          Launching Sauce Connect on ip-10-197-79-50
          Sauce Connect 4.3.9 now launched for: xyz
          Incremented process count for xyz, now 1
          Finished pre-build for Sauce Labs plugin
          ERROR: Build step failed with exception
          java.lang.NullPointerException
          at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:367)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)
          at hudson.tasks.Ant.perform(Ant.java:144)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.Build$BuildExecution.build(Build.java:205)
          at hudson.model.Build$BuildExecution.doRun(Build.java:162)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
          at hudson.model.Run.execute(Run.java:1741)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:381){noformat}
          The plugin is unuseable after update:

          {noformat}Starting pre-build for Sauce Labs plugin
          Starting Sauce Connect on master node using identifier: default
          Launching Sauce Connect on ip-10-197-79-50
          Sauce Connect 4.3.9 now launched for: xyz
          Incremented process count for xyz, now 1
          Finished pre-build for Sauce Labs plugin
          ERROR: Build step failed with exception
          java.lang.NullPointerException
          at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:367)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)
          at hudson.tasks.Ant.perform(Ant.java:144)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.Build$BuildExecution.build(Build.java:205)
          at hudson.model.Build$BuildExecution.doRun(Build.java:162)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
          at hudson.model.Run.execute(Run.java:1741)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:381){noformat}
          Hide
          apgray Andrew Gray added a comment -

          Works fine for me but I am not using SauceConnect.

          Show
          apgray Andrew Gray added a comment - Works fine for me but I am not using SauceConnect.
          Hide
          costescuandrei Andrei Costescu added a comment -

          What do you use?

          Show
          costescuandrei Andrei Costescu added a comment - What do you use?
          Hide
          apgray Andrew Gray added a comment - - edited

          Windows 8.1
          Jenkins 1.619 (usually I am using latest & greatest)
          Sauce OnDemand 1.130

          Show
          apgray Andrew Gray added a comment - - edited Windows 8.1 Jenkins 1.619 (usually I am using latest & greatest) Sauce OnDemand 1.130
          Hide
          costescuandrei Andrei Costescu added a comment -

          Thanks for the workaround. But still I would like to leave the verbose logging on.
          It still happens with plugin version 1.132.

          Show
          costescuandrei Andrei Costescu added a comment - Thanks for the workaround. But still I would like to leave the verbose logging on. It still happens with plugin version 1.132.
          Hide
          bootstraponline bootstraponline added a comment - - edited

          I'm also experiencing the NPE in Sauce OnDemand plugin v1.132. Enable Verbose Logging isn't checked for me so that work around did not help.

          I selected a value for WebDriver and Appium then the NPE stopped. I don't use the plugin to select the browser or run Sauce Connect so I shouldn't have to set these options to avoid a crash.

          Starting pre-build for Sauce Labs plugin
          Finished pre-build for Sauce Labs plugin
          Starting post-build for Sauce Labs plugin
          Finished post-build for Sauce Labs plugin
          FATAL: null
          java.lang.NullPointerException
          	at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:380)
          	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:924)
          	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:90)
          	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
          	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:780)
          	at hudson.model.Build$BuildExecution.build(Build.java:199)
          	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:543)
          	at hudson.model.Run.execute(Run.java:1745)
          	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          	at hudson.model.ResourceController.execute(ResourceController.java:89)
          	at hudson.model.Executor.run(Executor.java:240)
          
          
          Show
          bootstraponline bootstraponline added a comment - - edited I'm also experiencing the NPE in Sauce OnDemand plugin v1.132. Enable Verbose Logging isn't checked for me so that work around did not help. I selected a value for WebDriver and Appium then the NPE stopped. I don't use the plugin to select the browser or run Sauce Connect so I shouldn't have to set these options to avoid a crash. Starting pre-build for Sauce Labs plugin Finished pre-build for Sauce Labs plugin Starting post-build for Sauce Labs plugin Finished post-build for Sauce Labs plugin FATAL: null java.lang.NullPointerException at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1.buildEnvVars(SauceOnDemandBuildWrapper.java:380) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:924) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:90) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:780) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:543) at hudson.model.Run.execute(Run.java:1745) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)
          rossrowe Ross Rowe made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          rossrowe Ross Rowe made changes -
          Assignee Kohsuke Kawaguchi [ kohsuke ] Ross Rowe [ rossrowe ]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ross Rowe
          Path:
          src/main/java/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper.java
          http://jenkins-ci.org/commit/sauce-ondemand-plugin/f0857f521500289159e1fb7bdafd55bf44b08e6d
          Log:
          JENKINS-29421 Resolve NullPointerException

          Compare: https://github.com/jenkinsci/sauce-ondemand-plugin/compare/70ccf29f30c8...f0857f521500

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ross Rowe Path: src/main/java/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper.java http://jenkins-ci.org/commit/sauce-ondemand-plugin/f0857f521500289159e1fb7bdafd55bf44b08e6d Log: JENKINS-29421 Resolve NullPointerException Compare: https://github.com/jenkinsci/sauce-ondemand-plugin/compare/70ccf29f30c8...f0857f521500
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ross Rowe
          Path:
          pom.xml
          http://jenkins-ci.org/commit/sauce-ondemand-plugin/4ba621067e414cf33a33044e1e1d0f9b6841a202
          Log:
          JENKINS-29421 Resolve NullPointerException

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ross Rowe Path: pom.xml http://jenkins-ci.org/commit/sauce-ondemand-plugin/4ba621067e414cf33a33044e1e1d0f9b6841a202 Log: JENKINS-29421 Resolve NullPointerException
          Hide
          rossrowe Ross Rowe added a comment -

          Apologies for the delay, the issue should be resolved in version 1.133 of the plugin

          Show
          rossrowe Ross Rowe added a comment - Apologies for the delay, the issue should be resolved in version 1.133 of the plugin
          rossrowe Ross Rowe made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          Hide
          costescuandrei Andrei Costescu added a comment -

          Thanks.

          Show
          costescuandrei Andrei Costescu added a comment - Thanks.
          Hide
          orlandosoto Orlando Soto added a comment -

          thanks Ross Rowe!

          Show
          orlandosoto Orlando Soto added a comment - thanks Ross Rowe !
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 164296 ] JNJira + In-Review [ 197473 ]

            People

            Assignee:
            rossrowe Ross Rowe
            Reporter:
            costescuandrei Andrei Costescu
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: