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

Jenkins JIRA | Jeff Gaston | 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

    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 | 7 months ago | Jeff Gaston
    hudson.util.HudsonFailedToLoad: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

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

    Google Groups | 7 months ago | gas...@gmail.com (JIRA)
    hudson.util.HudsonFailedToLoad: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Build failure with the latest git code

    GitHub | 4 years ago | sanjana-bhat
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  6. 0

    Mule EventCorrelator IndexOutOfBoundsException

    Stack Overflow | 3 years ago | Tashani Kathriarachchi
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

  1. Indri Yunita 4 times, last 2 weeks ago
  2. filpgame 4 times, last 2 weeks ago
  3. tyson925 3 times, last 4 weeks ago
  4. justCodeit 1 times, last 4 weeks ago
  5. Pilleo 3 times, last 4 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: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.<init>
    1. jenkins.model.Jenkins.updateComputerList(Jenkins.java:1247)
    2. jenkins.model.Jenkins.<init>(Jenkins.java:844)
    2 frames
  6. Hudson
    WebAppMain$3.run
    1. hudson.model.Hudson.<init>(Hudson.java:83)
    2. hudson.model.Hudson.<init>(Hudson.java:79)
    3. hudson.WebAppMain$3.run(WebAppMain.java:225)
    3 frames