From: <leg...@at...> - 2003-10-10 15:47:20
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-392 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-392 Summary: NPE in net.sf.hibernate.cfg.Binder.bindCollectionSecondPass Type: Bug Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.0.3 Assignee: Reporter: Ingo Schildmann Created: Fri, 10 Oct 2003 10:47 AM Updated: Fri, 10 Oct 2003 10:47 AM Description: java.lang.NullPointerException at net.sf.hibernate.cfg.Binder.bindCollectionSecondPass(Binder.java:1076) at net.sf.hibernate.cfg.Binder.bindSetSecondPass(Binder.java:923) at net.sf.hibernate.cfg.Binder$SetSecondPass.secondPass(Binder.java:1187) at net.sf.hibernate.cfg.Binder$SecondPass.doSecondPass(Binder.java:1135) at net.sf.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:497) at net.sf.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:352) at net.sf.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:51) at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.getSchemaExport(SchemaExportTask.java:198) at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:129) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) The line in the sourcecode is: model.getKey().createForeignKeyOfClass( model.getOwner().getPersistentClass() ); Tinkering with the sourcecode showed that the problem is that model.getKey() returned null. --------------------------------------------------------------------- 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 |