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 181253 - NullPointerException at org.netbeans.modules.j2ee.persistence.provider.ProviderUtil.addPersistenceUnit
Summary: NullPointerException at org.netbeans.modules.j2ee.persistence.provider.Provid...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
: 181333 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-26 02:25 UTC by Chiana
Modified: 2010-03-16 12:36 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 165738


Attachments
stacktrace (6.69 KB, text/plain)
2010-02-26 02:25 UTC, Chiana
Details
Copy of message.log id #345328 (71.96 KB, application/octet-stream)
2010-02-27 07:06 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2010-02-26 02:25:24 UTC
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)
Comment 1 Chiana 2010-02-26 02:25:28 UTC
Created attachment 94544 [details]
stacktrace
Comment 2 Sergey Petrov 2010-02-27 04:52:13 UTC
Can you attach message.log from your netbeans home directory?
What project type do you use? Is it always reproducible for you?
Comment 3 Sergey Petrov 2010-02-27 05:59:27 UTC
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.
Comment 4 Chiana 2010-02-27 07:06:52 UTC
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
Comment 5 Sergey Petrov 2010-02-27 07:17:31 UTC
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.
Comment 7 Sergey Petrov 2010-03-01 07:40:07 UTC
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.
Comment 8 Quality Engineering 2010-03-02 11:27:47 UTC
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
Comment 9 Sergey Petrov 2010-03-16 12:36:03 UTC
*** Bug 181333 has been marked as a duplicate of this bug. ***