Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.1k views
in Java FTP by
Hi,

I've encountered exceptions while renaming, or getting the remote filename with "-" (dash or minus sign) character.

Ex. 211_2003_2244_2004-08-10_17-15-00.zip

Thanks in advance!

6 Answers

0 votes
by (162k points)
Can you post the log file and stack trace?

Hi,

I've encountered exceptions while renaming, or getting the remote filename with "-" (dash or minus sign) character.

Ex. 211_2003_2244_2004-08-10_17-15-00.zip

Thanks in advance!
0 votes
by
this occur when the remote file contains "-" character in the filename.

rename() and get() Exception:

com.enterprisedt.net.ftp.FTPException: Connection closed; transfer aborted.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:723)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocketPASV(FTPControlSocket.java:444)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocket(FTPControlSocket.java:336)
at com.enterprisedt.net.ftp.FTPClient.initGet(FTPClient.java:1640)
at com.enterprisedt.net.ftp.FTPClient.getBinary(FTPClient.java:1866)
at com.enterprisedt.net.ftp.FTPClient.get(FTPClient.java:1596)

Hope this helps!
Thanks
0 votes
by
Another thing, dirDetails(), returns empty FTPFile[] whenever i tried to change directory with "-" character on the directory name.
This does not return exceptions.

For example the directory i want get in is /ac-new,
The server response is "/ac": Directory or file not found

Thanks!
0 votes
by (162k points)
Does changing into this directory using ftp.exe work correctly?
0 votes
by
I can access the directory and manipulate the files inside that folder (rename, delete, get, etc) using the console and gui based ftp app.
0 votes
by (162k points)
Weird, can you post the log file so we can see what is being sent back & forth?

I can access the directory and manipulate the files inside that folder (rename, delete, get, etc) using the console and gui based ftp app.

Categories

...