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 201002260200) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows Vista User Comments: Chiana: Tried to generate JSF pages from an entity, had not created an persistent module prior to running wizard. Chiana: Seems there is still a problem in the wizard, I will try this again but create the persistant unit before running wizard, if there is no error report it works... B-) Stacktrace: java.lang.NullPointerException at org.netbeans.modules.j2ee.persistence.provider.ProviderUtil.addPersistenceUnit(ProviderUtil.java:600) at org.netbeans.modules.web.jsf.wizards.PersistenceClientIterator.instantiate(PersistenceClientIterator.java:161) at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:588) at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:409) at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248) at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:161)
Created attachment 94544 [details] stacktrace
Can you attach message.log from your netbeans home directory? What project type do you use? Is it always reproducible for you?
I see this exception but in case if persistence unit was created before but in thisnb session, not sure if it's the same case.
Created attachment 94586 [details] Copy of message.log id #345328 The message.log for last exception. One more note, I had just upgraded to 201002270200
Thanks, In my case with created pu, it's a regression between 0224 and 0226. Not sure yet how to reproduce with newly created pu, but may be it's the same issue.
caused by next change http://hg.netbeans.org/web-main/diff/00f2121afa57/web.project/src/org/netbeans/modules/web/project/WebProject.java
http://hg.netbeans.org/web-main/rev/c284416ddb7d roll back some changes hope it will fix the issue, feel free to reopen if it will not resolve your case.
Integrated into 'main-golden', will be available in build *201003021507* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c284416ddb7d User: Sergey B. Petrov <sj-nb@netbeans.org> Log: #180935, #181253 rollback one change to fix 181253 fast, need to change realization
*** Bug 181333 has been marked as a duplicate of this bug. ***