Yes, GenericFileOperationFailedException is thrown. Trying with Exception.class did not change the situation.
onException(Exception.class) .handled(true) .retryWhile(new Predicate() { @Override public boolean matches(Exchange exchange) { System.out.println("in predicate.."); return false; } }) .process(new Processor() { @Override public void process(Exchange exchange) throws Exception { System.out.println("in precess.."); } }); CamelExceptionCaught=org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: 530 Login incorrect. . Code: 530 -- View this message in context: http://camel.465427.n5.nabble.com/retryWhile-predicate-is-not-called-on-ftp-connection-failure-tp5762601p5762628.html Sent from the Camel - Users mailing list archive at Nabble.com.