I have a similar problem. (.GenericFileOnCompletion)

[ad #0 - ftp://localhost/origen] GenericFileOnCompletion        ERROR Caused
by: [org.apache.camel.component.file.GenericFileOperationFailedException -
File operation failed:  Software caused connection abort: socket write
error. Code: 250]

In my case, I use a ftp URI with the parametrer move=.done

The route is something like that from(ftp...).to(bean)

In the ftp server there are 5 files. I am testing the route. During the
test, I permit that the first file finishes ok. but when the route is
processing the second file, I let  the file to be received completly and
when the bean is processing y shutdown the ftp server. In this moment the
exception appears because the route can not move the file in the server.

I am using a  DefaultPollingConsumerPollStrategy with ftp. The poll of the
route finishes with COMMIT, instead with a Rollback. I was expecting that
Rollback was executed and then I could catch the exception.

¿Is it posible to control this exception with
DefaultPollingConsumerPollStrategy?

Thank  you.


--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-sftp-endpoint-and-exception-handling-tp5114385p5157565.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to