Ok, have found the error myself :)
It was a rest of a test method, which was already in the code:

private static IoFilter CODEC_FILTER =
new ProtocolCodecFilter( new TextLineCodecFactory( Charset.forName("UTF-8") ) );
        
public void sessionCreated(IoSession pSession) throws Exception {
    pSession.getFilterChain().addLast( "codec", CODEC_FILTER );
    super.sessionCreated(pSession);
}

Sorry. Once more thanx to every repost!

Regards
Michael



Michael Bauroth wrote:
Ok, then I have a serious problem :(

The problem is that when I send a simple (empty) message from a client to the server (both Mina based and kept as simple as possible) over IoSession.write(""), I always get an extra byte 0x0a at the end of the incoming message. The same occurs, when the message is not empty. Always the remaining() value is one greater then the string itself.

What I'm doing wrong???

Regards
Michael


Vinod Panicker wrote:

On 5/9/06, Michael Bauroth <[EMAIL PROTECTED]> wrote:

Hi,

only a short question. Can it be, that IoSession.write() adds an extra
charater at the end of each line (like an EOL or so)?



AFAIK, it doesn't.  Otherwise binary protocols such as SSL/TLS would
have bombed.
Check the bytebuffer you are passing to write(). Is the limit set correctly?

Regards,
Vinod.

Reply via email to