java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Spring JIRA | Hu Wei | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Reproduce Steps: 1. Executed following command: serengeti --cmdfile /home/serengeti --histsize -1 Expected Result: 1. Error message displays shows that histsize should not be minus value Current: 1. No error message displayed, enter the Serengeti interactive mode After execute a serengeti command, following exception information displays: =========================================================================== [serengeti@localhost ~]$ serengeti --histsize -1 ================================================= * _____ _ _ * * / ____| ___ _ __ ___ _ __ __ _ ___| |_(_) * * \____ \ / _ \ '__/ _ \ '_ \ / _` |/ _ \ __| | * * ____) | __/ | | __/ | | | (_| | __/ |_| | * * |_____/ \___|_| \___|_| |_|\__, |\___|\__|_| * * |___/ * * * ================================================= Verson:0.5.0 Welcome to Serengeti CLI serengeti>cluster list Exception in thread "Spring Shell" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.remove(ArrayList.java:412) at jline.History.addToHistory(History.java:96) at jline.ConsoleReader.finishBuffer(ConsoleReader.java:1200) at jline.ConsoleReader.readLine(ConsoleReader.java:625) at jline.ConsoleReader.readLine(ConsoleReader.java:457) at jline.ConsoleReader.readLine(ConsoleReader.java:283) at org.springframework.shell.JLineShell.promptLoop(JLineShell.java:457) at org.springframework.shell.JLineShell.run(JLineShell.java:144) at java.lang.Thread.run(Thread.java:636) [serengeti@localhost ~]$ ===========================================================================

    Spring JIRA | 5 years ago | Hu Wei
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    Reproduce Steps: 1. Executed following command: serengeti --cmdfile /home/serengeti --histsize -1 Expected Result: 1. Error message displays shows that histsize should not be minus value Current: 1. No error message displayed, enter the Serengeti interactive mode After execute a serengeti command, following exception information displays: =========================================================================== [serengeti@localhost ~]$ serengeti --histsize -1 ================================================= * _____ _ _ * * / ____| ___ _ __ ___ _ __ __ _ ___| |_(_) * * \____ \ / _ \ '__/ _ \ '_ \ / _` |/ _ \ __| | * * ____) | __/ | | __/ | | | (_| | __/ |_| | * * |_____/ \___|_| \___|_| |_|\__, |\___|\__|_| * * |___/ * * * ================================================= Verson:0.5.0 Welcome to Serengeti CLI serengeti>cluster list Exception in thread "Spring Shell" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.remove(ArrayList.java:412) at jline.History.addToHistory(History.java:96) at jline.ConsoleReader.finishBuffer(ConsoleReader.java:1200) at jline.ConsoleReader.readLine(ConsoleReader.java:625) at jline.ConsoleReader.readLine(ConsoleReader.java:457) at jline.ConsoleReader.readLine(ConsoleReader.java:283) at org.springframework.shell.JLineShell.promptLoop(JLineShell.java:457) at org.springframework.shell.JLineShell.run(JLineShell.java:144) at java.lang.Thread.run(Thread.java:636) [serengeti@localhost ~]$ ===========================================================================

    Spring JIRA | 5 years ago | Hu Wei
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    abstract Stepdef classes causes a crash during initialization

    GitHub | 5 years ago | avh4
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  5. 0

    Exceptions being swallowed if reported in a Hook

    GitHub | 5 years ago | dkowis
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

  1. eti22 12 times, last 3 months ago
  2. filpgame 2 times, last 4 months ago
  3. ajinkya_w 580 times, last 7 months ago
  4. rlovtangen 2 times, last 7 months ago
  5. davidvanlaatum 1 times, last 8 months ago
3 more registered users
5 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.remove
    1. java.util.ArrayList.rangeCheck(ArrayList.java:571)
    2. java.util.ArrayList.remove(ArrayList.java:412)
    2 frames
  3. SBT
    ConsoleReader.readLine
    1. jline.History.addToHistory(History.java:96)
    2. jline.ConsoleReader.finishBuffer(ConsoleReader.java:1200)
    3. jline.ConsoleReader.readLine(ConsoleReader.java:625)
    4. jline.ConsoleReader.readLine(ConsoleReader.java:457)
    5. jline.ConsoleReader.readLine(ConsoleReader.java:283)
    5 frames
  4. org.springframework.shell
    JLineShell.run
    1. org.springframework.shell.JLineShell.promptLoop(JLineShell.java:457)
    2. org.springframework.shell.JLineShell.run(JLineShell.java:144)
    2 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:636)
    1 frame