java.lang.NullPointerException

Jenkins JIRA | Erik Fahlén | 5 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

    [JIRA] (JENKINS-38618) NullPointerException when installing Android SDK

    Google Groups | 5 months ago | erf...@gmail.com (JIRA)
    java.lang.NullPointerException
  2. 0

    I get a NullPointerException when trying to automatically install the Android SDK. The only other plugin I have added to Jenkins is the Node JS plugin. [android] No Android SDK found; let's install it automatically... [android] Going to install required Android SDK components... [android] Installing the 'platform-tool' SDK component(s)... $ /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android update sdk -u -a -t platform-tool /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 30: dirname: command not found /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 33: basename: command not found /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 40: dirname: command not found /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 44: dirname: command not found /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 48: basename: command not found $ /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android list sdk --extended /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 30: dirname: command not found /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 33: basename: command not found /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 40: dirname: command not found /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 44: dirname: command not found /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 48: basename: command not found [android] Installing the 'tool,extra-android-m2repository,extra-google-m2repository' SDK component(s)... $ /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android update sdk -u -a -t tool,extra-android-m2repository,extra-google-m2repository /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 30: dirname: command not found /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 33: basename: command not found /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 40: dirname: command not found /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android: line 44: dirname: command not found FATAL: null java.lang.NullPointerException at hudson.plugins.android_emulator.util.Utils.getToolCommand(Utils.java:398) at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:449) at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:442) at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:436) at hudson.plugins.android_emulator.SdkInstaller.isPlatformInstalled(SdkInstaller.java:311) at hudson.plugins.android_emulator.SdkInstaller.installPlatform(SdkInstaller.java:257) at hudson.plugins.android_emulator.SdkInstaller.installDependencies(SdkInstaller.java:242) at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:264) 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:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE

    Jenkins JIRA | 5 months ago | Erik Fahlén
    java.lang.NullPointerException
  3. 0

    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) --------------------------------------------------------------------------------------------------------------------------------------------------

    Jenkins JIRA | 10 months ago | Marius Horvat
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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) --------------------------------------------------------------------------------------------------------------------------------------------------

    Jenkins JIRA | 10 months ago | Marius Horvat
    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.android_emulator.util.Utils.getToolCommand()
    2. hudson.plugins.android_emulator
      AndroidEmulator.setUp
      1. hudson.plugins.android_emulator.util.Utils.getToolCommand(Utils.java:398)
      2. hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:449)
      3. hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:442)
      4. hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:436)
      5. hudson.plugins.android_emulator.SdkInstaller.isPlatformInstalled(SdkInstaller.java:311)
      6. hudson.plugins.android_emulator.SdkInstaller.installPlatform(SdkInstaller.java:257)
      7. hudson.plugins.android_emulator.SdkInstaller.installDependencies(SdkInstaller.java:242)
      8. hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:264)
      8 frames
    3. Hudson
      Executor.run
      1. hudson.model.Build$BuildExecution.doRun(Build.java:156)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      3. hudson.model.Run.execute(Run.java:1741)
      4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      5. hudson.model.ResourceController.execute(ResourceController.java:98)
      6. hudson.model.Executor.run(Executor.java:410)
      6 frames