MalformedInputException with ADC

Bug #272388 reported by CyB
2
Affects Status Importance Assigned to Milestone
DCWatch
Triaged
Critical
CyB
Embla
Status tracked in 0-1-x
0-1-x
Triaged
Critical
CyB
0-2-x
Triaged
Critical
CyB

Bug Description

WARNING: EXCEPTION, please implement hu.dcwatch.embla.nio.EmblaIoHandler.exceptionCaught() for proper handling:
org.apache.mina.filter.codec.ProtocolDecoderException: java.nio.charset.MalformedInputException: Input length = 1 (Hexdump: 42 4D 53 47 20 47 48 59 49 20 3C 3C 5C 73 B5 67 6E 65 73 5C 73 56 61 6E 69 6C 6C 61 5C 73 2D 5C 73 54 61 6C A0 6E 5C 73 65 6C 74 81 6E 94 6B 5C 73 68 69 72 74 65 6C 65 6E 5C 73 2D 5C 73 5C 73 41 6D 61 72 6F 6B 5C 73 32 5C 73 62 65 74 61 5C 73 3E 3E 0A)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:180)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:498)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:460)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:452)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:55)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:775)
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.nio.charset.MalformedInputException: Input length = 1
        at java.nio.charset.CoderResult.throwException(CoderResult.java:260)
        at org.apache.mina.core.buffer.AbstractIoBuffer.getString(AbstractIoBuffer.java:1122)
        at org.apache.mina.filter.codec.textline.TextLineDecoder.decodeNormal(TextLineDecoder.java:265)
        at org.apache.mina.filter.codec.textline.TextLineDecoder.decode(TextLineDecoder.java:140)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:170)
        ... 15 more

CyB (viktor.balazs)
Changed in embla:
assignee: nobody → viktor.balazs
importance: Undecided → Medium
status: New → Confirmed
Changed in dcwatch:
assignee: nobody → viktor.balazs
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
CyB (viktor.balazs) wrote :

BMSG GHYI <<\sµgnes\sVanilla\s-\sTal n\seltn”k\shirtelen\s-\s\sAmarok\s2\sbeta\s>>

Revision history for this message
CyB (viktor.balazs) wrote :

Hexdump: 42 4D 53 47 20 33 54 32 4A 20 3C 3C 5C 73 4E 4F 58 5C 73 2D 5C 73 C9 62 72 65 64 6A 5C 73 66 65 6C 21 5C 73 5C 73 3A 3A 5C 73 5C 73 41 6D 61 72 6F 6B 5C 73 32 5C 73 62 65 74 61 5C 73 3E 3E 0A

Command: BMSG 3T2J <<\sNOX\s-\sÉbredj\sfel!\s\s::\s\sAmarok\s2\sbeta\s>>

CyB (viktor.balazs)
Changed in embla:
importance: Medium → Critical
Changed in dcwatch:
importance: Medium → Critical
Revision history for this message
CyB (viktor.balazs) wrote :

If the UTF-8 message has signature or the message is UTF-16, we will get this exception. The default codepage of ADC is UTF-8, so we must support the all format of UTF-8 messages. UTF-16 may be optional, so we must handle this.

Changed in embla:
milestone: none → 0-1-3
CyB (viktor.balazs)
Changed in embla:
status: Confirmed → Triaged
CyB (viktor.balazs)
Changed in dcwatch:
milestone: none → 0-4-2
status: Confirmed → Triaged
CyB (viktor.balazs)
Changed in embla:
milestone: 0-1-3 → 0-1-4
CyB (viktor.balazs)
Changed in embla:
milestone: 0-1-4 → 0-2-0
Changed in dcwatch:
milestone: 0-4-2 → 0-4-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.