From: <leg...@at...> - 2003-08-11 11:48:14
|
Message: The following issue has been closed. Resolver: Gavin King Date: Mon, 11 Aug 2003 6:46 AM OK, fixed now :) (v21branch) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-246 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-246 Summary: NPE in NormalizedEntityPersister.getIdentifierColumnNames() Type: Bug Status: Closed Priority: Critical Resolution: FIXED Project: Hibernate2 Components: core Versions: 2.1 beta 1 Assignee: Reporter: Thomas Jenny Created: Mon, 11 Aug 2003 4:50 AM Updated: Mon, 11 Aug 2003 6:46 AM Description: the mapping of my project worked fine in hibernate 2.0.x; with 2.1.beta1, the following exception is thrown when I try to build the session factory: java.lang.NullPointerException at net.sf.hibernate.persister.NormalizedEntityPersister.getIdentifierColumnNames(NormalizedEntityPersister.java:1075) at net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:699) at net.sf.hibernate.persister.NormalizedEntityPersister.<init>(NormalizedEntityPersister.java:646) at net.sf.hibernate.persister.PersisterFactory.create(PersisterFactory.java:32) at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:137) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:647) at ... Looking at the code in AbstractEntityPersister and NormalizedEntityPersister, it seems that the constructor of the super class is calling getIdentifierColumnNames(), but the fields used in this getter haven't been initialized yet. --------------------------------------------------------------------- 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 |