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 210479 - NullPointerException at org.netbeans.modules.j2ee.persistence.wizard.entity.EntityWizard.generateEntity
Summary: NullPointerException at org.netbeans.modules.j2ee.persistence.wizard.entity.E...
Status: RESOLVED WORKSFORME
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:
Depends on:
Blocks:
 
Reported: 2012-03-31 15:02 UTC by ikoframe
Modified: 2015-02-04 03:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 186496


Attachments
stacktrace (5.93 KB, text/plain)
2012-03-31 15:02 UTC, ikoframe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ikoframe 2012-03-31 15:02:50 UTC
Build: NetBeans IDE 7.1 (Build 201112071828)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows 7

User Comments:
ikoframe: I tried to create and entity class along with persistence unit.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.persistence.wizard.entity.EntityWizard.generateEntity(EntityWizard.java:343)
   at org.netbeans.modules.j2ee.persistence.wizard.entity.EntityWizard.instantiate(EntityWizard.java:162)
   at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1048)
   at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:617)
   at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:426)
   at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:247)
Comment 1 ikoframe 2012-03-31 15:02:54 UTC
Created attachment 117592 [details]
stacktrace
Comment 2 Sergey Petrov 2012-04-10 10:05:13 UTC
Some logging was added in 7.2 to track down possible reasons, but it's not in 7.1.

Is it possible to reproduce the issue or it was once only?
Comment 3 ikoframe 2012-04-10 10:31:38 UTC
It happened several times. I'll try to create some steps to reproduces it. Or maybe even debug it. I think that it was caused by some (not that obvious) misconfiguration.  But anyway an error message is better than NullPointerException.
Comment 4 Sergey Petrov 2012-04-23 12:50:36 UTC
>P4 for now, to get more reports/statistic or more details
Comment 5 Quality Engineering 2015-02-04 03:29:56 UTC
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.