问题描述
- 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发出去的一个消息,在服务端变成了两个,但报文上显示是一个消息体,请大神解决,谢谢,,,
时间: 2024-12-03 09:22:45