It would indeed be nice if iBATIS told you the file to look in, but this
is just an XML validation error and should be easy to spot if you use a
decent editor with DTD-validation.

Niels

-----Original Message-----
From: rs [mailto:[EMAIL PROTECTED] 
Sent: woensdag 24 mei 2006 19:21
To: [email protected]
Subject: Not very useful error message


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.jav
a:45)
        at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$11.process(SqlMa
pConfigParser.java:347)
        at
com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:11
2)
        ... 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