Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-427
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-427
Summary: HBM.XML Parsing Errors do not throw an Exception
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:
core
Versions:
2.1 beta 4
Assignee:
Reporter: John Urberg
Created: Tue, 28 Oct 2003 7:39 AM
Updated: Tue, 28 Oct 2003 7:39 AM
Environment: JDK 1.4.1_01, Windows 2000
Description:
If the hbm.xml file contains invalid XML, Hibernate is only logging the parsing failure. It does not throw an exception.
It looks as if Configuration.addInputStream() should throw the MappingException which should be passed up from the XMLHelper.ErrorLogger.
A workaround is to add a filter to the Log4j appenders that looks for the log entry for the "Error parsing XML: " entry.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|