mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phan Thanh Hieu (JIRA)" <j...@apache.org>
Subject [jira] Created: (DIRMINA-296) ByteBuffer.limit() incorrect when CharacterCodingException() occurred
Date Fri, 27 Oct 2006 08:34:16 GMT
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

        

Mime
View raw message