I tried to use the bridge error handler as well as the approach to use a custom exception handler as stated in the link suggested by you but they do not seem to work. The problem is that Mina supposedly reports a warning and closes the session before throwing the runtime exception. The Mina code is present in Mina2Consumer class and is given below-
private final class ReceiveHandler extends IoHandlerAdapter { public void exceptionCaught( IoSession session, Throwable cause ) throws Exception { if ( session != null ) { Mina2Consumer.LOG.warn( "Closing session as an exception was thrown from MINA" ); session.close( true ); } throw new CamelException( cause ); } ---------- ------------ } So we do not have the hold of the session to be able to do anything. Any more suggestions would be welcome. Thanks and Regards, Kriti -- View this message in context: http://camel.465427.n5.nabble.com/Unable-to-catch-and-deal-with-the-ProtocolDecoderException-thrown-by-Mina-in-our-camel-tp5782229p5782348.html Sent from the Camel Development mailing list archive at Nabble.com.