org.apache.camel.component.file.GenericFileOperationFailedException

Cannot retrieve file: ../../sample/ABC.txt

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web22

  • via Unknown by Rajesh Santhanakrishnan,
  • Stack trace

    • org.apache.camel.component.file.GenericFileOperationFailedException: Cannot retrieve file: ../../sample/ABC.txt at org.apache.camel.component.file.remote.SftpOperations.retrieveFileToStreamInBody(SftpOperations.java:682) at org.apache.camel.component.file.remote.SftpOperations.retrieveFile(SftpOperations.java:628) at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:411) at org.apache.camel.component.file.remote.RemoteFileConsumer.processExchange(RemoteFileConsumer.java:137) at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:226) at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:190) at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:175) at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:102) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: inputstream is closed at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2884) at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.java:2908) at com.jcraft.jsch.ChannelSftp.access$500(ChannelSftp.java:36) at com.jcraft.jsch.ChannelSftp$2.read(ChannelSftp.java:1390) at com.jcraft.jsch.ChannelSftp$2.read(ChannelSftp.java:1340) at org.apache.camel.util.IOHelper.copy(IOHelper.java:204) at org.apache.camel.util.IOHelper.copy(IOHelper.java:169) at org.apache.camel.util.IOHelper.copyAndCloseInput(IOHelper.java:218) at org.apache.camel.util.IOHelper.copyAndCloseInput(IOHelper.java:214) at org.apache.camel.component.file.remote.SftpOperations.retrieveFileToStreamInBody(SftpOperations.java:677)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,