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

Unable to serialize hudson.plugins.android_emulator.SdkInstaller

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Job running on a slave started via Java Web Start. Server running on the cloud, slave running inside our office.
    • Similar Issues:

      Description

      When starting a job which requires an Android SDK, we see the exception below. This happens if we use ANDROID_HOME pointing to an existing installation (in this case, the download of the SDK is not performed) as well as with automatic download of the needed "tools".

      Started by user dashboard
      Building remotely on dashboard in workspace /tmp/jenkins/workspace/CI-emulatortest
      [android] No Android SDK found; let's install it automatically...
      Downloading and installing Android SDK from http://dl.google.com/android/android-sdk_r16-linux.tgz
      [android] Base SDK installed successfully
      [android] Going to install required Android SDK components...
      [android] Installing the 'platform-tool,tool' SDK component(s)...
      $ /tmp/jenkins/tools/android-sdk/tools/android update sdk -o -u -t platform-tool,tool
      Refresh Sources:
        Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
        Validate XML
        Parse XML
        Fetched Add-ons List successfully
        Refresh Sources
        Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
        Validate XML: https://dl-ssl.google.com/android/repository/repository-5.xml
        Parse XML:    https://dl-ssl.google.com/android/repository/repository-5.xml
        Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
        Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
        Fetching URL: http://dl.htcdev.com/sdk/addon.xml
        Validate XML: http://dl.htcdev.com/sdk/addon.xml
        Parse XML:    http://dl.htcdev.com/sdk/addon.xml
        Fetching URL: http://software.intel.com/sites/landingpage/android/addon.xml
        Validate XML: http://software.intel.com/sites/landingpage/android/addon.xml
        Parse XML:    http://software.intel.com/sites/landingpage/android/addon.xml
        Fetching URL: http://www.echobykyocera.com/download/echo_repository.xml
        Validate XML: http://www.echobykyocera.com/download/echo_repository.xml
        Parse XML:    http://www.echobykyocera.com/download/echo_repository.xml
        Fetching URL: http://developer.lgmobile.com/sdk/android/repository.xml
        Validate XML: http://developer.lgmobile.com/sdk/android/repository.xml
        Parse XML:    http://developer.lgmobile.com/sdk/android/repository.xml
        Fetching URL: http://android-sdk-addons.motodevupdate.com/addons.xml
        Validate XML: http://android-sdk-addons.motodevupdate.com/addons.xml
        Parse XML:    http://android-sdk-addons.motodevupdate.com/addons.xml
        Fetching URL: http://innovator.samsungmobile.com/android/repository/repository.xml
        Validate XML: http://innovator.samsungmobile.com/android/repository/repository.xml
        Parse XML:    http://innovator.samsungmobile.com/android/repository/repository.xml
        Fetching URL: http://developer.sonyericsson.com/edk/android/repository.xml
        Validate XML: http://developer.sonyericsson.com/edk/android/repository.xml
        Parse XML:    http://developer.sonyericsson.com/edk/android/repository.xml
      Refresh Sources:
        Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
        Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
      Installing Archives:
        Preparing to install archives
        Downloading Android SDK Platform-tools, revision 11
           (22%, 1087 KiB/s, 7 seconds left)
           (41%, 1354 KiB/s, 4 seconds left)
           (59%, 1468 KiB/s, 2 seconds left)
           (77%, 1537 KiB/s, 1 seconds left)
           (94%, 1565 KiB/s, 0 seconds left)
        Installing Android SDK Platform-tools, revision 11
        Stopping ADB server failed (code -1).
        Unzipping Android SDK Platform-tools, revision 11 (4%)
        Unzipping Android SDK Platform-tools, revision 11 (5%)
        Unzipping Android SDK Platform-tools, revision 11 (6%)
        Unzipping Android SDK Platform-tools, revision 11 (9%)
        Unzipping Android SDK Platform-tools, revision 11 (18%)
        Unzipping Android SDK Platform-tools, revision 11 (19%)
        Unzipping Android SDK Platform-tools, revision 11 (99%)
          Installed Android SDK Platform-tools, revision 11
        Downloading Android SDK Tools, revision 18
           (11%, 1605 KiB/s, 16 seconds left)
           (17%, 1664 KiB/s, 14 seconds left)
           (23%, 1689 KiB/s, 13 seconds left)
           (29%, 1711 KiB/s, 11 seconds left)
           (35%, 1727 KiB/s, 10 seconds left)
           (41%, 1739 KiB/s, 9 seconds left)
           (48%, 1748 KiB/s, 8 seconds left)
           (54%, 1752 KiB/s, 7 seconds left)
           (60%, 1758 KiB/s, 6 seconds left)
           (66%, 1764 KiB/s, 5 seconds left)
           (72%, 1768 KiB/s, 4 seconds left)
           (79%, 1771 KiB/s, 3 seconds left)
           (85%, 1775 KiB/s, 2 seconds left)
           (91%, 1777 KiB/s, 1 seconds left)
           (97%, 1780 KiB/s, 0 seconds left)
        Installing Android SDK Tools, revision 18
        Unzipping Android SDK Tools, revision 18 (4%)
        Unzipping Android SDK Tools, revision 18 (6%)
        Unzipping Android SDK Tools, revision 18 (11%)
        Unzipping Android SDK Tools, revision 18 (15%)
        Unzipping Android SDK Tools, revision 18 (16%)
        Unzipping Android SDK Tools, revision 18 (42%)
        Unzipping Android SDK Tools, revision 18 (43%)
        Unzipping Android SDK Tools, revision 18 (44%)
        Unzipping Android SDK Tools, revision 18 (46%)
        Unzipping Android SDK Tools, revision 18 (47%)
        Unzipping Android SDK Tools, revision 18 (49%)
        Unzipping Android SDK Tools, revision 18 (52%)
        Unzipping Android SDK Tools, revision 18 (54%)
        Unzipping Android SDK Tools, revision 18 (55%)
        Unzipping Android SDK Tools, revision 18 (59%)
        Unzipping Android SDK Tools, revision 18 (60%)
        Unzipping Android SDK Tools, revision 18 (61%)
        Unzipping Android SDK Tools, revision 18 (65%)
        Unzipping Android SDK Tools, revision 18 (66%)
        Unzipping Android SDK Tools, revision 18 (68%)
        Unzipping Android SDK Tools, revision 18 (73%)
        Unzipping Android SDK Tools, revision 18 (74%)
        Unzipping Android SDK Tools, revision 18 (75%)
        Unzipping Android SDK Tools, revision 18 (80%)
        Unzipping Android SDK Tools, revision 18 (85%)
        Unzipping Android SDK Tools, revision 18 (89%)
        Unzipping Android SDK Tools, revision 18 (90%)
        Unzipping Android SDK Tools, revision 18 (91%)
        Unzipping Android SDK Tools, revision 18 (93%)
        Unzipping Android SDK Tools, revision 18 (98%)
        Unzipping Android SDK Tools, revision 18 (99%)
          Installed Android SDK Tools, revision 18
          Stopping ADB server succeeded.
          Starting ADB server succeeded.
        Done. 2 packages installed.
      FATAL: Unable to serialize hudson.plugins.android_emulator.SdkInstaller$2@817bc3
      java.io.IOException: Unable to serialize hudson.plugins.android_emulator.SdkInstaller$2@817bc3
      	at hudson.remoting.UserRequest.serialize(UserRequest.java:166)
      	at hudson.remoting.UserRequest.<init>(UserRequest.java:62)
      	at hudson.remoting.Channel.call(Channel.java:645)
      	at hudson.plugins.android_emulator.SdkInstaller.getPlatformFromExistingEmulator(SdkInstaller.java:310)
      	at hudson.plugins.android_emulator.SdkInstaller.getPlatformForEmulator(SdkInstaller.java:294)
      	at hudson.plugins.android_emulator.SdkInstaller.installDependencies(SdkInstaller.java:173)
      	at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:246)
      	at hudson.model.Build$RunnerImpl.doRun(Build.java:133)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473)
      	at hudson.model.Run.run(Run.java:1413)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:238)
      Caused by: java.io.NotSerializableException: hudson.Launcher$RemoteLauncher
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
      	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
      	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
      	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
      	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
      	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
      	at hudson.remoting.UserRequest._serialize(UserRequest.java:155)
      	at hudson.remoting.UserRequest.serialize(UserRequest.java:164)
      	... 12 more
      

        Attachments

          Activity

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              jpkroehling Juraci P. Kroehling
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: