java.lang.NullPointerException

Hibernate JIRA | Ingo Schildmann | 1 decade ago
  1. 0

    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.

    Hibernate JIRA | 1 decade ago | Ingo Schildmann
    java.lang.NullPointerException
  2. 0

    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.

    Hibernate JIRA | 1 decade ago | Ingo Schildmann
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at net.sf.hibernate.cfg.Binder.bindCollectionSecondPass()
    2. net.sf.hibernate
      SchemaExportTask.execute
      1. net.sf.hibernate.cfg.Binder.bindCollectionSecondPass(Binder.java:1076)
      2. net.sf.hibernate.cfg.Binder.bindSetSecondPass(Binder.java:923)
      3. net.sf.hibernate.cfg.Binder$SetSecondPass.secondPass(Binder.java:1187)
      4. net.sf.hibernate.cfg.Binder$SecondPass.doSecondPass(Binder.java:1135)
      5. net.sf.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:497)
      6. net.sf.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:352)
      7. net.sf.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:51)
      8. net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.getSchemaExport(SchemaExportTask.java:198)
      9. net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:129)
      9 frames
    3. Ant
      Main.main
      1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
      2. org.apache.tools.ant.Task.perform(Task.java:317)
      3. org.apache.tools.ant.Target.execute(Target.java:309)
      4. org.apache.tools.ant.Target.performTasks(Target.java:334)
      5. org.apache.tools.ant.Project.executeTarget(Project.java:1306)
      6. org.apache.tools.ant.Project.executeTargets(Project.java:1250)
      7. org.apache.tools.ant.Main.runBuild(Main.java:610)
      8. org.apache.tools.ant.Main.start(Main.java:196)
      9. org.apache.tools.ant.Main.main(Main.java:235)
      9 frames