java.lang.ArrayIndexOutOfBoundsException: 1

Jenkins JIRA | Russell Gallop | 4 months ago
  1. 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 >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( at org.jenkinsci.plugins.p4.PerforceScm.checkout( at hudson.scm.SCM.checkout( at hudson.model.AbstractProject.checkout( at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout( at jenkins.scm.SCMCheckoutStrategy.checkout( at hudson.model.AbstractBuild$ at hudson.model.Run.execute( at at hudson.model.ResourceController.execute( at {quote}

    Jenkins JIRA | 4 months ago | Russell Gallop
    java.lang.ArrayIndexOutOfBoundsException: 1
  2. 0

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

    Google Groups | 4 months ago | (JIRA)
    java.lang.ArrayIndexOutOfBoundsException: 1<br>
  3. 0

    ArrayIndexOutOfBounds When Splitting String

    Stack Overflow | 4 years ago | n0shadow
    java.lang.ArrayIndexOutOfBoundsException: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ArrayIndexOutOfBoundsException occurring when program running

    Stack Overflow | 4 years ago | dharma
    java.lang.ArrayIndexOutOfBoundsException: 1
  6. 0

    Parsing Data from CSV to Array in Java

    Stack Overflow | 5 years ago
    java.lang.ArrayIndexOutOfBoundsException: 1

    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


      at org.jenkinsci.plugins.p4.tasks.AbstractTask.setEnvironment()
    2. org.jenkinsci.plugins
      1. org.jenkinsci.plugins.p4.tasks.AbstractTask.setEnvironment(
      2. org.jenkinsci.plugins.p4.PerforceScm.checkout(
      2 frames
    3. Hudson
      1. hudson.scm.SCM.checkout(
      2. hudson.model.AbstractProject.checkout(
      3. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(
      3 frames
    4. jenkins.scm
      1. jenkins.scm.SCMCheckoutStrategy.checkout(
      1 frame
    5. Hudson
      1. hudson.model.AbstractBuild$
      2. hudson.model.Run.execute(
      4. hudson.model.ResourceController.execute(
      5 frames