From: <leg...@at...> - 2003-09-13 02:32:27
|
Message: The following issue has been closed. Resolver: Gavin King Date: Fri, 12 Sep 2003 9:30 PM It does. If you check your log, you will see an ERROR, where the XML validation fails. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-328 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-328 Summary: NullPointerException from buildSessionFactory Type: Bug Status: Closed Priority: Major Resolution: REJECTED Project: Hibernate2 Components: core Versions: 2.0.2 Assignee: Reporter: Loren Rosen Created: Fri, 12 Sep 2003 11:52 AM Updated: Fri, 12 Sep 2003 9:30 PM Environment: MacOS X 10.1.5 JDK 1.3 Description: I got a NullPointerException with this stack trace: Exception in thread "main" java.lang.NullPointerException at net.sf.hibernate.collection.CollectionPersister.<init>(CollectionPersister.java:191) at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:216) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:627) at com.loren.Report.startHibernate(Report.java:44) at com.loren.Report.main(Report.java:88) Turned out the problem was a missing 'index' attribute on a 'map' in a hibernate mapping file: <map name="documentAuthors" table="document_author" sort="com.loren.DocumentAuthorComparator" inverse="true" lazy="true"> <key column="document"/> <index column="place" type="int"/> <one-to-many class="com.loren.DocumentAuthor"/> </map> (This is the corrected version.) Hibernate should give a specific error message in this situation. --------------------------------------------------------------------- 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 |