[ http://issues.apache.org/jira/browse/DIRMINA-296?page=all ]
Phan Thanh Hieu updated DIRMINA-296: ------------------------------------ Attachment: bytebuffer.jpg > ByteBuffer.limit() incorrect when CharacterCodingException() occurred > --------------------------------------------------------------------- > > Key: DIRMINA-296 > URL: http://issues.apache.org/jira/browse/DIRMINA-296 > Project: Directory MINA > Issue Type: Bug > Components: Core > Affects Versions: 1.0 > Environment: Window/Unix > Reporter: Phan Thanh Hieu > Attachments: bytebuffer.jpg > > > ByteBuffer.limit() is INCORRECT when CharacterCodingException occurred. > Information: my app just support ASCII-character messages. So when receiving > non-ASCII message => CharacterCodingException occurrec and my expected > action: save the raw-data into a Error file but the limit of the ByteBuffer > is changed so i could not save whole raw data to this kind of file. > I have reviewed the getString() method of MINA ByteBuffer. I could found the > problem, please see the attachment. > Thanks, Hieu Phan. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira