Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.8k views
in Java FTP by (120 points)
Hi,
I am running glub tech ftp wrapper over runab server.I am able to establish SSL connection via client libray.Now when i try to transfer a file via ServerValidatingClient.java i see the following error.The full program output is as below:
Thanks in advance!

INFO [ServerValidatingClient] 10 Oct 2004 17:11:47.496 : Creating FTPS (explicit) client
INFO [com.enterprisedt.net.ftp.ssl.SSLFTPClient] 10 Oct 2004 17:11:47.559 : Licence expiry date: 24 Nov 2004
INFO [com.enterprisedt.net.ftp.ssl.SSLFTPClient] 10 Oct 2004 17:11:47.559 : Trial licence
INFO [ServerValidatingClient] 10 Oct 2004 17:11:47.778 : Loading server certificate from C:\Papu\FTP\editftpjssl\edtftpj-ssl-1.1.4\examples\Ex2_ServerValidatingClient\signedcert.pem
INFO [puretls] 10 Oct 2004 17:11:47.825 : PureTLS debug level=0
INFO [ServerValidatingClient] 10 Oct 2004 17:11:47.825 : Connecting to server 192.168.100.30
INFO [ServerValidatingClient] 10 Oct 2004 17:11:47.903 : Switching to FTPS (explicit mode)
INFO [cryptix] 10 Oct 2004 17:11:48.106 : GLOBAL_TRACE=false
INFO [cryptix] 10 Oct 2004 17:11:48.106 : GLOBAL_DEBUG=false
INFO [cryptix] 10 Oct 2004 17:11:48.106 : GLOBAL_DEBUG_SLOW=false
INFO [ServerValidatingClient] 10 Oct 2004 17:11:48.559 : Logging in with username=APPIQManagerUser and password=APPIQManagerUser
INFO [ServerValidatingClient] 10 Oct 2004 17:11:48.559 : Setting up passive, ASCII transfers
INFO [ServerValidatingClient] 10 Oct 2004 17:11:48.559 : Directory before put:
INFO [ServerValidatingClient] 10 Oct 2004 17:11:48.809 : -rw------- 1 user group 340 Oct 8 16:52 bulkfile.txt
INFO [ServerValidatingClient] 10 Oct 2004 17:11:48.809 : -rw------- 1 user group 102318080 Oct 8 09:44 C_papu.db
INFO [ServerValidatingClient] 10 Oct 2004 17:11:48.809 : -rw------- 1 user group 51 Oct 6 17:18 touch.txt
INFO [ServerValidatingClient] 10 Oct 2004 17:11:48.809 : drw------- 3 user group 0 Oct 7 14:46 Upload
INFO [ServerValidatingClient] 10 Oct 2004 17:11:48.809 : Putting C:\Papu\FTP\editftpjssl\edtftpj-ssl-1.1.4\examples\Ex2_ServerValidatingClient\index.txt to server
com.enterprisedt.net.ftp.FTPException: Can't open data connection
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.validateTransfer(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.put(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.put(Unknown Source)
at ServerValidatingClient.main(ServerValidatingClient.java:95)
Process terminated with exit code 0

1 Answer

0 votes
by (51.6k points)
The exception that you're getting looks like it results from an error on the server. The reason I think this is that the method in which it is being thrown, i.e. FTPClient.validateReply(), is the method that is used to check server responses. In this case, the code that is being returned by the server is an error code, so an exception is thrown by FTPClient containing the error text that is returned by the server, i.e. "Can't open data connection". In other words, the error text that you see actually originates on the server not in the client.

It's possible that there's a problem with your Glub secure wrapper setup. Have you tried connecting to the server and transferring the files using an FTP client application such as FileZilla?

By the way, we have previously tested our software successfully against Glub's Secure Wrapper.

- Hans (EDT Support)

Categories

...