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 180720 - NPE when adding JSF framework to maven web application
Summary: NPE when adding JSF framework to maven web application
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Alexey Butenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-15 04:28 UTC by Michal Mocnak
Modified: 2010-02-17 04:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log (939 bytes, application/octet-stream)
2010-02-15 04:34 UTC, Michal Mocnak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Mocnak 2010-02-15 04:28:20 UTC
Steps to reproduce:

- create a maven web app
- in project's properties pane choose and add JSF framework

=> NPE is thrown and the framework is not added

Another weird behaviour appeared in JSF framework tabs -> there is only JSP value even if i have JSF 2.0 chosen. After when i reselect JSF 2.0 the facelets option will appear. But it has no effect on previous NPE.
Comment 1 Michal Mocnak 2010-02-15 04:34:53 UTC
Created attachment 94154 [details]
log
Comment 2 Marian Mirilovic 2010-02-15 05:08:03 UTC
stopper for M1, please proceed with fix/integration into M1 clone ASAP. Thanks in advance.
Comment 3 Michal Mocnak 2010-02-15 05:54:49 UTC
Downgrading to P2. Workaround was found:

The preferred language option affected the NPE. If you reset preferred language first to Facelets NPE won't show up.
Comment 4 Alexey Butenko 2010-02-16 02:58:59 UTC
I'm not able to reproduce the original NPE. But I've found that if to click OK button before registered libraries was found, it will result a similar NPE. So fixed
preferred language problem and NPE disappeared. Please, verify that issue is gone.

http://hg.netbeans.org/web-main/rev/6e3b5f8cbaa7
Comment 5 Quality Engineering 2010-02-16 21:47:31 UTC
Integrated into 'main-golden', will be available in build *201002170200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6e3b5f8cbaa7
User: Alexey Butenko <alexeybutenko@netbeans.org>
Log: #180720: NPE when adding JSF framework to maven web application
Comment 6 Michal Mocnak 2010-02-17 04:18:02 UTC
Verified in trunk