FTP through consumer template receiving only one file
ashutosh700 Jan 14, 2014 5:03 AMI am doing a FTP through consumer template and it is receiving only one file from specified folder. I am not sure why it is not pulling all the files that match file name pattern?I get socket closed exception while sending 2nd file
014-01-14 21:00:59,098 | WARN | 7.0.0.1:21/input | FtpConsumer | ? ? | 130 - org.apache.camel.camel-cor
- 2.10.0.redhat-60024 | Error processing file RemoteFile[read141.txt] due to File operation failed: Software caused connection abort: recv failed. Code: 221.
Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - File operation failed: Software caused connection abort: recv failed. Code:
21]
rg.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: Software caused connection abort: recv failed. Code: 221
at org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:702)[199:org.apache.camel.camel-ftp:2.10.0.redhat-60024]
at org.apache.camel.component.file.remote.FtpOperations.changeCurrentDirectory(FtpOperations.java:668)[199:org.apache.camel.camel-ftp:2.10.0.redhat-6002
]
at org.apache.camel.component.file.remote.FtpOperations.retrieveFileToStreamInBody(FtpOperations.java:334)[199:org.apache.camel.camel-ftp:2.10.0.redhat-
0024]
at org.apache.camel.component.file.remote.FtpOperations.retrieveFile(FtpOperations.java:299)[199:org.apache.camel.camel-ftp:2.10.0.redhat-60024]
at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:317)[130:org.apache.camel.camel-core:2.10.0.redhat-60024
at org.apache.camel.component.file.remote.RemoteFileConsumer.processExchange(RemoteFileConsumer.java:92)[199:org.apache.camel.camel-ftp:2.10.0.redhat-60
24]
at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:189)[130:org.apache.camel.camel-core:2.10.0.redhat-60024]
at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:155)[130:org.apache.camel.camel-core:2.10.0.redhat-60024]
at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:142)[130:org.apache.camel.camel-core:2.10.0.redhat-60024]
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:92)[130:org.apache.camel.camel-core:2.10.0.redhat-60024]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_37]
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_37]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_37]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_37]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_37]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_37]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_37]
aused by: java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)[:1.6.0_37]
at java.net.SocketInputStream.read(SocketInputStream.java:129)[:1.6.0_37]
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)[:1.6.0_37]
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)[:1.6.0_37]
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)[:1.6.0_37]
at java.io.InputStreamReader.read(InputStreamReader.java:167)[:1.6.0_37]
at java.io.BufferedReader.fill(BufferedReader.java:136)[:1.6.0_37]
at java.io.BufferedReader.read(BufferedReader.java:157)[:1.6.0_37]