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

Oracle Community | 843797 | 2 decades 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

    Download a file using FTP

    Oracle Community | 2 decades ago | 843797
    java.lang.StringIndexOutOfBoundsException: String index out of range: 3

    Root Cause Analysis

    1. java.lang.StringIndexOutOfBoundsException

      String index out of range: 3

      at java.lang.String.charAt()
    2. Java RT
      FtpClient.login
      1. java.lang.String.charAt(Unknown Source)
      2. sun.net.ftp.FtpClient.login(Unknown Source)
      2 frames
    3. Unknown
      TestFtp.main
      1. TestFtp.main(TestFtp.java:21)
      1 frame