camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin <>
Subject Re: Netty Consumer is not able to process message sent from plain java socket client
Date Wed, 25 May 2011 11:43:49 GMT
I debugged the netty source code and came to know while sending message from
java client it causes problems in some decoding.
It goes to decode method of LengthFieldBasedFrameDecoder class where the
Frame length it fetched from Channel buffer exceeds the maxFrameLength,
hence returning null.

if (frameLength > maxFrameLength) {
            // Enter the discard mode and discard everything received so
            discardingTooLongFrame = true;
            tooLongFrameLength = frameLength;
            bytesToDiscard = frameLength - buffer.readableBytes();
            return null;

As i am sending simple xml message in byte form, which decoder i should use.
Please guide me.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message