You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by lasith haputhanthiri <la...@gmail.com> on 2009/06/17 15:35:12 UTC

ProtocolDecoderException: java.nio.charset.MalformedInputException encountered in Apache mina 1.1.7

Hi all,
I'm using apache mina 1.1.7 (with jdk 1.6_2)for a load distribution server.
The responsible of the server is to route incoming messages(String
messages). I'm usnig the *TextLineDecoder* in the codec filter of the
application.

*Suddenly I have encountered an exception for following input message*:
 "3\u001C14\u001C0\u001C0\u001C0\u001C0\u001CAS000001525\u0001BDFM\u0001\"0\u0001H0\u0001IDFM\u0001JAED\u0001K2\u0001L1\u0001M200\u0001N1.89\u0001O0\u0001Q200\u0001R0\u0001WX\u0001g6\u0001h1690\u0001unull13\u0001wsykeaas\u0001xsykeaas\u0001yDBFS\u0001z0\u000149.0\u00012197001\u000161.0\u000190\u0001!0\u0001|0.0\u0001#0\u0001,0\u0001?\u0001".

Server uses UTF-8 encoding.

*exception is:*

Exception caught: org.apache.mina.filter.codec.ProtocolDecoderException:
java.nio.charset.MalformedInputException: Input length = 1 (Hexdump: 33 1C
33 1C 30 1C 30 1C 30 1C 30 1C 41 53 30 30 30 30 30 33 32 36 39 01 42 46 47
42 01 22 30 01 48 30 01 49 41 44 53 4D 01 4A 41 45 44 01 4B 32 01 4C 31 01
4D 35 30 30 01 4E 31 34 2E 30 01 4F 30 01 52 30 01 57 58 01 67 36 01 68 34
37 31 37 01 75 6E 75 6C 6C 32 01 79 44 42 46 53 5F 54 45 53 54 01 7A 30 01
34 39 2E 30 01 32 31 39 37 30 30 31 01 36 31 2E 30 01 39 30 01 21 30 01 7C
30 2E 30 01 23 30 01 2C 30 01 A7 01 0A)

I have tried for days to fix this. But no any luck. Please help me on this.
Thanks in advance.

Regards,
Lasith.

Re: ProtocolDecoderException: java.nio.charset.MalformedInputException encountered in Apache mina 1.1.7

Posted by Emmanuel Lecharny <el...@apache.org>.
lasith haputhanthiri wrote:
> Exception caught: org.apache.mina.filter.codec.ProtocolDecoderException:
> java.nio.charset.MalformedInputException: Input length = 1 (Hexdump: 33 1C
> 33 1C 30 1C 30 1C 30 1C 30 1C 41 53 30 30 30 30 30 33 32 36 39 01 42 46 47
> 42 01 22 30 01 48 30 01 49 41 44 53 4D 01 4A 41 45 44 01 4B 32 01 4C 31 01
> 4D 35 30 30 01 4E 31 34 2E 30 01 4F 30 01 52 30 01 57 58 01 67 36 01 68 34
> 37 31 37 01 75 6E 75 6C 6C 32 01 79 44 42 46 53 5F 54 45 53 54 01 7A 30 01
> 34 39 2E 30 01 32 31 39 37 30 30 31 01 36 31 2E 30 01 39 30 01 21 30 01 7C
> 30 2E 30 01 23 30 01 2C 30 01 A7 01 0A)
                                 ^^----------- A7 is not a valid UTF-8 
encoded value.

See http://en.wikipedia.org/wiki/UTF-8, section Description.

Check your client.

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org