Added and nothing. exceptionCaught is not getting called. Even tried putting a breakpoint in and debugging and it's not getting hit.
On 3 April 2013 16:39, Emmanuel Lécharny <[email protected]> wrote: > Le 4/3/13 5:15 PM, Jennifer Cumming a écrit : > > Thanks for answering Emmanuel. > > > > I do have an exceptionCaught handler: > > > > @Override > > public void exceptionCaught(IoSession session, Throwable cause) > > { > > if > > (cause.getClass().getName().equalsIgnoreCase("ProtocolDecoderException")) > > { > > session.write(""); > > logger.debug("ProtocolDecoderException:", cause); > > } > > logger.error("Error:", cause); > > } > > > > but I don't see anything in the log that might be the result of > > exceptionCaught being called. Do I need something in my encoder/decoder > as > > well to handle exceptions? > No. They will be caught. > > One possibility is that the Log4j version you are using is not the rght > version. > > Could you just add a printstackTrace in your exceptionCaught method, and > see what you get ? > > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com > >
