Hello, 

we have configured FTP input uri like this:

ftp://x...@xxx.xxx.xxx.xxx:21/CAMT/New?password=xxxxxx&move=../Processed/${file:name.noext}_${date:now:yyyyMMdd_HH_mm_ss_SSS}.${file:name.ext}&moveFailed=../Error&localWorkDirectory=/opt/jao/ftptmp&readLock=changed&readLockCheckInterval=500&disconnect=true

Approximatelly 6 min after start of the jboss we can see these in the log
file. And approximatelly after one day FTP consumer stops consuming files
from FTP. We do not now if the exception listed below is connected with stop
consuming, but this is our only one clue. We found no other errors in the
log files.

thread #3 - Will try again at next poll. Caused by:
[org.apache.camel.component.file.GenericFileOperationFailedException - File
operation failed:  Connection reset. Code: 200]
org.apache.camel.component.file.GenericFileOperationFailedException: File
operation failed:  Connection reset. Code: 200
        at
org.apache.camel.component.file.remote.FtpOperations.listFiles(FtpOperations.java:796)
~[camel-ftp-2.15.2.jar:2.15.2]
        at
org.apache.camel.component.file.remote.FtpConsumer.doPollDirectory(FtpConsumer.java:92)
~[camel-ftp-2.15.2.jar:2.15.2]
        at
org.apache.camel.component.file.remote.FtpConsumer.pollDirectory(FtpConsumer.java:54)
~[camel-ftp-2.15.2.jar:2.15.2]
        at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:119)
~[camel-core-2.15.2.jar:2.15.2]
        at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174)
[camel-core-2.15.2.jar:2.15.2]
        at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101)
[camel-core-2.15.2.jar:2.15.2]
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[na:1.7.0_40]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
[na:1.7.0_40]
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
[na:1.7.0_40]
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[na:1.7.0_40]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[na:1.7.0_40]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[na:1.7.0_40]
        at java.lang.Thread.run(Thread.java:724) [na:1.7.0_40]
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:196)
~[na:1.7.0_40]
        at java.net.SocketInputStream.read(SocketInputStream.java:122)
~[na:1.7.0_40]
        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
~[na:1.7.0_40]
        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
~[na:1.7.0_40]
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
~[na:1.7.0_40]
        at java.io.InputStreamReader.read(InputStreamReader.java:184)
~[na:1.7.0_40]
        at java.io.BufferedReader.fill(BufferedReader.java:154)
~[na:1.7.0_40]
        at java.io.BufferedReader.read(BufferedReader.java:175)
~[na:1.7.0_40]
        at
org.apache.commons.net.io.CRLFLineReader.readLine(CRLFLineReader.java:58)
~[commons-net-3.3.jar:3.3]
        at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:314)
~[commons-net-3.3.jar:3.3]
        at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:294)
~[commons-net-3.3.jar:3.3]
        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:483)
~[commons-net-3.3.jar:3.3]
        at
org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:821)
~[commons-net-3.3.jar:3.3]
        at
org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:759)
~[commons-net-3.3.jar:3.3]
        at
org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:3293)
~[commons-net-3.3.jar:3.3]
        at
org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:3271)
~[commons-net-3.3.jar:3.3]
        at
org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2930)
~[commons-net-3.3.jar:3.3]
        at
org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2977)
~[commons-net-3.3.jar:3.3]
        at
org.apache.camel.component.file.remote.FtpOperations.listFiles(FtpOperations.java:789)
~[camel-ftp-2.15.2.jar:2.15.2]
        ... 12 common frames omitted




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-FTP-channel-stops-consuming-files-tp5776713.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to