From: <leg...@at...> - 2003-10-28 21:49:30
|
Message: The following issue has been closed. Resolver: Gavin King Date: Tue, 28 Oct 2003 3:48 PM This was actually by design. But last night a few hours before you submitted this I finally changed my mind and changed it to throw exceptions. --------------------------------------------------------------------- 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: Closed Priority: Major Resolution: DUPLICATE 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 3:48 PM 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 |