This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
java.lang.NullPointerException at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.addJ oinTable(DbSchemaEjbGenerator.java:185) at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.addA llTables(DbSchemaEjbGenerator.java:139) at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.buil dCMPSet(DbSchemaEjbGenerator.java:398) at org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.<ini t>(DbSchemaEjbGenerator.java:57) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPHelper.buildBeans (RelatedCMPHelper.java:245) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.createBean s(RelatedCMPWizard.java:308) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.access$000 (RelatedCMPWizard.java:53) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard$1.run (RelatedCMPWizard.java:227) at org.openide.util.RequestProcessor$Task.run (RequestProcessor.java:499) [catch] at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:932)
Created attachment 36121 [details] My IDE log message file.
I recall seeing this error reported, but I have never managed to reproduce it. Is the exception always reproducible? Can you please post the schema of your database, or any trimmed-down schema which triggers the exception? If not, please try to first generate a database schema file (New File - Persistence - Database Schema) and then invoke the Entity Classes from DB wizard and attempt to generate the entity classs from that schema file instead of the database connection. Do you still get the error? Thanks.
Created attachment 36175 [details] DBSchema file sent by reporter by private e-mail
The cause of the issue is that the REGION table in the attached dbschema file is considered a join table, which it is not.
Fixed. Checking in DbSchemaEjbGenerator.java; /cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/entitygenerator/DbSchemaEjbGenerator.java,v <-- DbSchemaEjbGenerator.java new revision: 1.3; previous revision: 1.2 done
*** Issue 88521 has been marked as a duplicate of this issue. ***
*** Issue 77605 has been marked as a duplicate of this issue. ***
*** Issue 91806 has been marked as a duplicate of this issue. ***