• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

sftp poll activity intermittently fails to pick up files

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1166
17
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
reply
    Bookmark Topic Watch Topic
  • New Topic