首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 企业软件 > 行业软件 >

The string " " is

2012-08-08 
Thestring-- isCausedby:com.ibatis.common.xml.NodeletException:ErrorparsingXML.Cause:com.ibatis.co

The string "-- " is

Caused   by:   com.ibatis.common.xml.NodeletException:   Error   parsing   XML.     Cause:   com.ibatis.common.exception.NestedRuntimeException:   Error   parsing   XPath   '/sqlMapConfig/sqlMap '.     Cause:   com.ibatis.common.xml.NodeletException:   Error   parsing   XML.     Cause:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. Caused   by:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. Caused   by:   com.ibatis.common.xml.NodeletException:   Error   parsing   XML.     Cause:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. Caused   by:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. Caused   by:   com.ibatis.common.exception.NestedRuntimeException:   Error   parsing   XPath   '/sqlMapConfig/sqlMap '.     Cause:   com.ibatis.common.xml.NodeletException:   Error   parsing   XML.     Cause:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. Caused   by:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. Caused   by:   com.ibatis.common.xml.NodeletException:   Error   parsing   XML.     Cause:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. Caused   by:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. at   com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53) at   com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:78) ...   81   more Caused   by:   com.ibatis.common.exception.NestedRuntimeException:   Error   parsing   XPath   '/sqlMapConfig/sqlMap '.     Cause:   com.ibatis.common.xml.NodeletException:   Error   parsing   XML.     Cause:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. Caused   by:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. Caused   by:   com.ibatis.common.xml.NodeletException:   Error   parsing   XML.     Cause:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. Caused   by:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. at   com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:114) at   com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:75) at   com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:93) at   com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:63) at   com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:51) ...   82   more Caused   by:   com.ibatis.common.xml.NodeletException:   Error   parsing   XML.     Cause:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. Caused   by:   org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments. at   com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53) at   com.ibatis.sqlmap.engine.builder.xml.SqlMapParser.parse(SqlMapParser.java:45) at   com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$11.process(SqlMapConfigParser.java:347) at   com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:112) ...   86   more


问题解决方案:

The string "--" is not permitted within comments ibatis 在jdk-1_5_0_04中能正常,而在jdk1.6.0_03会错删除注释是一种方法 另,原因已找到<!- 单数个中文>形式的,单数个中文后以"->"结束会出错




热点排行