I seem to be having the same weird problem when connecting to my SFTP server.
The situation is as follow
I have a java.util.TtimerTask that checks for the existence of a file in a SFTP server. This happens once every minute.
Before, I had a single SFTP client that always had an open connection to the server that was used to check the existence of the file
After a request from the server administrator, the architecture of the application was changed so it creates a new client, open a connection, and closes the connection at every execution of the task.
I tried to solve the problem by keeping a single client and connecting and disconnecting in every execution, but a problem with the Quit method (issue was posted in a different topic) prevented me from achieving success with that approach.
I am getting an intermittent problem (It happens 20 times in a period of 12 hours when executing every minute) that tells me the following problem:
Tue Sep 19 09:50:09 EDT 2006 Problem configuring FTP for Datasource: HPtimesheetTest. Server: delphi
com.enterprisedt.net.j2ssh.transport.TransportProtocolException: The connection did not complete
at com.enterprisedt.net.j2ssh.transport.TransportProtocolClient.onStartTransportProtocol(Unknown Source)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.startTransportProtocol(Unknown Source)
at com.enterprisedt.net.j2ssh.SshClient.connect(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.connect(Unknown Source)
at ca.cezinc.common.general.SFtpUtilities.initConnection(SFtpUtilities.java:27)
at ca.cezinc.common.general.FtpUtilities.<init>(FtpUtilities.java:42)
at ca.cezinc.common.general.SFtpUtilities.<init>(SFtpUtilities.java:15)
at ca.cezinc.datatransfer.businessobject.FtpDataSource.initialize(FtpDataSource.java:98)
at ca.cezinc.datatransfer.DataTransferTask.run(DataTransferTask.java:92)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
I took a look in the forum and found the this topic but it did not help because at this moment there is no reason/solution posted.
I'll appreciate any feedback with this issue