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

Expecting integer when it can be a float or even a string

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      java.lang.NumberFormatException: Could not parse 21 rc3
      at hudson.plugins.android_emulator.util.Utils.parseRevisionString(Utils.java:607)
      at hudson.plugins.android_emulator.util.Utils$2.call(Utils.java:192)
      at hudson.plugins.android_emulator.util.Utils$2.call(Utils.java:161)
      at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      at hudson.plugins.android_emulator.util.Utils.getAndroidSdk(Utils.java:201)
      at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:221)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:601)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      at hudson.model.Run.execute(Run.java:1502)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)
      project=hudson.maven.MavenModuleSet@1adea76[ZZ-Android-ZorgEnZekerheid-Test MASTER - Production]
      project.getModules()=[]
      project.getRootModule()=null
      FATAL: Could not parse 21 rc3
      java.lang.NumberFormatException: Could not parse 21 rc3
      at hudson.plugins.android_emulator.util.Utils.parseRevisionString(Utils.java:607)
      at hudson.plugins.android_emulator.util.Utils$2.call(Utils.java:192)
      at hudson.plugins.android_emulator.util.Utils$2.call(Utils.java:161)
      at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      at hudson.plugins.android_emulator.util.Utils.getAndroidSdk(Utils.java:201)
      at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:221)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:601)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      at hudson.model.Run.execute(Run.java:1502)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)

        Attachments

          Activity

          Hide
          recampbell Ryan Campbell added a comment - - edited

          We are also seeing this problem after upgrading to the latest Android SDK. We are using v2.3 of the plugin.

          The message we see is a little different, though:

          FATAL: Could not parse 21 rc4
          java.lang.NumberFormatException: Could not parse 21 rc4
          at hudson.plugins.android_emulator.util.Utils.parseRevisionString(Utils.java:607)
          at hudson.plugins.android_emulator.util.Utils$2.call(Utils.java:192)
          at hudson.plugins.android_emulator.util.Utils$2.call(Utils.java:161)

          It seems like the problem is in hudson.plugins.android_emulator.util.Utils:

          private static final Pattern REVISION = Pattern.compile("(\\d+)(?:\\.
          d+)

          {0,2}

          ");

          Show
          recampbell Ryan Campbell added a comment - - edited We are also seeing this problem after upgrading to the latest Android SDK. We are using v2.3 of the plugin. The message we see is a little different, though: FATAL: Could not parse 21 rc4 java.lang.NumberFormatException: Could not parse 21 rc4 at hudson.plugins.android_emulator.util.Utils.parseRevisionString(Utils.java:607) at hudson.plugins.android_emulator.util.Utils$2.call(Utils.java:192) at hudson.plugins.android_emulator.util.Utils$2.call(Utils.java:161) It seems like the problem is in hudson.plugins.android_emulator.util.Utils: private static final Pattern REVISION = Pattern.compile("(\\d+)(?:\\. d+) {0,2} ");
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ryan Campbell
          Path:
          src/main/java/hudson/plugins/android_emulator/util/Utils.java
          src/test/java/hudson/plugins/android_emulator/util/UtilsTest.java
          http://jenkins-ci.org/commit/android-emulator-plugin/8a76be5b8244a6735817916dcb32a0631d853ce8
          Log:
          JENKINS-15097 Deal with crazy android version strings

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ryan Campbell Path: src/main/java/hudson/plugins/android_emulator/util/Utils.java src/test/java/hudson/plugins/android_emulator/util/UtilsTest.java http://jenkins-ci.org/commit/android-emulator-plugin/8a76be5b8244a6735817916dcb32a0631d853ce8 Log: JENKINS-15097 Deal with crazy android version strings
          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/util/Utils.java
          src/test/java/hudson/plugins/android_emulator/util/UtilsTest.java
          http://jenkins-ci.org/commit/android-emulator-plugin/446247837b2bb4f72f6395e747b0f40232331a72
          Log:
          Merge pull request #15 from recampbell/master

          JENKINS-15097 Deal with crazy android version strings

          Compare: https://github.com/jenkinsci/android-emulator-plugin/compare/bcb357881bcf...446247837b2b

          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/util/Utils.java src/test/java/hudson/plugins/android_emulator/util/UtilsTest.java http://jenkins-ci.org/commit/android-emulator-plugin/446247837b2bb4f72f6395e747b0f40232331a72 Log: Merge pull request #15 from recampbell/master JENKINS-15097 Deal with crazy android version strings Compare: https://github.com/jenkinsci/android-emulator-plugin/compare/bcb357881bcf...446247837b2b
          Hide
          orrc Christopher Orr added a comment -

          Version 2.4 of the plugin was released this week, which includes this fix.

          Show
          orrc Christopher Orr added a comment - Version 2.4 of the plugin was released this week, which includes this fix.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              shusshu Benoit B
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: