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 220073 - NullPointerException at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator.runImpl
Summary: NullPointerException at org.netbeans.modules.j2ee.persistence.wizard.fromdb.J...
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:
Depends on:
Blocks:
 
Reported: 2012-10-14 17:17 UTC by Exceptions Reporter
Modified: 2014-01-29 02:52 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 193528


Attachments
stacktrace (2.37 KB, text/plain)
2012-10-14 17:17 UTC, Exceptions Reporter
Details
stacktrace (1.10 KB, text/plain)
2013-11-08 13:42 UTC, ggghhhjjj
Details
stacktrace (4.56 KB, text/plain)
2014-01-28 13:25 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-10-14 17:17:48 UTC
This bug was originally marked as duplicate of bug 199629, 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.3 Beta (Build 201210011125)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows 7

User Comments:
GUEST: Generating Domain Classes from DB




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator.runImpl(JavaPersistenceGenerator.java:421)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator.run(JavaPersistenceGenerator.java:386)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator.generateBeans(JavaPersistenceGenerator.java:215)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator.generateBeans(JavaPersistenceGenerator.java:167)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.createBeans(RelatedCMPWizard.java:396)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.access$000(RelatedCMPWizard.java:85)
Comment 1 Exceptions Reporter 2012-10-14 17:17:51 UTC
Created attachment 125943 [details]
stacktrace
Comment 2 Sergey Petrov 2012-10-22 12:33:34 UTC
Is it reproducible always or random for some schema?
Comment 3 Sergey Petrov 2012-10-23 09:01:18 UTC
hard to evaluate without details, but keep open to collect more statistic
Comment 4 Quality Engineering 2012-10-24 01:30:00 UTC
Integrated into 'main-golden', will be available in build *201210240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/53fc25004ddb
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #220073 use names as is if can get proper name instead of capitalized one
Comment 5 ggghhhjjj 2013-11-08 13:42:12 UTC
Created attachment 141990 [details]
stacktrace

Just created rest database entity from wizard
Comment 6 Sergey Petrov 2014-01-28 13:25:13 UTC
Created attachment 144465 [details]
stacktrace

rest from db if non existent package is specified
Comment 7 Sergey Petrov 2014-01-28 13:29:52 UTC
I'm able to reproduce, all reports except first 2 are from rest wizard, there are no mpore reports from entities from db wizard since 7.3.
Comment 8 Sergey Petrov 2014-01-28 13:52:46 UTC
http://hg.netbeans.org/web-main/rev/d51f780da54d
Comment 9 Quality Engineering 2014-01-29 02:52:36 UTC
Integrated into 'main-silver', will be available in build *201401290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d51f780da54d
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #220073 create target folder