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

NoSuchMethod PortAllocationManager.allocatePortRange

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Labels:
      None
    • Environment:
      Jenkins 1.651.3
      Android Plugin version 2.15
    • Similar Issues:

      Description

      org.jvnet.hudson.plugins.port_allocator.PortAllocationManager.allocatePortRange called from (init)AndroidEmulatorContext.java:66

      Just updated jenkins and the plugin to the above versions and rebooted it. I'm attempting to setup a build matrix with the android emulator and I get the above message whenever attempting to start it. I'm not entirely sure how to go about solving this. I'll update the ticket if I discovery more info

        Attachments

          Activity

          Hide
          orrc Christopher Orr added a comment -

          It sounds like either the Port Allocator plugin is not installed, or is a really old version (1.5 or older).

          Make sure you have this plugin installed — which should be installed automatically if you're installing/updating via the built-in Plugin Manager, as it is (and always has been) an explicit dependency of the Android Emulator plugin.

          Show
          orrc Christopher Orr added a comment - It sounds like either the Port Allocator plugin is not installed, or is a really old version (1.5 or older). Make sure you have this plugin installed — which should be installed automatically if you're installing/updating via the built-in Plugin Manager, as it is (and always has been) an explicit dependency of the Android Emulator plugin.
          Hide
          spyjhutner99 alex o added a comment -

          Gotcha, I'll give it a try. I'm on a closed network (no internet) and have to update jenkins manually

          Show
          spyjhutner99 alex o added a comment - Gotcha, I'll give it a try. I'm on a closed network (no internet) and have to update jenkins manually
          Hide
          spyjhutner99 alex o added a comment - - edited

          Update: I've gotten past that issue but now am getting a different error message

          "This application has requested the Runtime to terminate it in an usual way. Please contact the application's support team for more information.
          terminate called after throw an instance of 'std::logic error' what(): basic_string:_S_construct_null not valid
          [android] Emulator did not appear to start; giving up

          Show
          spyjhutner99 alex o added a comment - - edited Update: I've gotten past that issue but now am getting a different error message "This application has requested the Runtime to terminate it in an usual way. Please contact the application's support team for more information. terminate called after throw an instance of 'std::logic error' what(): basic_string:_S_construct_null not valid [android] Emulator did not appear to start; giving up
          Hide
          orrc Christopher Orr added a comment -

          I've never seen that before, but that would be an issue with the emulator itself.

          Try starting the emulator yourself by running the command line logged by the plugin, and see if you have the same issue.

          Show
          orrc Christopher Orr added a comment - I've never seen that before, but that would be an issue with the emulator itself. Try starting the emulator yourself by running the command line logged by the plugin, and see if you have the same issue.
          Hide
          spyjhutner99 alex o added a comment -

          the command line being executed is

          android/sdk/tools/emulator.exe -snapshot-list -no-window -avd (name goes here)
          it bombs with
          PANIC: HOME is defined but could not find test.init file in $HOME\.android\avd

          strange part is that $HOME and %HOME% are not defined on this computer.

          A working command line is
          android.bat create avd (with the rest of the params here)

          Is there a particular reason this plugin uses the emulator exe for creating the avd instead of the android.sh or .bat?

          Show
          spyjhutner99 alex o added a comment - the command line being executed is android/sdk/tools/emulator.exe -snapshot-list -no-window -avd (name goes here) it bombs with PANIC: HOME is defined but could not find test.init file in $HOME\.android\avd strange part is that $HOME and %HOME% are not defined on this computer. A working command line is android.bat create avd (with the rest of the params here) Is there a particular reason this plugin uses the emulator exe for creating the avd instead of the android.sh or .bat?

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              spyjhutner99 alex o
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: