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 251102 - NullPointerException at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator.generate
Summary: NullPointerException at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao....
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-11 13:35 UTC by pkevin
Modified: 2016-07-07 08:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 216040


Attachments
stacktrace (1.50 KB, text/plain)
2015-03-11 13:35 UTC, pkevin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pkevin 2015-03-11 13:35:32 UTC
This bug was originally marked as duplicate of bug 213669, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Windows 7

User Comments:
pkevin: Attempting to create Entity beans from entity classes.  A large number of entity classes caused this error.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator.generate(EjbFacadeWizardIterator.java:495)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator.generate(EjbFacadeWizardIterator.java:232)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator.instantiateWProgress(EjbFacadeWizardIterator.java:212)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator.instantiate(EjbFacadeWizardIterator.java:176)
   at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1044)
   at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605)
Comment 1 pkevin 2015-03-11 13:35:34 UTC
Created attachment 152558 [details]
stacktrace
Comment 2 Petr Hejl 2015-07-10 12:16:32 UTC
Any details on how to reproduce this? It looks like the Facade has been deleted and there are reports about already existing files. Any manual delete actions?
Comment 3 pkevin 2015-07-10 12:22:14 UTC
Only thing I can add to this report is that I was creating EJBs from Entity classes which had embedded classes which contained the primary key, via the @Embeddable and @EmbeddedId annotations.  But then again, it didn't happen to all class(es) that contained those constructs.  Perhaps just something that happened in the "Create entity classes from database" process that didn't create something correctly.
Sorry I can't be more help on this.
Comment 4 Martin Balin 2016-07-07 08:55:42 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss