Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
625 views
in CompleteFTP by (120 points)

We are randomly seeing below error in our stack. Can you please advice in which case these errors would be encountered.

com.enterprisedt.net.j2ssh.SshException: The thread was interrupted whilst waiting for a connection protocol message
   at com.enterprisedt.net.j2ssh.connection.ConnectionProtocol.sendChannelRequest(ConnectionProtocol.java:430)
   at com.enterprisedt.net.j2ssh.subsystem.SubsystemChannel.startSubsystem(SubsystemChannel.java:177)
   at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.initialize(SftpSubsystemClient.java:1038)
   at com.enterprisedt.net.j2ssh.SshClient.openSftpChannel(SshClient.java:1094)
   at com.enterprisedt.net.j2ssh.SftpClient.<init>(SftpClient.java:187)
   at com.enterprisedt.net.j2ssh.SshClient.openSftpClient(SshClient.java:982)
   at com.enterprisedt.net.j2ssh.SshClient.openSftpClient(SshClient.java:963)
   at com.enterprisedt.net.ftp.ssh.SSHFTPClient.connect(SSHFTPClient.java:944)
   at companyx.tk.util.ftp.connector.TRINGTRINGSFTPConnector.connectToRead(TRINGTRINGSFTPConnector.java:92)
   at companyx.tk.util.ftp.connector.TRINGTRINGSFTPConnector.connect(TRINGTRINGSFTPConnector.java:468)
   at companyx.tk.util.interfaces.TRINGTRINGSFTPReceiverIEAdapter.init(TRINGTRINGSFTPReceiverIEAdapter.java:76)
   at companyx.tk.util.TRINGTRINGIEAdapterConfig.timerRun(TRINGTRINGIEAdapterConfig.java:102)
   at com.calypso.tk.util.Timer.run(Timer.java:100)
   at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.InterruptedException
   at java.lang.Object.wait(Native Method)
   at com.enterprisedt.net.j2ssh.transport.SshMessageStore.getMessage(SshMessageStore.java:176)
   at com.enterprisedt.net.j2ssh.connection.ConnectionProtocol.sendChannelRequest(ConnectionProtocol.java:410)
   ... 13 more

1 Answer

0 votes
by (51.6k points)

If you enable logging, you should see a message something like the below immediately before the exception is thrown:

Timeout expired waiting for server response

So this indicates that the client failed to receive a response from the server within the timeout period.  If you have access to the server logs, then I suggest checking in there for clues.

by (162k points)
The timeout parameter is set via the setTimeout() method.
by (120 points)
Thanks team for this information.

Categories

...