[
https://jira.jboss.org/jira/browse/JBXB-246?page=com.atlassian.jira.plugi...
]
Alexey Loubyansky closed JBXB-246.
----------------------------------
Resolution: Done
XB will report the most information available about the source which failed to parse.
If org.xml.sax.Locator is available (normally it is) the column/row indexes will be
included as well.
The problem is the file name/location might not always be available to XB since the XML
source maybe java.io.InputStream or java.io.Reader. In that case it'll say that it
failed to parse the xml stream (still reporting the location in the stream if the locator
is available).
Include the file name in the error message when schema validation
fails
-----------------------------------------------------------------------
Key: JBXB-246
URL:
https://jira.jboss.org/jira/browse/JBXB-246
Project: JBoss XML Binding (JBossXB)
Issue Type: Feature Request
Reporter: jaikiran pai
Assignee: Alexey Loubyansky
Fix For: JBossXB-2.0.2.GA
Many users have reported that there are times when the JBossXB exception message does not
contain the name of the file which failed during schema validation. Here's one example
http://community.jboss.org/message/531849#531849
It would be very useful to know the name of the file which failed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira