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>