hudson.util.HudsonFailedToLoad: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Google Groups | gas...@gmail.com (JIRA) | 9 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

    [JIRA] (JENKINS-37449) EC2-plugin preventing Jenkins from starting if a dead instance exists

    Google Groups | 9 months ago | gas...@gmail.com (JIRA)
    hudson.util.HudsonFailedToLoad: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    Our Jenkins was failing to start when there existed a Jenkins Node corresponding to a dead EC2 instance. The stack trace said: SEVERE: Failed to initialize Jenkins hudson.util.HudsonFailedToLoad: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at hudson.WebAppMain$3.run(WebAppMain.java:237) Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:604) at java.util.ArrayList.get(ArrayList.java:382) at hudson.plugins.ec2.EC2Computer._describeInstanceOnce(EC2Computer.java:166) at hudson.plugins.ec2.EC2Computer._describeInstance(EC2Computer.java:149) at hudson.plugins.ec2.EC2Computer.describeInstance(EC2Computer.java:107) at hudson.plugins.ec2.EC2Computer.getUptime(EC2Computer.java:133) at hudson.plugins.ec2.EC2RetentionStrategy.internalCheck(EC2RetentionStrategy.java:104) at hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:85) at hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:43) at hudson.slaves.SlaveComputer$4.run(SlaveComputer.java:717) at hudson.model.Queue._withLock(Queue.java:1346) at hudson.model.Queue.withLock(Queue.java:1229) at hudson.slaves.SlaveComputer.setNode(SlaveComputer.java:714) at hudson.model.AbstractCIBase.updateComputer(AbstractCIBase.java:118) at hudson.model.AbstractCIBase.access$000(AbstractCIBase.java:44) at hudson.model.AbstractCIBase$2.run(AbstractCIBase.java:186) at hudson.model.Queue._withLock(Queue.java:1346) at hudson.model.Queue.withLock(Queue.java:1229) at hudson.model.AbstractCIBase.updateComputerList(AbstractCIBase.java:169) at jenkins.model.Jenkins.updateComputerList(Jenkins.java:1247) at jenkins.model.Jenkins.<init>(Jenkins.java:844) at hudson.model.Hudson.<init>(Hudson.java:83) at hudson.model.Hudson.<init>(Hudson.java:79) at hudson.WebAppMain$3.run(WebAppMain.java:225) Normally when an EC2 instance is destroyed while Jenkins is running, Jenkins will recover and will delete its corresponding Jenkins Node I've already fixed the problem in our Jenkins but this issue exists for sharing the patch

    Jenkins JIRA | 9 months ago | Jeff Gaston
    hudson.util.HudsonFailedToLoad: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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.
  5. 0

    IndexOutOfBounds when a select key returns no data

    GitHub | 4 years ago | emacarron
    org.apache.ibatis.executor.ExecutorException: Error selecting key or setting result to parameter object. Cause: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

  1. Reich 1 times, last 7 days ago
  2. Victor_IT 4 times, last 1 week ago
  3. batwalrus76 11 times, last 1 week ago
  4. Pilleo 6 times, last 2 weeks ago
  5. David 9 times, last 2 weeks ago
76 more registered users
19 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:604)
    2. java.util.ArrayList.get(ArrayList.java:382)
    2 frames
  3. hudson.plugins.ec2
    EC2RetentionStrategy.check
    1. hudson.plugins.ec2.EC2Computer._describeInstanceOnce(EC2Computer.java:166)
    2. hudson.plugins.ec2.EC2Computer._describeInstance(EC2Computer.java:149)
    3. hudson.plugins.ec2.EC2Computer.describeInstance(EC2Computer.java:107)
    4. hudson.plugins.ec2.EC2Computer.getUptime(EC2Computer.java:133)
    5. hudson.plugins.ec2.EC2RetentionStrategy.internalCheck(EC2RetentionStrategy.java:104)
    6. hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:85)
    7. hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:43)
    7 frames
  4. Hudson
    AbstractCIBase.updateComputerList
    1. hudson.slaves.SlaveComputer$4.run(SlaveComputer.java:717)
    2. hudson.model.Queue._withLock(Queue.java:1346)
    3. hudson.model.Queue.withLock(Queue.java:1229)
    4. hudson.slaves.SlaveComputer.setNode(SlaveComputer.java:714)
    5. hudson.model.AbstractCIBase.updateComputer(AbstractCIBase.java:118)
    6. hudson.model.AbstractCIBase.access$000(AbstractCIBase.java:44)
    7. hudson.model.AbstractCIBase$2.run(AbstractCIBase.java:186)
    8. hudson.model.Queue._withLock(Queue.java:1346)
    9. hudson.model.Queue.withLock(Queue.java:1229)
    10. hudson.model.AbstractCIBase.updateComputerList(AbstractCIBase.java:169)
    10 frames
  5. jenkins.model
    Jenkins.updateComputerList
    1. jenkins.model.Jenkins.updateComputerList(Jenkins.java:1247)
    1 frame