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

The string "-- " is

jdk 
阅读更多

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 ** **...

    the string was not recognized as a valid Datetime.

    在编程和数据处理中,"the string was not recognized as a valid Datetime" 是一个常见的错误信息,它通常出现在尝试将一个字符串转换为日期时间格式时,由于字符串不符合预期的日期时间格式导致的。这个错误表明...

    前端开源库-is-html

    "is-html"是一个专门用于检查字符串是否包含HTML标记的开源库。这个库为开发者提供了一个简洁而强大的工具,帮助他们确保输入的数据是否符合HTML格式,从而避免潜在的安全问题和渲染错误。 "前端开源"标签表明了is-...

    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-...

    Write-the-output-of-following-C-program1.zip_The Question

    这段代码会输出 "The string is: Hello, World!"。 对于函数调用,输出取决于函数的实现。例如,一个简单的计算平方的函数可能如下: ```c #include int square(int num) { return num * num; } int main() { ...

    String1.java

    System.out.println("The string you typed in is: " + userInputString); ``` 2. **使用`BufferedReader`的`read()`方法**:该方法用于逐字符地读取输入,并存储到字符数组中。这段代码展示了如何逐个字符读取...

    深入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: ...

Global site tag (gtag.js) - Google Analytics