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 202734 - [71cat] AssertionError: null TypeElement for "controller._"
Summary: [71cat] AssertionError: null TypeElement for "controller._"
Status: RESOLVED DUPLICATE of bug 213736
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords: RANDOM
: 203534 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-27 12:21 UTC by sunbiz
Modified: 2012-06-09 11:59 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181434


Attachments
stacktrace (4.40 KB, text/plain)
2011-09-27 12:21 UTC, sunbiz
Details
stacktrace (4.48 KB, text/plain)
2011-11-28 17:55 UTC, javydreamercsw
Details
SQL script (53.90 KB, application/octet-stream)
2011-11-28 20:17 UTC, javydreamercsw
Details
stacktrace (6.52 KB, text/plain)
2012-03-24 13:46 UTC, sunbiz
Details
stacktrace (4.38 KB, text/plain)
2012-04-23 09:14 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2011-09-27 12:21:01 UTC
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)
Comment 1 sunbiz 2011-09-27 12:21:05 UTC
Created attachment 111240 [details]
stacktrace
Comment 2 Sergey Petrov 2011-10-11 15:20:25 UTC
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 '_'?
Comment 3 Sergey Petrov 2011-10-11 15:54:58 UTC
*** Bug 203534 has been marked as a duplicate of this bug. ***
Comment 4 javydreamercsw 2011-11-28 17:55:11 UTC
Created attachment 113587 [details]
stacktrace

Creating Entities from DB
Comment 5 Sergey Petrov 2011-11-28 20:03:39 UTC
no steps and details so far, is it random?
Comment 6 javydreamercsw 2011-11-28 20:16:40 UTC
To reproduce:

1) Run the attached script on MySQL
2) Use the wizard to create Entities from DB
Comment 7 javydreamercsw 2011-11-28 20:17:07 UTC
Created attachment 113595 [details]
SQL script
Comment 8 Exceptions Reporter 2011-12-23 16:34:32 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=181434
Comment 9 sunbiz 2012-03-24 13:46:55 UTC
Created attachment 117194 [details]
stacktrace
Comment 10 Martin Fousek 2012-04-23 09:14:27 UTC
Created attachment 118618 [details]
stacktrace

Entity classes generation from Database wizard confirmed
Comment 11 Sergey Petrov 2012-04-23 09:34:58 UTC
Martin, is it always reproducible for some case?
Comment 12 Martin Fousek 2012-04-23 10:26:03 UTC
I'm afraid Sergey that it's really random issue as you marked by the keyword. For second time the action finised sucessfully.
Comment 13 Exceptions Reporter 2012-06-05 16:10:19 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=181434
Comment 14 Sergey Petrov 2012-06-09 11:59:53 UTC
may be fixed as well as 213736 with the same fix

*** This bug has been marked as a duplicate of bug 213736 ***