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.
Build: NetBeans IDE 7.1 Beta (Build 201109222201) VM: Java HotSpot(TM) 64-Bit Server VM, 20.2-b06, Java(TM) SE Runtime Environment, 1.6.0_27-b07 OS: Windows 7 User Comments: sunbiz: Generating entity classes from database and named the class "_" and got this exception Stacktrace: java.lang.AssertionError: null TypeElement for "controller._" at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator$EntityClassGenerator.generateRelationship(JavaPersistenceGenerator.java:1285) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator$ClassGenerator.run(JavaPersistenceGenerator.java:778) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator$1.run(JavaPersistenceGenerator.java:502) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator$1.run(JavaPersistenceGenerator.java:496) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:665) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:655)
Created attachment 111240 [details] stacktrace
Tried number of generations with entity name set to '_' in entities from db wizard, is it the case? I can't reproduce the exception. Can you provide more steps, schema, and what classes are generated and what named as '_'?
*** Bug 203534 has been marked as a duplicate of this bug. ***
Created attachment 113587 [details] stacktrace Creating Entities from DB
no steps and details so far, is it random?
To reproduce: 1) Run the attached script on MySQL 2) Use the wizard to create Entities from DB
Created attachment 113595 [details] SQL script
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=181434
Created attachment 117194 [details] stacktrace
Created attachment 118618 [details] stacktrace Entity classes generation from Database wizard confirmed
Martin, is it always reproducible for some case?
I'm afraid Sergey that it's really random issue as you marked by the keyword. For second time the action finised sucessfully.
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=181434
may be fixed as well as 213736 with the same fix *** This bug has been marked as a duplicate of bug 213736 ***