java.lang.StringIndexOutOfBoundsException: String index out of range: 21835

Oracle Community | 807577 | 1 decade 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

    Couting words/sentences in a jTextArea

    Oracle Community | 1 decade ago | 807577
    java.lang.StringIndexOutOfBoundsException: String index out of range: 21835
  2. 0
    samebug tip
    Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.
  3. 0

    java.lang.StringIndexOutOfBoundsException: String index out of range: 49

    Oracle Community | 2 decades ago | 843829
    java.lang.StringIndexOutOfBoundsException: String index out of range: 49
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    StringIndexOutOfBoundsException when attempting to view some classes

    Eclipse Bugzilla | 1 decade ago | william.whittle
    java.lang.StringIndexOutOfBoundsException: String index out of range: 21
  6. 0

    Sometimes impl. gen. show exception dialog

    Netbeans Bugzilla | 2 decades ago | issues
    java.lang.StringIndexOutOfBoundsException: String index out of range: 4002

  1. linxiaolong 1 times, last 1 month ago
  2. jokester 1 times, last 2 months ago
  3. tyson925 1 times, last 2 months ago
  4. Torasque 1 times, last 3 months ago
  5. Hronom 32257 times, last 3 months ago
11 more registered users
18 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.StringIndexOutOfBoundsException

    String index out of range: 21835

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:516)
    1 frame
  3. pda
    MainView$5.actionPerformed
    1. pda.MainView.BTNRunTest_actionPerformed(MainView.java:329)
    2. pda.MainView$5.actionPerformed(MainView.java:167)
    2 frames
  4. Java RT
    EventDispatchThread.run
    1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
    2. javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
    3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
    4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
    5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
    6. java.awt.Component.processMouseEvent(Component.java:3715)
    7. java.awt.Component.processEvent(Component.java:3544)
    8. java.awt.Container.processEvent(Container.java:1164)
    9. java.awt.Component.dispatchEventImpl(Component.java:2593)
    10. java.awt.Container.dispatchEventImpl(Container.java:1213)
    11. java.awt.Component.dispatchEvent(Component.java:2497)
    12. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
    13. java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
    14. java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
    15. java.awt.Container.dispatchEventImpl(Container.java:1200)
    16. java.awt.Window.dispatchEventImpl(Window.java:914)
    17. java.awt.Component.dispatchEvent(Component.java:2497)
    18. java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
    19. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
    20. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
    21. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    22. java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    22 frames