I have this simple route:

onException(Exception.class)
  .to("log:com.mycompany.test?level=INFO");

from("sftp://myuser@localhost:/files/?password=mypassword&knownHostsFile=/myuser/.ssh/known_hosts&noop=true";)
  .to("log:com.mycompany.test?level=INFO");

If I stop the sftp server, from("sftp:...") throws an
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
connect to sftp://myuser@localhost I would expect that the onException log
prints something, but it does not. Why??

If I enable the sftp server, the route works and the log after
from("sftp:...") prints the file content (so, i guess that slf4j is well
configured).

What can be the problem?

--
View this message in context: 
http://camel.465427.n5.nabble.com/Apache-Camel-onException-does-not-get-fired-tp4899276p4899276.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to