We are able to upload and download files. Camel is scheduled to run every hour. And for every alternative run I'm getting this issue.
I can connect and navigate to folders using WinScp without any issue. Thanks, On 17 Jul 2014, at 6:12 pm, "Robert Rich [via Camel]" <[email protected]<mailto:[email protected]>> wrote: Have you checked the log on your SFTP server? Caused by: java.io.IOException: Pipe closed at java.io.PipedInputStream.read(Unknown Source) This seems like it might be an error in the server. -----Original Message----- From: sreejeb2 [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=5753952&i=0>] Sent: Thursday, July 17, 2014 3:16 AM To: [hidden email]</user/SendEmail.jtp?type=node&node=5753952&i=1> Subject: Cannot list directory error from SFTP route Hi All, I'm using camel 2.13.0 for doing an SFTP file transfer. Camel works fine with downloading and uploading the files. But occasionally I get the following error. Can someone be able to help on this? Appreciate your help. EXCEPTION: Cannot list directory: XXXX STACK TRACE: org.apache.camel.component.file.GenericFileOperationFailedException: Cannot list directory: XXXX at org.apache.camel.component.file.remote.SftpOperations.listFiles(SftpOperations.java:583) at org.apache.camel.component.file.remote.SftpConsumer.doPollDirectory(SftpConsumer.java:90) at org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(SftpConsumer.java:52) at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:117) at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187) at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.runAndReset(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: 4: at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1721) at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1527) at org.apache.camel.component.file.remote.SftpOperations.listFiles(SftpOperations.java:574) ... 12 more Caused by: java.io.IOException: Pipe closed at java.io.PipedInputStream.read(Unknown Source) at com.jcraft.jsch.Channel$MyPipedInputStream.updateReadSide(Channel.java:344) at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1544) Cheers, -- View this message in context: http://camel.465427.n5.nabble.com/Cannot-list-directory-error-from-SFTP-route-tp5753948.html Sent from the Camel - Users mailing list archive at Nabble.com<http://Nabble.com>. ________________________________ If you reply to this email, your message will be added to the discussion below: http://camel.465427.n5.nabble.com/Cannot-list-directory-error-from-SFTP-route-tp5753948p5753952.html To unsubscribe from Cannot list directory error from SFTP route, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5753948&code=c3JlZWppdGguZ29waW5hdGhhbkBsdW1vZW5lcmd5LmNvbS5hdXw1NzUzOTQ4fC03MTU1MjI5OTM=>. NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ________________________________ This email, including any attachments, is confidential. If you are not the intended recipient please notify the sender immediately and please delete it; note that any disclosure, copying, distribution or use of the contents of this email (and attachment) is prohibited. ________________________________ This email, including any attachments, is confidential. If you are not the intended recipient please notify the sender immediately and please delete it; note that any disclosure, copying, distribution or use of the contents of this email (and attachment) is prohibited. -- View this message in context: http://camel.465427.n5.nabble.com/Cannot-list-directory-error-from-SFTP-route-tp5753948p5753954.html Sent from the Camel - Users mailing list archive at Nabble.com.
