Thanks Claus for a reply. I apologize for putting this in the wrong forum and I've made a note of that for future reference.
I'm using Camel v2.6. I have found the problem. I was throwing the NullPointerException from the code however the by time it reaches the Camel routing it became checked exception so it was going into Exception.class block instead of RuntimeException.class block. After fixing that, it worked fine. Thanks again. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-OnException-handling-tp5066566p5068125.html Sent from the Camel Development mailing list archive at Nabble.com.