Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sftp poll activity intermittently fails to pick up files

 
Michael Rodman
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

we use jscape secure inet factory for sftp connection implementation for activities like poll ,put,get ,list,delete activities.

But twice a week SFTP activity fails to get the files which used poll activity and the following error

The following errors were seen when the issue happened!

Unable to connect to the server "SFTP_SEVRVER" after 5 attempts. Error is: null

Caused by: com.jscape.inet.sftp.SftpException
at com.jscape.inet.sftp.SftpConfiguration.createClient(Unknown Source)
at com.jscape.inet.sftp.Sftp.connect(Unknown Source)
at com.jscape.inet.sftp.Sftp.connect(Unknown Source)
at com.approuter.module.ftp.protocol.SftpConnectionImpl.<init>(SftpConnectionImpl.java:91)
... 13 more
Caused by: java.io.IOException
at com.jscape.inet.util.TimedSocket.a(Unknown Source)
at com.jscape.inet.util.TimedSocket.getSocket(Unknown Source)
at com.jscape.inet.util.TimedSocket.getSocket(Unknown Source)
at com.jscape.inet.util.ConnectionParameters.d(Unknown Source)
at com.jscape.inet.util.ConnectionParameters.createSocket(Unknown Source)
at com.jscape.inet.ssh.transport.TransportClient.<init>(Unknown Source)
at com.jscape.inet.ssh.SshConfiguration.createConnectionClient(Unknown Source)
at com.jscape.inet.ssh.SshStandaloneConnector.openConnection(Unknown Source)
... 17 more


Caused by: com.jscape.inet.sftp.SftpException: Read timed out
at com.jscape.inet.sftp.SftpConfiguration.createClient(Unknown Source)
at com.jscape.inet.sftp.Sftp.connect(Unknown Source)
at com.jscape.inet.sftp.Sftp.connect(Unknown Source)
at com.approuter.module.ftp.protocol.SftpConnectionImpl.<init>(SftpConnectionImpl.java:91)
... 13 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:140)
at java.net.SocketInputStream.read(SocketInputStream.java:193)
at com.jscape.inet.ssh.util.ReadUtil.read(Unknown Source)
at com.jscape.inet.ssh.util.ReadUtil.readLine(Unknown Source)
at com.jscape.inet.ssh.transport.ProtocolVersion.readFrom(Unknown Source)
at com.jscape.inet.ssh.transport.Transport.initProtocol(Unknown Source)
at com.jscape.inet.ssh.transport.TransportClient.<init>(Unknown Source)
at com.jscape.inet.ssh.transport.TransportClient.<init>(Unknown Source)
at com.jscape.inet.ssh.SshConfiguration.createConnectionClient(Unknown Source)
at com.jscape.inet.ssh.SshStandaloneConnector.openConnection(Unknown Source)
... 17 more


Please let us know why this issue is happening INTERMITTENTLY and how to prevent it ?

Thanks in advance
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know why you are getting the exception and without access to your system I doubt if anyone here or even at 'jscape' is going to be able to tell you. I would expect your code to be defensive and whenever an exception occurs that could be network related I would expect it try the operation again (maybe after a short delay).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic