Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.6k views
in Java FTP by (160 points)
Hi,

I am currently evaluating ftpj for a ftps solution.
However there is a strange thing, on my dev machine (a windows xp) i could connect and change directory without any problem.

However, the same code on a UNIX Tru64 machine throws an exception:
com.enterprisedt.net.ftp.FTPException: Command not implemented

Any idea what went wrong?

Thx.


INFO [com.balcan.fin.ftpj.UseFTPSWithoutServerValidation] 3 Mar 2008 15:25:55.441 : Creating FTPS (explicit) client
INFO [SSLFTPClient] 3 Mar 2008 15:25:55.536 : edtFTPj - PRO version
INFO [LicensePropertiesBase] 3 Mar 2008 15:25:55.650 : Licence expiry date: 13 Apr 2008
INFO [LicensePropertiesBase] 3 Mar 2008 15:25:55.651 : Trial licence
INFO [puretls] 3 Mar 2008 15:25:55.776 : PureTLS debug level=0
INFO [com.balcan.fin.ftpj.UseFTPSWithoutServerValidation] 3 Mar 2008 15:25:55.804 : Setting configuration flags
INFO [com.balcan.fin.ftpj.UseFTPSWithoutServerValidation] 3 Mar 2008 15:25:55.805 : Setting remote host
INFO [com.balcan.fin.ftpj.UseFTPSWithoutServerValidation] 3 Mar 2008 15:26:01.481 : Turning off server validation
INFO [com.balcan.fin.ftpj.UseFTPSWithoutServerValidation] 3 Mar 2008 15:26:01.482 : Connecting to server ftpssl.rbc.com
INFO [com.balcan.fin.ftpj.UseFTPSWithoutServerValidation] 3 Mar 2008 15:26:02.83 : Switching to FTPS (explicit mode)
INFO [com.balcan.fin.ftpj.UseFTPSWithoutServerValidation] 3 Mar 2008 15:26:02.84 : method=SSL
INFO [FTPControlSocket] 3 Mar 2008 15:26:02.117 : Expected reply codes = [234,334,200]
com.enterprisedt.net.ftp.FTPException: Command not implemented.
        at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(com.enterprisedt.net.ftp.FTPReply,java.lang.String[]) (pc 118)
        at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(java.lang.String) (pc 119)
        at com.balcan.fin.ftpj.test.ftps(java.lang.String,java.lang.String,java.lang.String) (test.java:58) (pc 135)
        at com.balcan.fin.ftpj.test.main         (test.java:198)         (pc 36)

3 Answers

0 votes
by (162k points)
The log file (see the manual) will tell you more, but it looks like that server doesn't support FTPS, only FTP.
0 votes
by (160 points)
like i said before, the server support ftps, i could connect from my pc (windows xp) to ftpssl server and change directory.

ftpj@windows xp ---> ftpssl = ok

now, since it is a java code, i copy all the class + the library to a tru64 unix machine and run it with the same jvm 1.3
however ftpssl server rejects the request from unix.

ftpj@tru64 unix --> ftpssl = rejected

i think there is a bug in ftp.auth method, because the way of unix threating CR LF is different with windows

this is the method i use

ftp.auth(SSLFTPClient.AUTH_SSL);

or 

ftp.auth("SSL");
0 votes
by (51.6k points)
I think the best way to solve this is for us to view the logs of identical tests from the Windows machine and the UNIX machine. So if possible, please run your test app on the UNIX machine with the debugging level set to ALL, then run the same application on the Windows machine, then e-mail both logs to us at support@enterprisedt.com.

- Hans (EnterpriseDT)

Categories

...