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 199881 - 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 DUPLICATE of bug 197538
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
: 204479 204843 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-04 14:15 UTC by Sergey Petrov
Modified: 2012-04-12 07:51 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 175993


Attachments
stacktrace (1.47 KB, text/plain)
2011-07-04 14:15 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2011-07-04 14:15:22 UTC
Build: NetBeans IDE Dev (Build 20110704-b080cbd0cd80)
VM: Java HotSpot(TM) Client VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows 7

User Comments:
sj-nb: generate session bean for entity




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator.generate(EjbFacadeWizardIterator.java:447)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator.generate(EjbFacadeWizardIterator.java:228)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator.instantiateWProgress(EjbFacadeWizardIterator.java:208)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator.instantiate(EjbFacadeWizardIterator.java:172)
   at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1019)
   at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:591)
Comment 1 Sergey Petrov 2011-07-04 14:15:27 UTC
Created attachment 109227 [details]
stacktrace
Comment 2 Sergey Petrov 2011-07-04 14:17:50 UTC
may be related with 197538 as in jsf from entities I got wrong location for annotaion and for session bean from entity got this npe and @Stateless isn't generated at all.
Comment 3 Sergey Petrov 2011-07-04 14:22:55 UTC
But I don't have reproducible case right now, next attempts result in "@Stateless{" wrong annotation without any npe.
Comment 4 Martin Fousek 2011-09-12 09:32:17 UTC
Thanks for reporting that issue Sergey. I generated entity classes from whole sample DB and the generated SBs for every EC and no NPE happend and also all beans looks correctly. Are you still able to reproduce?
Comment 5 Sergey Petrov 2011-09-12 09:50:01 UTC
Yes, I still have "@Stateless{", may be related to 197538, so update 197538  to P2.
Comment 6 Martin Fousek 2011-09-12 12:06:23 UTC
Ok, thanks. And do you have idea how to reproduce that? I tried generate ECs from DB and then SBs from ECs. Is that the same work flow which are you trying too?
Comment 7 Sergey Petrov 2011-09-12 12:10:57 UTC
what build do you use?
Comment 8 Martin Fousek 2011-09-12 12:12:44 UTC
NetBeans IDE Dev (Build 20110912-c50ade4b58c7)
Comment 9 Sergey Petrov 2011-09-12 12:25:32 UTC
see 197538, if Jiri will reply and is able to reproduce the issue with "{" then this one is likely a duplicate of issue 197538, as npe itself was reproducible only once and may be related too or may be not reproducible.
Comment 10 Jiri Skrivanek 2011-09-13 11:23:37 UTC
What should I try?
Comment 11 Sergey Petrov 2011-09-13 11:29:29 UTC
with build created locally on win platform, try to create session bean for entity.
Comment 12 Jiri Skrivanek 2011-09-13 11:47:49 UTC
Yes, I am able to reproduce. I get

 */@Stateless{
public class CustomerFacade
Comment 13 Martin Fousek 2011-11-01 08:31:38 UTC
*** Bug 204479 has been marked as a duplicate of this bug. ***
Comment 14 Martin Fousek 2011-11-08 16:13:18 UTC
*** Bug 204843 has been marked as a duplicate of this bug. ***
Comment 15 Martin Fousek 2011-11-22 10:18:00 UTC
Jirko, please could you verify that this was fixed together with issue #197538? Thanks...
Comment 16 Jiri Skrivanek 2011-11-22 10:21:04 UTC
Yes, it is fixed.
Comment 17 Martin Fousek 2012-04-12 07:51:08 UTC
Ok, since it was fixed together with #197538, it's likely duplicate of it.

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