Saxparseexception an invalid XML character

Source: Internet
Author: User

Paip. saxparseexception an invalid XML character.txt

Caused by: org. xml. Sax. saxparseexception: An invalid XML character (UNICODE: 0xdd65) was found in the comment.

The symptoms are as follows:

 

Caused by: Org. apache. ibatis. builder. builderexception: Error creating document instance. cause: Org. XML. sax. saxparseexception: An invalid XML character (UNICODE: 0xdd65) was found in the comment. <br/> at Org. apache. ibatis. parsing. xpathparser. createdocument (xpathparser. java: 212) <br/> at Org. apache. ibatis. parsing. xpathparser. (xpathparser. java: 81) <br/> at Org. apache. ibatis. builder. XML. xmlmapperbuilder. (xmlmapperbuilder. java: 43) <br/> at Org. apache. ibatis. builder. XML. xmlconfigbuilder. mapperelement (xmlconfigbuilder. java: 243) <br/> at Org. apache. ibatis. builder. XML. xmlconfigbuilder. parseconfiguration (xmlconfigbuilder. java: 66) <br/>... 53 more <br/> caused by: Org. XML. sax. saxparseexception: An invalid XML character (UNICODE: 0xdd65) was found in the comment. <br/> at com.sun.org. apache. xerces. internal. util. errorhandlerwrapper. createsaxparseexception (errorhandlerwrapper. java: 236) <br/> at com.sun.org. apache. xerces. internal. util. errorhandlerwrapper. fatalError (errorhandlerwrapper. java: 215) <br/> at com.sun.org. apache. xerces. internal. impl. xmlerrorreporter. reporterror (xmlerrorreporter. java: 386) <br/> at com.sun.org. apache. xerces. internal. impl. xmlerrorreporter. reporterror (xmlerrorreporter. java: 316) <br/> at com.sun.org. apache. xerces. internal. impl. xmlmetadata. reportfatalerror (xmltimeout. java: 1438) <br/> at com.sun.org. apache. xerces. internal. impl. xmlmetadata. scancomment (xmlcomment. java: 764) <br/> at com.sun.org. apache. xerces. internal. impl. xmldocumentfragmentscannerimpl. scancomment (xmldocumentfragmentscannerimpl. java: 771) <br/> at com.sun.org. apache. xerces. internal. impl. xmldocumentfragmentscannerimpl $ fragmentcontentdispatcher. dispatch (xmldocumentfragmentscannerimpl. java: 1730) <br/> at com.sun.org. apache. xerces. internal. impl. xmldocumentfragmentscannerimpl. scandocument (xmldocumentfragmentscannerimpl. java: 368) <br/> at com.sun.org. apache. xerces. internal. parsers. xml11configuration. parse (xml11configuration. java: 834) <br/> at com.sun.org. apache. xerces. internal. parsers. xml11configuration. parse (xml11configuration. java: 764) <br/> at com.sun.org. apache. xerces. internal. parsers. xmlparser. parse (xmlparser. java: 148) <br/> at com.sun.org. apache. xerces. internal. parsers. domparser. parse (domparser. java: 250) <br/> at com.sun.org. apache. xerces. internal. JAXP. documentbuilderimpl. parse (documentbuilderimpl. java: 292) <br/> at Org. apache. ibatis. parsing. xpathparser. createdocument (xpathparser. java: 210) </P> <p>

 

----- Cause
JDK's XML parsing compatibility is poor. Some XML files are incorrectly formatted ..
Added comments to the node. This problem.

---- Locate the error XML

Download the source code of mybatis and attach it for debugging. The error XML file is located ..
Delete half of the XML code of the file and try again until the faulty node is found in binary search ..

 

My reason is:

 

<Select id = "dao-t_wl_logistics_d.queryforChild" <br/> parametertype = "hashmap" resulttype = "flexmap"> <br/> select logistics_scheme_no, <! -- Logistics solution number --> <br/> node_no, <! -- Node number --> <br/> logistics_act_code, <! -- Activity type code --> <br/> logistics_act_name, <! -- Activity type name --> <br/> trnp_mode_code_21, <br/> trnp_mode_name_21, <br/> base_place_code, <br/> base_place_name, <br/> delivery_place_code, <br/> delivery_place_name </P> <p> </SELECT>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.