java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

jenkins-ci.org | 4 months ago
  1. 0

    [JENKINS-17257] EC2 plugin fails to launch slave (IndexOutOfBoundsException) - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    Using the latest dev version of the EC2 plugin from GitHub, the launching of slaves sometimes fails due to an {{IndexOutOfBoundsException}}. Relevant stack trace from Jenkins logs: {noformat}WARNING: Provisioned slave QIIME 1.6.0 AMI (Ubuntu 64-bit) (ami-10b12f79) failed to launch java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at hudson.plugins.ec2.EC2Cloud$1.call(EC2Cloud.java:344) at hudson.plugins.ec2.EC2Cloud$1.call(EC2Cloud.java:329) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.get(ArrayList.java:349) at hudson.plugins.ec2.EC2Computer._describeInstanceOnce(EC2Computer.java:142) at hudson.plugins.ec2.EC2Computer._describeInstance(EC2Computer.java:125) at hudson.plugins.ec2.EC2Computer.getState(EC2Computer.java:101) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:56) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:222) ... 5 more{noformat} This results in a disconnected node (from Jenkins' point of view) but the instance is still running on Amazon EC2. The Jenkins logs indicate that the slave is idle, but it is never terminated by the EC2 plugin, even though I have the idle termination time set to 10 minutes: {noformat}... QIIME 1.6.0 AMI (Ubuntu 64-bit) (i-54fb093e) idle: 32412220 QIIME 1.6.0 AMI (Ubuntu 64-bit) (i-54fb093e) idle: 32532221 ...{noformat} Other slaves using the same AMI are automatically launched just fine after this failure occurs.

    Jenkins JIRA | 4 years ago | Jai Ram Rideout
    java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  3. 0

    Using the latest dev version of the EC2 plugin from GitHub, the launching of slaves sometimes fails due to an {{IndexOutOfBoundsException}}. Relevant stack trace from Jenkins logs: {noformat}WARNING: Provisioned slave QIIME 1.6.0 AMI (Ubuntu 64-bit) (ami-10b12f79) failed to launch java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at hudson.plugins.ec2.EC2Cloud$1.call(EC2Cloud.java:344) at hudson.plugins.ec2.EC2Cloud$1.call(EC2Cloud.java:329) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.get(ArrayList.java:349) at hudson.plugins.ec2.EC2Computer._describeInstanceOnce(EC2Computer.java:142) at hudson.plugins.ec2.EC2Computer._describeInstance(EC2Computer.java:125) at hudson.plugins.ec2.EC2Computer.getState(EC2Computer.java:101) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:56) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:222) ... 5 more{noformat} This results in a disconnected node (from Jenkins' point of view) but the instance is still running on Amazon EC2. The Jenkins logs indicate that the slave is idle, but it is never terminated by the EC2 plugin, even though I have the idle termination time set to 10 minutes: {noformat}... QIIME 1.6.0 AMI (Ubuntu 64-bit) (i-54fb093e) idle: 32412220 QIIME 1.6.0 AMI (Ubuntu 64-bit) (i-54fb093e) idle: 32532221 ...{noformat} Other slaves using the same AMI are automatically launched just fine after this failure occurs.

    Jenkins JIRA | 4 years ago | Jai Ram Rideout
    java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    LinkChecker api error with malformed urlmaps

    GitHub | 4 years ago | dotjorgeu
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  6. 0

    java.io.IOException: Failed to patch

    GitHub | 3 years ago | tibeT7
    java.io.IOException: Failed to patch /var/lib/jenkins/jobs/reviewboard-test/workspace/trunk/PhabricatorTest/2.txt

  1. bmacedo 4 times, last 2 days ago
  2. mhicauber 1 times, last 2 days ago
  3. filpgame 2 times, last 5 days ago
  4. tvrmsmith 1 times, last 6 days ago
  5. Indri Yunita 12 times, last 6 days ago
67 more registered users
28 unregistered visitors
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.IndexOutOfBoundsException

    Index: 0, Size: 0

    at java.util.ArrayList.rangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.rangeCheck(ArrayList.java:571)
    2. java.util.ArrayList.get(ArrayList.java:349)
    2 frames
  3. hudson.plugins.ec2
    EC2ComputerLauncher.launch
    1. hudson.plugins.ec2.EC2Computer._describeInstanceOnce(EC2Computer.java:142)
    2. hudson.plugins.ec2.EC2Computer._describeInstance(EC2Computer.java:125)
    3. hudson.plugins.ec2.EC2Computer.getState(EC2Computer.java:101)
    4. hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:56)
    4 frames
  4. Hudson
    SlaveComputer$1.call
    1. hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:222)
    1 frame
  5. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    5. java.lang.Thread.run(Thread.java:679)
    5 frames