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

NullPointerException using "Run emulator with properties"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Hudson 1.374 running on Windows 2003; Android Emulator Plugin 1.3; JDK 1.6.0_11-b03; Android SDK r06 with all components installed
    • Similar Issues:

      Description

      Choose "Run emulator with properties" and set

      • Android OS version: 2.1
      • Density: 160
      • Resolution: 480x800
      • Locale: en_US
      • SD card: 16M

      Uncheck "Reset Emulator State" and "Show emulator window"
      Delay: 0

      During build the following error message is displayed:
      ...
      [android] Using Android SDK: d:\tools\android-sdk-windows
      ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net
      java.lang.NullPointerException at hudson.plugins.android_emulator.EmulatorConfig.getGeneratedAvdName(EmulatorConfig.java:103)
      at hudson.plugins.android_emulator.EmulatorConfig.getAvdName(EmulatorConfig.java:97)
      at hudson.plugins.android_emulator.EmulatorConfig.getAvdDirectory(EmulatorConfig.java:163)
      at hudson.plugins.android_emulator.EmulatorConfig.access$000(EmulatorConfig.java:23)
      at hudson.plugins.android_emulator.EmulatorConfig$EmulatorCreationTask.call(EmulatorConfig.java:261)
      at hudson.plugins.android_emulator.EmulatorConfig$EmulatorCreationTask.call(EmulatorConfig.java:239)
      at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      at hudson.plugins.android_emulator.AndroidEmulator.doSetUp(AndroidEmulator.java:186)
      at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:173)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:395)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      at hudson.model.Run.run(Run.java:1272) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:291)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:129)
      project=hudson.maven.MavenModuleSet@118bf6f[...] project.getModules()=[hudson.maven.MavenModule@101c84[...], hudson.maven.MavenModule@1c04833[...], hudson.maven.MavenModule@c41c8e[...], hudson.maven.MavenModule@12eb321[...]] project.getRootModule()=hudson.maven.MavenModule@101c84[...]
      FATAL: null
      java.lang.NullPointerException at hudson.plugins.android_emulator.EmulatorConfig.getGeneratedAvdName(EmulatorConfig.java:103)
      at hudson.plugins.android_emulator.EmulatorConfig.getAvdName(EmulatorConfig.java:97)
      at hudson.plugins.android_emulator.EmulatorConfig.getAvdDirectory(EmulatorConfig.java:163)
      at hudson.plugins.android_emulator.EmulatorConfig.access$000(EmulatorConfig.java:23)
      at hudson.plugins.android_emulator.EmulatorConfig$EmulatorCreationTask.call(EmulatorConfig.java:261)
      at hudson.plugins.android_emulator.EmulatorConfig$EmulatorCreationTask.call(EmulatorConfig.java:239)
      at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      at hudson.plugins.android_emulator.AndroidEmulator.doSetUp(AndroidEmulator.java:186)
      at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:173)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:395)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      at hudson.model.Run.run(Run.java:1272)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:291)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:129)

        Attachments

          Activity

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              alex1973 alex1973
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: