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

HockeyApp Plugin : ArrayIndexOutOfBoundsException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: hockeyapp-plugin
    • Labels:
      None
    • Environment:
      HockeyApp Plugin version1.1.0
    • Similar Issues:

      Description

      When ipa file not found, it cause ArrayIndexOutOfBoundsException.

      Uploading to HockeyApp...
      java.lang.ArrayIndexOutOfBoundsException: 0
      at hockeyapp.HockeyappRecorder.perform(HockeyappRecorder.java:321)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:756)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:705)
      at hudson.model.Run.execute(Run.java:1695)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:231)

        Attachments

          Activity

          Show
          sauraus Antek Baranski added a comment - Pull request: https://github.com/jenkinsci/hockeyapp-plugin/pull/24
          Hide
          orrc Christopher Orr added a comment -

          Reopening as this pull request has not been merged, nor does the PR fix all of the possible ArrayIndexOutOfBoundsExceptions.

          Show
          orrc Christopher Orr added a comment - Reopening as this pull request has not been merged, nor does the PR fix all of the possible ArrayIndexOutOfBoundsExceptions.
          Hide
          dkochetkov Denis Kochetkov added a comment -

          Corresponding Pull Request has been merged and new release prepared.
          Should be fixed in v1.1.1

          Show
          dkochetkov Denis Kochetkov added a comment - Corresponding Pull Request has been merged and new release prepared. Should be fixed in v1.1.1
          Hide
          nishij Nishij jahagirdar added a comment -

          Uploading to HockeyApp...
          java.lang.ArrayIndexOutOfBoundsException: 0
          at hockeyapp.HockeyappRecorder.perform(HockeyappRecorder.java:321)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at
          Still getting issue.
          hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
          at hudson.model.Run.execute(Run.java:1784)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:89)
          at hudson.model.Executor.run(Executor.java:240)
          Build step 'Upload to HockeyApp' marked build as failure
          Finished: FAILURE

          Show
          nishij Nishij jahagirdar added a comment - Uploading to HockeyApp... java.lang.ArrayIndexOutOfBoundsException: 0 at hockeyapp.HockeyappRecorder.perform(HockeyappRecorder.java:321) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at Still getting issue. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1784) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Build step 'Upload to HockeyApp' marked build as failure Finished: FAILURE
          Hide
          nishij Nishij jahagirdar added a comment -

          Uploading to HockeyApp...
          java.lang.ArrayIndexOutOfBoundsException: 0
          at hockeyapp.HockeyappRecorder.perform(HockeyappRecorder.java:321)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
          at hudson.model.Run.execute(Run.java:1784)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:89)
          at hudson.model.Executor.run(Executor.java:240)
          Build step 'Upload to HockeyApp' marked build as failure
          Finished: FAILURE

          Show
          nishij Nishij jahagirdar added a comment - Uploading to HockeyApp... java.lang.ArrayIndexOutOfBoundsException: 0 at hockeyapp.HockeyappRecorder.perform(HockeyappRecorder.java:321) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1784) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Build step 'Upload to HockeyApp' marked build as failure Finished: FAILURE
          Hide
          sauraus Antek Baranski added a comment -

          What version are you using? Here is the snippet of code that does the empty / 0 check, so I don't see how what you are seeing could happen:

          if (application.libsPath != null && !application.libsPath.isEmpty()) {
          FilePath remoteLibsFiles[] = remoteWorkspace.list(vars.expand(application.libsPath));
          // Take the first one that matches the pattern
          if (remoteLibsFiles.length == 0)

          { listener.getLogger().println("No LIBS found to upload in: " + vars.expand(application.libsPath)); return this.failGracefully; }
          Show
          sauraus Antek Baranski added a comment - What version are you using? Here is the snippet of code that does the empty / 0 check, so I don't see how what you are seeing could happen: if (application.libsPath != null && !application.libsPath.isEmpty()) { FilePath remoteLibsFiles[] = remoteWorkspace.list(vars.expand(application.libsPath)); // Take the first one that matches the pattern if (remoteLibsFiles.length == 0) { listener.getLogger().println("No LIBS found to upload in: " + vars.expand(application.libsPath)); return this.failGracefully; }
          Hide
          kaushikprajapati Kaushikkumar Prajapati added a comment -

          Is this fixed already? If yes, in which version it was fixed?

          Show
          kaushikprajapati Kaushikkumar Prajapati added a comment - Is this fixed already? If yes, in which version it was fixed?
          Hide
          sauraus Antek Baranski added a comment -

          It was fixed on my fork of the plugin on github.com

          Show
          sauraus Antek Baranski added a comment - It was fixed on my fork of the plugin on github.com

            People

            • Assignee:
              sauraus Antek Baranski
              Reporter:
              yana_3 yasu yana
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: