I have never seen the exception when downloading some file.
com.enterprisedt.net.ftp.FTPException: OOPS: vsf_sysutil_bind
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:1068)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocketPASV(FTPControlSocket.java:730)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocket(FTPControlSocket.java:505)
at com.enterprisedt.net.ftp.FTPClient.setupDataSocket(FTPClient.java:2217)
at com.enterprisedt.net.ftp.FTPClient.initGet(FTPClient.java:2579)
at com.enterprisedt.net.ftp.FTPClient.getData(FTPClient.java:2639)
at com.enterprisedt.net.ftp.FTPClient.get(FTPClient.java:2487)
The code as follows:
FTPClient ftp=new FTPClient();
ftp.setRemoteHost(IP);
ftp.setRemotePort(intPort);
ftp.connect();
ftp.login(user, pwd);
ftp.setType(FTPTransferType.BINARY);
ftp.get(sourcefile, destfile);
....
why? I find the sourcefile existed in the source machine and can be downloaded using ftp command.