Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
10.3k views
in Java FTP by (160 points)
I am trying to use FTPClient on a Sun station. I started off using Commons Net, but found a major, debilitating bug in it. I did some initial testing with edtftpd 1.3.0 on Windows 2000, and was much more successful, but now that I am writing the real code that I need to run, I am doing it on a Sun station using jdk 1.4.2_03. My code is hanging on

ftp = new FTPClient(server);


Even when I hard code the server address, it fails. Has edtftpj been tested on Solaris? Has anyone been successful using it on Solaris?

Thanks for your help,

David

6 Answers

0 votes
by
Hi David

Yes, there should be no problem with Solaris. The client site I'm working on has been using edtFTPj on Solaris for years in a number of applications. However, they are not using 1.3.0. I'll upgrade one of their applications to 1.3.0 and check it still works ok to make sure.

Also, make sure you can FTP the host from the command-line using the same hostname.

I am trying to use FTPClient on a Sun station. I started off using Commons Net, but found a major, debilitating bug in it. I did some initial testing with edtftpd 1.3.0 on Windows 2000, and was much more successful, but now that I am writing the real code that I need to run, I am doing it on a Sun station using jdk 1.4.2_03. My code is hanging on

ftp = new FTPClient(server);


Even when I hard code the server address, it fails. Has edtftpj been tested on Solaris? Has anyone been successful using it on Solaris?

Thanks for your help,

David
0 votes
by (160 points)
Thanks for your help. I found that my bug was in another piece of the project. edtftpj worked perfectly on Solaris.

David
0 votes
by
Hello,

I have been using the edtFTPj library in my java program. So far we have been FTPing from windows and linux servers, and everything has been fine.

However recently we moved to another environment and the FTP server is Sun's (runs on Sun Solaris). Now the library always gives errors like:

com.enterprisedt.net.ftp.FTPException: 'CWD ': command not understood.
at
com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:542)
at com.enterprisedt.net.ftp.FTPClient.chdir(FTPClient.java:1372)
0 votes
by (161k points)
You should upgrade to the latest version.

However it *may* be that the FTP server you are connecting to is restricted in what it permits/implements.

MTDM is a command not supported by all FTP servers. However CWD should be implemented.

Try connecting via a command line client, turn on debugging via 'debug' and try cd'ing to the same dir you wish to cd to in the program.

Hello,

I have been using the edtFTPj library in my java program. So far we have been FTPing from windows and linux servers, and everything has been fine.

However recently we moved to another environment and the FTP server is Sun's (runs on Sun Solaris). Now the library always gives errors like:

com.enterprisedt.net.ftp.FTPException: 'CWD ': command not understood.
at
com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:542)
at com.enterprisedt.net.ftp.FTPClient.chdir(FTPClient.java:1372)
0 votes
by
Thanks for your response. However I still see the same problem.

I have upgraded to the latest library (1.4.5). Also, I can manually login into the FTP server and do a cd, it works. Though modtime still fails, perhaps it's not implemented.

However I'm still at a loss to explain why cd from edtFTPj fails. Any ideas?

Thanks.
0 votes
by (161k points)
What happens when you cd from a command line FTP client?

Yes, some servers don't implement modtime.

Thanks for your response. However I still see the same problem.

I have upgraded to the latest library (1.4.5). Also, I can manually login into the FTP server and do a cd, it works. Though modtime still fails, perhaps it's not implemented.

However I'm still at a loss to explain why cd from edtFTPj fails. Any ideas?

Thanks.

Categories

...