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 217461 - NullPointerException at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator$EntityClassGenerator.generateRelationship
Summary: NullPointerException at org.netbeans.modules.j2ee.persistence.wizard.fromdb.J...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.1
Hardware: All All
: P4 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords: RANDOM
: 221773 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-27 13:05 UTC by Exceptions Reporter
Modified: 2017-12-19 16:45 UTC (History)
18 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191877


Attachments
stacktrace (2.99 KB, text/plain)
2012-08-27 13:05 UTC, Exceptions Reporter
Details
stacktrace (2.99 KB, text/plain)
2012-11-07 08:20 UTC, ernestojpg
Details
stacktrace (3.00 KB, text/plain)
2014-02-24 19:11 UTC, javydreamercsw
Details
stacktrace (2.99 KB, text/plain)
2014-02-24 19:14 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-08-27 13:05:29 UTC
This bug was originally marked as duplicate of bug 152634, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.1 (Build 201112071828)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows Vista

User Comments:
GUEST: Generating entities from database tables




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator$EntityClassGenerator.generateRelationship(JavaPersistenceGenerator.java:1286)
   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 Exceptions Reporter 2012-08-27 13:05:31 UTC
Created attachment 123607 [details]
stacktrace
Comment 2 Sergey Petrov 2012-09-10 12:49:31 UTC
unfortunately seems random, hard to evaluate with current infotmation, exception rate isn't big also.
Comment 3 ernestojpg 2012-11-07 08:20:11 UTC
Created attachment 127274 [details]
stacktrace
Comment 4 Sergey Petrov 2012-11-09 08:50:41 UTC
*** Bug 221773 has been marked as a duplicate of this bug. ***
Comment 5 Quality Engineering 2012-11-10 03:26:43 UTC
Integrated into 'main-golden', will be available in build *201211100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f7fb76ecf43f
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #217461 extended logging in case of null
Comment 6 Quality Engineering 2012-11-23 02:41:09 UTC
Integrated into 'main-golden', will be available in build *201211230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/610e1d5472dd
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #217461 some more details about fileobjects
Comment 7 Sergey Petrov 2013-12-24 12:58:48 UTC
I see no reports for 7.4/7.4.1  etc, there may be some changes in core java support
Comment 8 Sergey Petrov 2013-12-24 13:02:17 UTC
postpone resolution for now, change to P4
Comment 9 javydreamercsw 2014-02-24 19:11:06 UTC
Created attachment 145550 [details]
stacktrace

Trying to create entities from DB.
Comment 10 javydreamercsw 2014-02-24 19:14:06 UTC
Created attachment 145551 [details]
stacktrace

During Entity creation.