如果风 2015-03-05 08:51
浏览 1148

apache mina 解析消息体时出现丢失情况

mina在解析消息体时,出现消息体丢失的情况,如下:
<?xml version="1.0" encoding="UTF-8"?>nulltext1425542871725client_send_text<![CDATA[CONFIRM_ORDER{"CUR_MESSAGE":{"TIPS":{"TIP":"请您按时前往送快递,若您已完成任务,请点击确认送达按钮。"},"MSG_TYPE":"SysNotice","BUTTONS":{"FN_TEXT":"确认送达","ON_CLICK":"doAction(401)"},"TITLE":"对方已支付预付款"},"STEP_ID":"401"}]]>txtadmin [后面有

缺少]

Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)

后半部分消息在下面,
begain parseMsg: 

admin1
[Fatal Error] :1:30: The markup in the document following the root element must be well-formed.
Caused by: org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)

感觉好像client发出去的一个消息,在服务端变成了两个,但报文上显示是一个消息体,请大神解决,谢谢,,,
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥35 平滑拟合曲线该如何生成
    • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
    • ¥15 名为“Product”的列已属于此 DataTable
    • ¥15 安卓adb backup备份应用数据失败
    • ¥15 eclipse运行项目时遇到的问题
    • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
    • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
    • ¥15 自己瞎改改,结果现在又运行不了了
    • ¥15 链式存储应该如何解决
    • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站