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.
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)
Created attachment 109227 [details] stacktrace
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.
But I don't have reproducible case right now, next attempts result in "@Stateless{" wrong annotation without any npe.
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?
Yes, I still have "@Stateless{", may be related to 197538, so update 197538 to P2.
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?
what build do you use?
NetBeans IDE Dev (Build 20110912-c50ade4b58c7)
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.
What should I try?
with build created locally on win platform, try to create session bean for entity.
Yes, I am able to reproduce. I get */@Stateless{ public class CustomerFacade
*** Bug 204479 has been marked as a duplicate of this bug. ***
*** Bug 204843 has been marked as a duplicate of this bug. ***
Jirko, please could you verify that this was fixed together with issue #197538? Thanks...
Yes, it is fixed.
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 ***