Le 5/12/13 8:28 AM, Gourav Garg a écrit :
> Hello Team, I created application with mina library, I am facing the
> exception org.apache.mina.filter.codec.ProtocolDecoderException:
> java.nio.BufferUnderflowException
> Generally It comes in build distribution , When I am running on eclipse and
> netbeans not getting an exception 
> But when I created zip distributions I got the same exception after
> successfully handshake even two or three messages have been successfully
> passed .

You have a problem in your codec. You are trying to read past a
ByteBuffer, which leads to such an exception.

Be sure you correctly handle TCP fragmentation (messages may arrive in
fragments, don't assule that they will be transfered in a single block
of bytes).


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 

Reply via email to