We finally find the problem which was in our ProtocolEncoder implementation. In fact, the doDecode was reading just 1024 first bytes in the ByteBuffer whereas our frame (which know its length) was indicating more bytes. To prevent that, we resume reading in IoSession and returns false in doDocode if our length is not the same as remaining in the ByteBuffer.
Thanks for all. NIL -- View this message in context: http://camel.465427.n5.nabble.com/Camel-mina-data-truncated-to-1024-bytes-tp5728733p5728804.html Sent from the Camel - Users mailing list archive at Nabble.com.