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

Attempting to unlock emulator screen FATAL: null java.lang.NullPointerException

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Jenkins fails my job on it's first attempt to unlock emulator screen

      • I'm using April 8th, 2016 Jenkins release plugin
      • Emulator used is Nexus5X - Android 6.0 - API23

      I tried to see if someone else reported the issue already, but it seems I'm the only one so far.
      Thanks!

      Logs:
      --------------------------------------------------------------------------------------------------------------------------------------------------
      [android] Emulator reported that the startup process is 'running'
      $ C:\android-sdk/platform-tools/adb.exe -s emulator-5726 wait-for-device shell getprop init.svc.bootanim
      [android] Emulator reported that the startup process is 'stopped'
      $ C:\android-sdk/platform-tools/adb.exe -s emulator-5726 logcat -v time
      [android] Attempting to unlock emulator screen
      FATAL: null
      java.lang.NullPointerException
      at hudson.plugins.android_emulator.AndroidEmulator.doSetUp(AndroidEmulator.java:436)
      at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:271)
      at hudson.model.Build$BuildExecution.doRun(Build.java:156)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)

      --------------------------------------------------------------------------------------------------------------------------------------------------

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christopher Orr
          Path:
          src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java
          http://jenkins-ci.org/commit/android-emulator-plugin/13c40bb04725ac8d1d8bc11e10a0ce18acc6795a
          Log:
          [FIXED JENKINS-34152] Fix NPE when trying to unlock named emulators.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christopher Orr Path: src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java http://jenkins-ci.org/commit/android-emulator-plugin/13c40bb04725ac8d1d8bc11e10a0ce18acc6795a Log: [FIXED JENKINS-34152] Fix NPE when trying to unlock named emulators.
          Hide
          orrc Christopher Orr added a comment -

          Thanks for the report. I'll release a new version soon, with a few more updates and fixes.

          Meanwhile, you can get a version of the plugin (.hpi file) with this fix here:
          https://jenkins.ci.cloudbees.com/job/plugins/job/android-emulator-plugin/133/org.jenkins-ci.plugins$android-emulator/

          Show
          orrc Christopher Orr added a comment - Thanks for the report. I'll release a new version soon, with a few more updates and fixes. Meanwhile, you can get a version of the plugin (.hpi file) with this fix here: https://jenkins.ci.cloudbees.com/job/plugins/job/android-emulator-plugin/133/org.jenkins-ci.plugins$android-emulator/
          Hide
          aaverin Anton Averin added a comment -

          Was this fix already released or we still need to grab hpi manually?

          Show
          aaverin Anton Averin added a comment - Was this fix already released or we still need to grab hpi manually?
          Hide
          orrc Christopher Orr added a comment -

          Anton Averin: There haven't been any updates here, or in the Jenkins plugin manager, or on the wiki page for this plugin, meaning that a release has not yet been made.

          Show
          orrc Christopher Orr added a comment - Anton Averin : There haven't been any updates here, or in the Jenkins plugin manager, or on the wiki page for this plugin, meaning that a release has not yet been made.
          Hide
          orrc Christopher Orr added a comment -

          Version 2.14.1 of the plugin has been released, which fixes this issue.

          This will appear in the Jenkins update centre later today.

          Show
          orrc Christopher Orr added a comment - Version 2.14.1 of the plugin has been released, which fixes this issue. This will appear in the Jenkins update centre later today.
          Hide
          orrc Christopher Orr added a comment -

          Just for info: there's some maintenance going on in the Jenkins project at the moment, and the Update Centre isn't being updated at the moment.

          If you want to install the released HPI manually, you can find it here:
          https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/android-emulator/2.14.1/android-emulator-2.14.1.hpi

          Show
          orrc Christopher Orr added a comment - Just for info: there's some maintenance going on in the Jenkins project at the moment, and the Update Centre isn't being updated at the moment. If you want to install the released HPI manually, you can find it here: https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/android-emulator/2.14.1/android-emulator-2.14.1.hpi

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              sika Marius Horvat
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: