wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes sftp poll activity intermittently fails to pick up files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "sftp poll activity intermittently fails to pick up files " Watch "sftp poll activity intermittently fails to pick up files " New topic
Author

sftp poll activity intermittently fails to pick up files

Michael Rodman
Greenhorn

Joined: Oct 02, 2013
Posts: 6
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
Ranch Hand

Joined: Aug 27, 2012
Posts: 963
    
  10

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).
 
wood burning stoves
 
subject: sftp poll activity intermittently fails to pick up files
 
Similar Threads
MDB Listeners down
connectivity problem
Axis errors, SocketException
NX: URLy Bird 1.3.1 Explicit Fatal Exception Handling
Error connecting to local host