mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jennifer Cumming <addedspar...@gmail.com>
Subject Re: Unexpected connection closure by server
Date Wed, 03 Apr 2013 16:02:35 GMT
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 <elecharny@gmail.com> 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message