camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed Exception
Date Sun, 24 Oct 2010 07:03:53 GMT
Its the remote FTP Server which throws some of those errors.
There is a FTP error code list you can lookup what the numbers mean.

Check the FTP server log it may have some more details as well.

And are you consuming (downloading) or producing (uploading) the file
to the server?
That is also a good information to know.


On Sat, Oct 23, 2010 at 8:49 PM, Sri <sri.tech97@googlemail.com> wrote:
>
> Hi All,
>
> we are getting
> org.apache.camel.component.file.org.apache.camel.component.file.GenericFileOperationFailedException:
> File operation failed: File operation failed exception with different
> messages but underlying cause showing is
> org.apache.camel.component.file.GenericFileOperationFailedException .
>
> we are sending large number of messages going and this is happening at peak
> time.
>
> sample URI we using is below
>
> ftp://smaplefeeds@xx.XX.XXX.XXX/?disconnect=true&fileName=xxxx-424-2010-ssss.xml&ftpClient.connectTimeout=120000&ft
> pClient.dataTimeout=15000&ftpClient.defaultTimeout=15000&password=xxxxx&soTimeout=30000
>
> The exceptions we got are below,
>
> org.apache.camel.component.file.GenericFileOperationFailedException: File
> operation failed:  Read timed out. Code: 200
>
> org.apache.camel.component.file.GenericFileOperationFailedException: File
> operation failed:  Connection closed without indication.. Code: 421
>
> org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
> rename file from: commentary-24-2010-320437-fr.tmp to: co
> mmentary-24-2010-320437-fr.xml
>
>
> org.apache.camel.component.file.GenericFileOperationFailedException: File
> operation failed: 150 Opening data channel for file transfe
> r.
>  IOException caught while copying.. Code: 150
>
>
>
> One of the full stack trace is below.
>
> [2010-10-23
> 17:04:11,707][pool-1-thread-3][ERROR][org.apache.camel.processor.DefaultErrorHandler][]
> Failed delivery for exchangeId: xxxxxxxxxxxxxxxxxxx. Exhausted after
> delivery attempt: 1 caught:
> org.apache.camel.component.file.GenericFileOperation
> FailedException: File operation failed:  Read timed out. Code: 200
> org.apache.camel.component.file.GenericFileOperationFailedException: File
> operation failed:  Read timed out. Code: 200
>        at
> org.apache.camel.component.file.remote.FtpOperations.storeFile(FtpOperations.java:413)
>        at
> org.apache.camel.component.file.GenericFileProducer.writeFile(GenericFileProducer.java:220)
>        at
> org.apache.camel.component.file.GenericFileProducer.processExchange(GenericFileProducer.java:136)
>        at
> org.apache.camel.component.file.remote.RemoteFileProducer.process(RemoteFileProducer.java:49)
>        at
> org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:293)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:202)
>        at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:99)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)
>        at
> org.apache.camel.processor.MulticastProcessor.doProcessParallel(MulticastProcessor.java:510)
>        at
> org.apache.camel.processor.MulticastProcessor.access$100(MulticastProcessor.java:73)
>        at
> org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:239)
>        at
> org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:232)
>        at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>        at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: java.net.SocketTimeoutException: Read timed out
>        at java.net.SocketInputStream.socketRead0(Native Method)
>        at java.net.SocketInputStream.read(SocketInputStream.java:129)
>        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
>        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
>        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
>        at java.io.InputStreamReader.read(InputStreamReader.java:167)
>        at java.io.BufferedReader.fill(BufferedReader.java:136)
>        at java.io.BufferedReader.readLine(BufferedReader.java:299)
>        at java.io.BufferedReader.readLine(BufferedReader.java:362)
>        at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:294)
>        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:490)
>        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534)
>        at
> org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:476)
>        at
> org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:374)
>        at
> org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1379)
>        at
> org.apache.camel.component.file.remote.FtpOperations.storeFile(FtpOperations.java:410)
>        ... 21 more
>
>
>
> Environment :
> JDK :1.6
> Camel :2.5 SNAPSHOT
>
>
> Thanks in advance for your response.
>
> Regards
> Sri
>
>
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-component-file-GenericFileOperationFailedException-File-operation-failed-Exception-tp3233695p3233695.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message