Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in Java FTP by (51.2k points)
E-mail from edtFTPj user:
We are using Version 1.5.5 (30 May, 2007) and occasionally get the following exception:
java.lang.StringIndexOutOfBoundsException: String index out of range: -13
        at java.lang.String.substring(Unknown Source)
        at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocketPASV(FTPControlSocket.java:670)
        at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocket(FTPControlSocket.java:450)
        at com.enterprisedt.net.ftp.FTPClient.setupDataSocket(FTPClient.java:1726)
        at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:2507)
        at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:2490)


This is probably because the server is returning an unexpected reply to the PASV command. Could you please enable logging and reply to this message including the part of the log where the PASV command, so that we can see what the server reply was. That should make it easy to fix it.

- Hans (EnterpriseDT)

Please log in or register to answer this question.

Categories

...