Hi,

If there's a syntax error in one of the mapping files, Ibatis gives an error 
message (see below) that provides no clue where to look for the error. If 
there's 100+ mapping files, it's not obvious where to look for the error.

Why can't Ibatis at least print the name of the parsed file? That would help. 
Thanks

-------------------------------------------------------------------

Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
org.xml.sax.SAXParseException: Element type "result" must be followed by either 
attribute specifications, ">" or "/>".
Caused by: org.xml.sax.SAXParseException: Element type "result" must be 
followed by either attribute specifications, ">" or "/>".
        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)
        ... 25 more
Caused by: org.xml.sax.SAXParseException: Element type "result" must be 
followed by either attribute specifications, ">" or "/>".

-------------------------------------------------------------------



_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way  your home on the Web - http://www.myway.com


Reply via email to