camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul <>
Subject Re: Camel sftp endpoint and exception handling.
Date Thu, 19 Jan 2012 12:38:33 GMT
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

Thank  you.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message