| Summary: | WPE Properties is throwing NullPointer Exception in Eclipse Indigo Version | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Java Server Faces | Reporter: | bunta Choudhary <abhishek.choudhary> | ||||
| Component: | UI | Assignee: | Ian Trimble <ian.trimble> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | achima123, cimfalab, legume1, raghunathan.srinivasan, thatnitind | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.4.0 M6 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
bunta Choudhary
Created attachment 203779 [details]
Eclipse Indigo NullpointerException screenshot
I have the same problem, too.
But I'm using Static Web Project.
In case of Dynamic Web Project, I think the error is occurred due to JSF Facet.
If you create Dynamic Web Project, select "Configuration" to "JavaServer Faces v2.0 Project" in Project Wizard.
It will work with no error.
But I could use Attributes in Eclipse 3.6 although I had Static Web Project.
In 3.6 AttributePropertySource code:
private IPropertyDescriptor getAttrPropertyDescriptor(String attrName){
Entity attrEntity = TaglibDomainMetaDataQueryHelper.getEntity(_tagEntity, attrName);
In 3.7 AttributePropertySource code:
private IPropertyDescriptor getAttrPropertyDescriptor(String attrName){
Entity attrEntity = _query.getEntity(_tagEntity, attrName);
But _query in not instantiated in getTagEntity() because ITaglibContextResolver is null (lack of JSF Facet). That result is NullPointerException.
So I think it needs to be rollbacked because many users will want to use Web Page Editor in Static Web Project also.
(In reply to comment #2) > I have the same problem, too. > > But I'm using Static Web Project. > In case of Dynamic Web Project, I think the error is occurred due to JSF Facet. > If you create Dynamic Web Project, select "Configuration" to "JavaServer Faces > v2.0 Project" in Project Wizard. > It will work with no error. > > But I could use Attributes in Eclipse 3.6 although I had Static Web Project. > > In 3.6 AttributePropertySource code: > private IPropertyDescriptor getAttrPropertyDescriptor(String attrName){ > Entity attrEntity = TaglibDomainMetaDataQueryHelper.getEntity(_tagEntity, > attrName); > > In 3.7 AttributePropertySource code: > private IPropertyDescriptor getAttrPropertyDescriptor(String attrName){ > Entity attrEntity = _query.getEntity(_tagEntity, attrName); > > But _query in not instantiated in getTagEntity() because ITaglibContextResolver > is null (lack of JSF Facet). That result is NullPointerException. > > So I think it needs to be rollbacked because many users will want to use Web > Page Editor in Static Web Project also. I agree with you!!! From Raghu: "Please review, if valid, we have to fix this in Indigo SR2 also." *** This bug has been marked as a duplicate of bug 364667 *** |