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

Oracle Community | 807553 | 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

    Exceptions in my FTP programme

    Oracle Community | 1 decade ago | 843797
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  2. 0

    StringIndexOutofBounds Exception while doing FTP operation

    Oracle Community | 1 decade ago | 807553
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JUnit Testing Utility Tutorial

    ac.uk | 1 year ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  6. 0

    JUnit Testing Utility Tutorial

    ac.uk | 8 months ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0

  1. linxiaolong 1 times, last 1 month ago
  2. jokester 1 times, last 1 month 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: 0

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:455)
    1 frame
  3. Unknown
    JEditor$FTPUpload.actionPerformed
    1. FTPConnection.getFullServerReply(FTPConnection.java:312)
    2. FTPConnection.getServerReply(FTPConnection.java:296)
    3. FTPConnection.executeCommand(FTPConnection.java:329)
    4. FTPConnection.login(FTPConnection.java:107)
    5. JEditor$FTPUpload.checkTF(JEditor.java:2755)
    6. JEditor$FTPUpload.actionPerformed(JEditor.java:2783)
    6 frames
  4. Java RT
    EventDispatchThread.run
    1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    2. javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
    3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
    6. java.awt.Component.processMouseEvent(Component.java:5021)
    7. java.awt.Component.processEvent(Component.java:4818)
    8. java.awt.Container.processEvent(Container.java:1380)
    9. java.awt.Component.dispatchEventImpl(Component.java:3526)
    10. java.awt.Container.dispatchEventImpl(Container.java:1437)
    11. java.awt.Component.dispatchEvent(Component.java:3367)
    12. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
    13. java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
    14. java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
    15. java.awt.Container.dispatchEventImpl(Container.java:1423)
    16. java.awt.Window.dispatchEventImpl(Window.java:1566)
    17. java.awt.Component.dispatchEvent(Component.java:3367)
    18. java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    19. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
    20. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
    21. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    22. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    23. java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    23 frames