Le 3/31/14 5:11 PM, Aidan Diffey a écrit :
> Hello.
>
> I am new to using MINA and I have written an application that uses the
> DemuxingIoHandler as the handler for an IOAcceptor. I have registed some
> handlers for message recevied and message sent.
>
> One of my registed handlers (implementing MessageHandler) is responsible
> for writing data back to the IoSession.  I am doing this using an IoBuffer
> in the following way:
>
>     @Override
>     public void handleMessage(IoSession session, SimpleRequestPacket
> message) throws Exception
>     {
>         IoBuffer response = IoBuffer.allocate(4);
>         response.setInt(0xBBAC);
>         response.flip();
>
>         session.write(response);
>     }
>
>
> The issue I am having is that I am seeing the following message:
> "org.apache.mina.core.session.UnknownMessageTypeException: No handler found
> for message type: SimpleBuffer"
>
> Is there another out-of-the-box handler I can use for SimpleBuffers?

You most certainly have an issue in the way you registred your handlers.

can you provide the code that does that ?



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

Reply via email to