Tcp利用mina和IoHandlerAdapter传输字符串报错line is to0 long

gaoxiaxiaoxue 2015-08-14 06:12:33
[PowerScreening] WARN 2015-08-14 18:14:55 [NioProcessor-4] LoggingFilter.log(130) | EXCEPTION :
org.apache.mina.filter.codec.RecoverableProtocolDecoderException: Line is too long: 1373 (Hexdump: 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 2E 30 22 2
65 63 74 69 6F 6E 3E 55 3C 2F 4D 65 73 67 44 69 72 65 63 74 69 6F 6E 3E 3C 50 6B 74 53 65 71 4E 6D 62 72 3E 31 30 30 4F 55 50 41 31 35 31 34 32 30 32 30 31
E 30 30 31 2E 30 31 20 20 20 20 31 30 30 4F 55 50 41 31 35 31 34 32 30 32 30 31 20 20 20 20 55 20 20 20 20 20 20 20 20 20 7D 7B 53 3A 6F 70 5A 48 55 75 2B 47
73 57 56 6A 56 7A 74 67 49 31 4D 6C 77 58 67 73 53 47 6E 78 62 69 55 30 31 6F 74 4A 77 42 67 51 77 39 36 57 41 37 73 43 70 7A 33 6E 63 53 30 6E 41 3D 7D 3C 3
3E 41 31 30 30 3C 2F 50 6D 74 54 70 50 72 74 72 79 3E 3C 50 75 72 70 50 72 74 72 79 3E 30 32 31 30 32 3C 2F 50 75 72 70 50 72 74 72 79 3E 3C 53 74 74 6C 6D
0 3C 2F 43 68 72 67 42 72 42 72 6E 63 68 49 64 3E 3C 44 62 74 72 4D 6D 62 49 64 3E 3C 2F 44 62 74 72 4D 6D 62 49 64 3E 3C 44 62 74 72 4D 6D 62 4E 6D 3E E6 B5
44 62 74 72 4E 6D 3E 3C 50 73 74 6C 41 64 72 3E 3C 2F 50 73 74 6C 41 64 72 3E 3C 53 79 73 47 72 70 3E 3C 53 79 73 43 64 3E 42 45 50 53 3C 2F 53 79 73 43 64 3
30 30 31 31 30 30 32 3C 2F 43 64 74 72 4D 6D 62 49 64 3E 3C 43 64 74 72 4D 6D 62 4E 6D 3E 30 30 31 31 30 30 30 31 31 30 30 32 3C 2F 43 64 74 72 4D 6D 62 4E
1 64 64 74 6C 49 6E 66 3E 3C 52 6D 74 49 6E 66 3E 3C 2F 52 6D 74 49 6E 66 3E 3C 53 79 73 42 73 4E 62 3E 3C 2F 53 79 73 42 73 4E 62 3E 3C 2F 50 61 63 6B 61 67
at org.apache.mina.filter.codec.textline.TextLineDecoder.decodeNormal(TextLineDecoder.java:341)
at org.apache.mina.filter.codec.textline.TextLineDecoder.decode(TextLineDecoder.java:186)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:232)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:410)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:710)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1124)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
...全文
202 3 点赞 打赏 收藏 举报
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
baidu_31006959 2015-09-22
看下你是怎么解码的
  • 打赏
  • 举报
回复
lei_ning 2015-09-22
搞定没,同样问题,求分享
  • 打赏
  • 举报
回复
gaoxiaxiaoxue 2015-08-14
我自己搞了好长时间没搞定,求大神帮忙啊!
  • 打赏
  • 举报
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2015-08-14 06:12
社区公告
暂无公告