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 219557 - AssertionError: null TypeElement for "com.validation.manager.core.db.Investigation"
Summary: AssertionError: null TypeElement for "com.validation.manager.core.db.Investig...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2012-10-04 21:38 UTC by javydreamercsw
Modified: 2012-10-25 01:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 193071


Attachments
stacktrace (4.45 KB, text/plain)
2012-10-04 21:38 UTC, javydreamercsw
Details
MySQL script (66.42 KB, application/octet-stream)
2012-10-05 13:43 UTC, javydreamercsw
Details
Data base design (96.78 KB, application/octet-stream)
2012-10-05 13:44 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2012-10-04 21:38:45 UTC
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)
Comment 1 javydreamercsw 2012-10-04 21:38:47 UTC
Created attachment 125414 [details]
stacktrace
Comment 2 Sergey Petrov 2012-10-05 03:14:11 UTC
is it reproducible for specific schema or a project?
Comment 3 javydreamercsw 2012-10-05 13:43:44 UTC
Created attachment 125456 [details]
MySQL script

It worked the second time. This is the MySQL script for the database I was creating from.
Comment 4 javydreamercsw 2012-10-05 13:44:23 UTC
Created attachment 125458 [details]
Data base design
Comment 5 javydreamercsw 2012-10-05 13:45:35 UTC
Hope the attachments help.
Comment 6 Sergey Petrov 2012-10-05 13:49:49 UTC
thanks, both random behavior information and the script should help at least a bit
Comment 7 Sergey Petrov 2012-10-24 15:34:28 UTC
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.
Comment 8 Quality Engineering 2012-10-25 01:32:55 UTC
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