java.lang.ArrayIndexOutOfBoundsException: 1<br>

Google Groups | russell...@gmail.com (JIRA) | 7 months ago
  1. 0

    [JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds

    Google Groups | 7 months ago | russell...@gmail.com (JIRA)
    java.lang.ArrayIndexOutOfBoundsException: 1<br>
  2. 0

    Building multiple matrix builds (of one job) at once results in the following exception from the p4 plugin. The job is configured as: Multi-configuration project Execute concurrent builds if necessary: true p4 scm with a Manual workspace (viewname: "jenkins-$\{NODE_NAME\}\-$\{JOB_NAME\}", workspace: "//depot/tool/... //jenkins-$\{NODE_NAME\}\-$\{JOB_NAME\}/...") User-defined Axis Name: "FOO" with Values "bar baz" And a single build step executing a Windows batch command: "ping -n 10 127.0.0.1 >nul" to sleep for 10 seconds. Trigger the same job at least twice in quick succession. The first succeeds but the subsequent ones get the above exception. It appears to be a problem when the matrix per-configuration build uses the same node as the flyweight job. This is reproducible with a system with 1 executor on master. {quote} Building on master in workspace C:\jenkins\jobs\matrix_p4_multiple_executions\ws@2\FOO\bar FATAL: 1 java.lang.ArrayIndexOutOfBoundsException: 1 at org.jenkinsci.plugins.p4.tasks.AbstractTask.setEnvironment(AbstractTask.java:108) at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:312) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {quote}

    Jenkins JIRA | 7 months ago | Russell Gallop
    java.lang.ArrayIndexOutOfBoundsException: 1
  3. 0

    MaxRows is throwing ArrayIndexOutOfBoundsException

    Oracle Community | 1 decade ago | 666705
    java.lang.ArrayIndexOutOfBoundsException: 10<br>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {html}<div><p>!ENTRY com.aptana.ide.ui.io 4 2 2009-10-30 13:13:51.910 !MESSAGE Problems occurred when invoking code from plug-in: "com.aptana.ide.ui.io". !STACK 0 java.lang.ArrayIndexOutOfBoundsException: 3<br></p> <pre> <code>at org.eclipse.jface.viewers.TreePath.getSegment(TreePath.java:59) at com.aptana.ide.ui.io.navigator.DeferredTreeSelectionExpander.subTreePath(DeferredTreeSelectionExpander.java:133) at com.aptana.ide.ui.io.navigator.DeferredTreeSelectionExpander.done(DeferredTreeSelectionExpander.java:119) at org.eclipse.core.internal.jobs.JobListeners$3.notify(JobListeners.java:39) at org.eclipse.core.internal.jobs.JobListeners.doNotify(JobListeners.java:112) at org.eclipse.core.internal.jobs.JobListeners.done(JobListeners.java:152) at org.eclipse.core.internal.jobs.JobManager.endJob(JobManager.java:570) at org.eclipse.core.internal.jobs.InternalJob.done(InternalJob.java:173) at org.eclipse.core.runtime.jobs.Job.done(Job.java:225) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:108) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3404) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3101) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.aptana.radrails.rcp.IDEApplication.start(IDEApplication.java:121) at com.aptana.ide.desktop.integration.Application.start(Application.java:56) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311)</code> </pre></div>{html}

    Appcelerator JIRA | 6 years ago | Sandip Chitale
    java.lang.ArrayIndexOutOfBoundsException: 3<br></p> <pre> <code>at org.eclipse.jface.viewers.TreePath.getSegment(TreePath.java:59)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      1<br>

      at org.jenkinsci.plugins.p4.tasks.AbstractTask.setEnvironment()
    2. org.jenkinsci.plugins
      PerforceScm.checkout
      1. org.jenkinsci.plugins.p4.tasks.AbstractTask.setEnvironment(AbstractTask.java:108)
      2. org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:312)
      2 frames
    3. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.scm.SCM.checkout(SCM.java:485)
      2. hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
      3 frames
    4. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      2. hudson.model.Run.execute(Run.java:1738)
      3. hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      4. hudson.model.ResourceController.execute(ResourceController.java:98)
      5. hudson.model.Executor.run(Executor.java:410)
      5 frames