CMPP 服务器端接收submit消息包就报错

yongzhouluo 发布于 2013/10/12 16:21
阅读 287
收藏 0

MySQL连接为什么挂死了?别踩坑!>>>

@geyonghong 你好,想跟你请教个问题:

[2013-10-12 10:49:53-228]   INFO [MinaThread] (CmppRequestDecoder.java:36) - res
v msg HeapBuffer[pos=0 lim=183 cap=2048: 00 00 00 B7 00 00 00 04 00 00 00 01 00
00 00 00...]
[2013-10-12 10:49:53-228]   INFO [MinaThread] (CmppRequestDecoder.java:39) - len
gth=183,in.limit=183,in.remaining=179
[2013-10-12 10:49:53-228]  ERROR [MinaThread] (CmppIoHandler.java:53) - Exception:
org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.NullPointerException (Hexdump: 00 00 00 B7 00 00 00 04 00 00 00 01 00 00 00 00 00 00 00 00 01 0
1 01 00 4D 4A 53 30 30 31 39 39 30 35 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 0F 32 34 32 33 35 31 30 32 30 30 30 30 31 30 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0
0 00 00 00 00 00 30 31 38 35 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01 31 35 39 37 34 32 38 33 34 30 38 00 00 00 00 00 00 00 00 00 00 18 BA FE C4 CF
 CB C4 BC BE D7 DD BA CF BF C6 BC BC D3 D0 CF DE B9 AB CB BE 00 00 00 00 00 00 0
0 00)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(Prot
ocolCodecFilter.java:251)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessage
Received(DefaultIoFilterChain.java:434)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(Def
aultIoFilterChain.java:46)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.mes
sageReceived(DefaultIoFilterChain.java:796)
        at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.jav
a:75)
        at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
        at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runT
ask(OrderedThreadPoolExecutor.java:780)
        at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runT
asks(OrderedThreadPoolExecutor.java:772)
        at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(
OrderedThreadPoolExecutor.java:714)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
        at cmpp.sms.ShortMessage.setData(ShortMessage.java:67)
        at cmpp.pdu.Submit.setBody(Submit.java:96)
        at cmpp.pdu.CmppPDUParser.createPDUFromBuffer(CmppPDUParser.java:59)
        at cmpp.CmppRequestDecoder.doDecode(CmppRequestDecoder.java:51)
        at org.apache.mina.filter.codec.CumulativeProtocolDecoder.decode(Cumulat
iveProtocolDecoder.java:178)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(Prot
ocolCodecFilter.java:241)
        ... 9 more
[2013-10-12 10:49:53-321]   INFO [MinaThread] (CmppIoHandler.java:85) - 3> Sessi
on closed

,但是使用您的client代码CmppClient.class测试就没问题,请教下您,您用标准的cmpp客户端测试了吗,这个问题怎么解决呢?

加载中
返回顶部
顶部