`
高级java工程师
  • 浏览: 397055 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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会错删除注释是一种方法 
另,原因已找到<!- 单数个中文>形式的,单数个中文后以"->"结束会出错




  • 大小: 247.3 KB
分享到:
评论

相关推荐

    ACM的一道题--Parenthesize the string

    Find an efficient algorithm that examines a string of these symbols, say bbbbac, and decides whether or not it is possible to parenthesize the string in such a way that the value of the resulting ...

    string-to-dom:向DOM中添加HTML字符串,并返回新HTML元素

    安装npm install --save string-to-dom用法var ... tag).// `message` is the newly created HTML element.var message = stringToDom ( '&lt;p&gt;Hello, World!&lt;/p&gt;' ) ;// Optionally add to a particular node

    string-to-integer-atoi

    Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ...

    HighlightSelectedString, plug-in for Xcode. Highlight the string which is same to the selected string..zip

    HighlightSelectedString, plug-in for Xcode. Highlight the string which is same to the selected string.

    Text-File-for-String-Manipulation.rar_it

    This program is used to manipulate text by reading the content of a text file and read it line by line while extracting the data in it.

    struts_2.3.12GA_API文档(chm版本)

    Gets a message based on a key using the supplied args, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. String getText(String key, String default...

    Senfore_DragDrop_v4.1

    A batch file, convert_forms_to delphi_4_format.bat, is supplied in the demo directory which automates the conversion process. The C++ Builder demo forms are distributed in binary format. 7) If ...

    String matching - Aho & Corasick

    ** Reference - Efficient String matching: An Aid to Bibliographic Search ** Alfred V Aho and Margaret J Corasick ** Bell Labratories ** Copyright(C) 1975 Association for Computing Machinery,Inc ** **...

    parquet-tools.jar

    查看parquet文件工具 ...where &lt;input&gt; is the parquet file to print to stdout usage: parquet-tools head [option...] where option is one of: --debug Enable debug output -h,--help Show this help

    servlet2.4doc

    The default behavior of this method is to return addHeader(String name, String value) on the wrapped response object. addHeader(String, String) - Method in interface javax.servlet....

    Assignment.py

    For example, if the input of the function is Uni, then the function returns the string UUUnnniii B. Use the above function in part A to write a main program that works like the following example: ...

    mod_xslt.tar.gz_MOD_xml xsl_xsl_xslt

    The stylesheet is specified using the Processing Instruction &lt;?xml-stylesheet type="text/xsl" href="URL-OF-YOUR-STYLESHEET"?&gt; or now new &lt;?xslt-stylesheet agent="THE-USER-AGENT-STRING-OF-...

    Sampled-data vehicular platoon control with communication delay

    method is established, in which the effect of the communication delay is involved. First, a linearized vehicle longitudinal dynamic model is obtained using the exact feedback-linearization technique. ...

    深入java虚拟机(inside the java virtual machine)

    The CONSTANT_String_info Table The CONSTANT_Fieldref_info Table The CONSTANT_Methodref_info Table The CONSTANT_InterfaceMethodref_info Table The CONSTANT_NameAndType_info Table Fields Methods ...

    leetcode小白刷题-String-to-Integer-atoi-:来自https://leetcode.com/problems/st

    The first non-whitespace character is ' - ' , which is the minus sign. Then take as many numerical digits as possible, which gets 42 . 示例 3: Input: " 4193 with words " Output: 4193 Explanation: ...

    the string was not recognized as a valid Datetime.

    the string was not recognized as a valid Datetime. there is a unknown word starting at index 9

    Java+javabean

    The method setAttribute String Object in the type ServletRequest is not applicable for the arguments String int

    Two-Way String Matching (1991)-计算机科学

    A new string-matching algorithm is presented, which can be viewed as an intermediatebetween the classical algorithms of Knuth, Morris, and Pratt on the one hand and Boyer and Moore, on the other hand...

    ImageMagick图片批量处理

    -draw string annotate the image with a graphic primitive -edge radius apply a filter to detect edges in the image -encipher filename convert plain pixels to cipher pixels -emboss radius emboss an ...

Global site tag (gtag.js) - Google Analytics