You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by yazid <sm...@yahoo.fr> on 2007/08/29 02:43:40 UTC
TObago
Hi all;
I've a strange problem with tobago jsp; happens sometimes and I can't
reproduce
-----
java.lang.NullPointerException
at org.apache.myfaces.tobago.component.UIPopup.isRendered(UIPopup.java:73)
at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:66)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:138)
..............
--------------
I've 3 popup in the page; all off in page load time.
Please help
--
View this message in context: http://www.nabble.com/TObago-tf4345120.html#a12379088
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: TObago
Posted by yazid <sm...@yahoo.fr>.
It Solved;
The problem was from my backing bean.
Thank Volker;
Volker Weber-5 wrote:
>
> Can you ensure that getDeleteRuleMessage() never returns null?
> Only in this case the NPE can happen.
>
> 2007/8/29, yazid <sm...@yahoo.fr>:
>>
>> Hi Volker;
>> Two of the popup have rendered="true" and the third have
>> rendered="#{ruleBrowserUI.deleteRuleMessage!=''}"; this method is a
>> getter
>> of a String
>> public String getDeleteRuleMessage() {
>> return deleteRuleMessage;
>> }
>>
>> The version of Tobago I'm using is 1.0.11
>> Regards;
>>
>>
>> yazid wrote:
>> >
>> > Hi all;
>> > I've a strange problem with tobago jsp; happens sometimes and I can't
>> > reproduce
>> > -----
>> > java.lang.NullPointerException
>> > at
>> > org.apache.myfaces.tobago.component.UIPopup.isRendered(UIPopup.java:73)
>> > at
>> >
>> org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:66)
>> > at
>> >
>> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:138)
>> > ..............
>> > --------------
>> > I've 3 popup in the page; all off in page load time.
>> > Please help
>> >
>> >
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/TObago-tf4345120.html#a12382919
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/TObago-tf4345120.html#a12589322
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: TObago
Posted by Volker Weber <v....@inexso.de>.
Can you ensure that getDeleteRuleMessage() never returns null?
Only in this case the NPE can happen.
2007/8/29, yazid <sm...@yahoo.fr>:
>
> Hi Volker;
> Two of the popup have rendered="true" and the third have
> rendered="#{ruleBrowserUI.deleteRuleMessage!=''}"; this method is a getter
> of a String
> public String getDeleteRuleMessage() {
> return deleteRuleMessage;
> }
>
> The version of Tobago I'm using is 1.0.11
> Regards;
>
>
> yazid wrote:
> >
> > Hi all;
> > I've a strange problem with tobago jsp; happens sometimes and I can't
> > reproduce
> > -----
> > java.lang.NullPointerException
> > at
> > org.apache.myfaces.tobago.component.UIPopup.isRendered(UIPopup.java:73)
> > at
> > org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:66)
> > at
> > org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:138)
> > ..............
> > --------------
> > I've 3 popup in the page; all off in page load time.
> > Please help
> >
> >
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/TObago-tf4345120.html#a12382919
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
Re: TObago
Posted by yazid <sm...@yahoo.fr>.
Hi Volker;
Two of the popup have rendered="true" and the third have
rendered="#{ruleBrowserUI.deleteRuleMessage!=''}"; this method is a getter
of a String
public String getDeleteRuleMessage() {
return deleteRuleMessage;
}
The version of Tobago I'm using is 1.0.11
Regards;
yazid wrote:
>
> Hi all;
> I've a strange problem with tobago jsp; happens sometimes and I can't
> reproduce
> -----
> java.lang.NullPointerException
> at
> org.apache.myfaces.tobago.component.UIPopup.isRendered(UIPopup.java:73)
> at
> org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:66)
> at
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:138)
> ..............
> --------------
> I've 3 popup in the page; all off in page load time.
> Please help
>
>
>
>
>
--
View this message in context: http://www.nabble.com/TObago-tf4345120.html#a12382919
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: TObago
Posted by yazid <sm...@yahoo.fr>.
Solved;
Thanks Volker;
Volker Weber-5 wrote:
>
> Hi Yazid,
>
> which version of tobago?
>
> this is UIPopup in trunk:
>
> 69
> 70 public boolean isRendered() {
> 71 ValueBinding valueBinding = getValueBinding("rendered");
> 72 if (valueBinding!= null) {
> 73 return (Boolean) valueBinding.getValue(getFacesContext());
> 74 } else {
> 75 return isActivated() || isRedisplay();
> 76 }
> 77 }
> 78
>
> The only NPE in line 73 could be a autoboxing NPE when converting a
> null returned by valueBinding to boolean return value.
>
>
> Regards,
> Volker
>
> 2007/8/29, yazid <sm...@yahoo.fr>:
>>
>> Hi all;
>> I've a strange problem with tobago jsp; happens sometimes and I can't
>> reproduce
>> -----
>> java.lang.NullPointerException
>> at
>> org.apache.myfaces.tobago.component.UIPopup.isRendered(UIPopup.java:73)
>> at
>> org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:66)
>> at
>> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:138)
>> ..............
>> --------------
>> I've 3 popup in the page; all off in page load time.
>> Please help
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/TObago-tf4345120.html#a12379088
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/TObago-tf4345120.html#a12589283
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: TObago
Posted by Volker Weber <v....@inexso.de>.
Hi Yazid,
which version of tobago?
this is UIPopup in trunk:
69
70 public boolean isRendered() {
71 ValueBinding valueBinding = getValueBinding("rendered");
72 if (valueBinding!= null) {
73 return (Boolean) valueBinding.getValue(getFacesContext());
74 } else {
75 return isActivated() || isRedisplay();
76 }
77 }
78
The only NPE in line 73 could be a autoboxing NPE when converting a
null returned by valueBinding to boolean return value.
Regards,
Volker
2007/8/29, yazid <sm...@yahoo.fr>:
>
> Hi all;
> I've a strange problem with tobago jsp; happens sometimes and I can't
> reproduce
> -----
> java.lang.NullPointerException
> at org.apache.myfaces.tobago.component.UIPopup.isRendered(UIPopup.java:73)
> at
> org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:66)
> at
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:138)
> ..............
> --------------
> I've 3 popup in the page; all off in page load time.
> Please help
>
>
>
>
> --
> View this message in context: http://www.nabble.com/TObago-tf4345120.html#a12379088
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>