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?

Regards

Reply via email to