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.

Bug 91806 - Weird Nullpointer when generating code from DB model
Summary: Weird Nullpointer when generating code from DB model
Status: RESOLVED DUPLICATE of bug 89576
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-04 10:47 UTC by xmaniac
Modified: 2007-01-07 13:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans version number as requested (personal data removed) (19.93 KB, image/png)
2007-01-04 14:23 UTC, xmaniac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xmaniac 2007-01-04 10:47:32 UTC
I have already generated code for some entities. I try to generate a little more
of them when I get the following error:

java.lang.NullPointerException
	at
org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.addJoinTable(DbSchemaEjbGenerator.java:184)
	at
org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.addAllTables(DbSchemaEjbGenerator.java:139)
	at
org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.buildCMPSet(DbSchemaEjbGenerator.java:398)
	at
org.netbeans.modules.j2ee.persistence.entitygenerator.DbSchemaEjbGenerator.<init>(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.createBeans(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)
Comment 1 xmaniac 2007-01-04 11:06:02 UTC
Probably a duplicate of issue 89576 (although the line numbers don't match)
Comment 2 Andrei Badea 2007-01-04 14:16:19 UTC
Which build of 5.5 do you use? You can find it in the Detail tab of Help - About.
Comment 3 xmaniac 2007-01-04 14:23:06 UTC
Created attachment 37043 [details]
Netbeans version number as requested (personal data removed)
Comment 4 Andrei Badea 2007-01-07 13:37:47 UTC
Most likely a duplicate of issue 89576. The line numbers in DbSchemaEbjGenerator
don't match, but they both do the same thing, only line 184 works with the first
table referenced by a join table, wherease line 185 works with the second. See
DbSchemaEjbGenerator revision 1.1.2.1.2.12. Thanks for the report anyway.

*** This issue has been marked as a duplicate of 89576 ***