Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.2k views
in Java FTP by (160 points)
Hi, I am having an issue with the SSHFTPClient. I am having two j2ee applications (on the same application server), which trying (every minute) to connect to a SFTP server, but only one is successfully connected. The second application return: com.enterprisedt.net.j2ssh.transport.TransportProtocolException: The connection did not complete. Both applications create own instance the SSHFTPClient and in the finally block call the quit method.
It's seems same as http://www.enterprisedt.com/forums/view ... ight=#4069
Thanks for helping

3 Answers

0 votes
by (162k points)
In previous instances this has been because of too many simultaneous connections to the SSH server. Are you connecting multiple times in your applications?
0 votes
by (160 points)
Yes, I may have at most two simultaneous connectios. Each application uses a j2ee timer bean, that connect to the server every minute.
0 votes
by (162k points)
Perhaps there is some server limitation - if a single connection works fine, perhaps it is not permitting multiple connections.

Also, is it possible that the number of connections are building up, i.e. before one operation is complete, your timer is triggering another connection and so on?

You should probably only set the timer at the completion of your operation rather than every minute.

Categories

...