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

jenkins-ci.org | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

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

    jenkins-ci.org | 7 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
    samebug tip
    Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.
  6. 0

    LinkChecker api error with malformed urlmaps

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

  1. Indri Yunita 4 times, last 2 weeks ago
  2. filpgame 4 times, last 1 week ago
  3. tyson925 3 times, last 3 weeks ago
  4. justCodeit 1 times, last 3 weeks ago
  5. Pilleo 3 times, last 3 weeks ago
69 more registered users
26 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