Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.2k views
in Java FTP by (400 points)
Hello,

I've a process that download files from an FTP Server over SSL.

Started on Windows XP Home everything works perfectly. On Windows 2000 Server, the process always blocks at the end a the dowload. It does'nt block always at the end of the same file or after the same time.
Both works on j2sdk 1.4.0

I've tried to close the connection and reconnect after each file but it does'nt help.

Here my init code :

private void initFtp()
{
mFtp = new SSLFTPClient();
mFtp.setConfigFlags(
SSLFTPClient.ConfigFlags.DISABLE_CONTROL_WAIT_ON_CLOSE +
SSLFTPClient.ConfigFlags.DISABLE_SSL_CLOSURE +
SSLFTPClient.ConfigFlags.START_WITH_CLEAR_DATA_CHANNELS);
mFtp.setRemoteHost("ftp.xxx.xx");
mFtp.setRemotePort(990);
mFtp.setValidateServer(false);
mFtp.connect();
mFtp.auth(SSLFTPClient.AUTH_TLS);
mFtp.login(username, pwd);
mFtp.setConnectMode(com.enterprisedt.net.ftp.FTPConnectMode.PASV);
mFtp.setType(FTPTransferType.ASCII);
}

and the code download:

initFtp();
mFtp.get(localFileName, fileName);
mFtp.quit();


Thx in advance for your help

Cedric

14 Answers

0 votes
by (51.4k points)
Just for an experiment, try setting the timeout to, say, 5000 ms. Also, in the Developer's Guide you'll find instructions on enablind Cryptix and PureTLS logging. Could you please enable both of these and e-mail a (zipped) copy of the resulting log to support@enterpri...

- Hans (EDT)
0 votes
by (51.4k points)
Would it be possible for us to access a test account on this server? If so, could you please e-mail us the account details.

- Hans (EDT)
0 votes
by (400 points)
Hi Hans,

- I've lauched the process with jdk 1.5. Same problem.
- I've tried to switch on the logs as I asked but it does'nt seem to do anything.

Here what I did in the main function (first lines):

FileInputStream propFile = new FileInputStream("c:\\myProperties.txt");
Properties p = new Properties(System.getProperties());
p.load(propFile);
System.setProperties(p);
System.getProperties().list(System.out);

And myProperties files :

edtftp.log.cryptix.trace=true
edtftp.log.cryptix.debug=true
edtftp.log.cryptix.slowdebug=true
edtftp.log.puretls.level=256

Something wrong?

Thx
Cedric
0 votes
by (400 points)
Hi Hans,

- What timeout do you mean I've to set to 5000ms?

- I'll ask if it's possible to have a test account on this server;

C.

Categories

...