mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From afa654321 <afa654...@yahoo.com>
Subject No appropriate message decoder
Date Mon, 08 Jan 2007 23:13:47 GMT

Hello,

I've built a client-server(using "SumUp" as a guide). The client sends
variable-length array of bytes.
I was getting the above-mentioned exception in the server, so in order to
simulate the problem I used the Server
program(with no changes) from the "SumUp" example and can re-create the
problem(get the same "ProtocolDecoderException")

the line of code in the server that gets the array from the ByteBuffer is:

byte[] array = new byte[in.remaining()];
in.get(array, 0, in.remaining());

where in is a ref to the ByteBuffer

Any idea as to the cause of the exception?
Thx.



-- 
View this message in context: http://www.nabble.com/No-appropriate-message-decoder-tf2942800.html#a8228768
Sent from the mina dev mailing list archive at Nabble.com.


Mime
View raw message