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.
This bug was originally marked as duplicate of bug 213736, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201210040002) VM: Java HotSpot(TM) Client VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11 OS: Windows 7 User Comments: javydreamercsw: Create Entities from DB Stacktrace: java.lang.AssertionError: null TypeElement for "com.validation.manager.core.db.Investigation" at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator$EntityClassGenerator.generateRelationship(JavaPersistenceGenerator.java:1371) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator$ClassGenerator.run(JavaPersistenceGenerator.java:841) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator$2.run(JavaPersistenceGenerator.java:559) at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator$2.run(JavaPersistenceGenerator.java:553) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:644) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:634)
Created attachment 125414 [details] stacktrace
is it reproducible for specific schema or a project?
Created attachment 125456 [details] MySQL script It worked the second time. This is the MySQL script for the database I was creating from.
Created attachment 125458 [details] Data base design
Hope the attachments help.
thanks, both random behavior information and the script should help at least a bit
http://hg.netbeans.org/web-main/rev/79d819cc5e83 may fix or reduce probability, can't reproduce myself after multiple tries with validation manager. With random behavior it's hard to have proper fix but hope it's less likely now. Anyway new reports will create new issue or will reopen this one instead to collect more statistic.
Integrated into 'main-golden', will be available in build *201210250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/79d819cc5e83 User: Sergey B. Petrov <sj-nb@netbeans.org> Log: #219557 a bit more in refresh