Null Pointer exception in #{verzekeraarSelectAction.select}: javax.faces.el.EvaluationException: java.lang.NullPointerException

94 views
Skip to first unread message

Ranjan

unread,
Sep 30, 2008, 6:39:30 AM9/30/08
to Java Web Application
Hi group,
I am using jsf and when i press ancher link on page then getting
null pointer expeption due to
certian error in controller.

#{verzekeraarSelectAction.select}: javax.faces.el.EvaluationException:
java.lang.NullPointerException

what could be possible solution over it..

thanks
prabhat

Ravish

unread,
Oct 15, 2008, 6:06:43 AM10/15/08
to Java Web Application
Hi prabhat,

NullPointerException only comes when Null is passed in session.
javax.faces.el.EvaluationException: In this case FacesContext must be
saved in the session and then you are reusing it. Thus it would not be
valid any more. If you are using session and trying to get it in the
next page when you press ancher link, then its getting null thats will
be the reason.
Please check the following:
1) Try to call FacesContext.getCurrentInstance()
2) You may save the context within a method in a variable also.

Regards,
Ravish Mody

Prabhat Ranjan

unread,
Oct 15, 2008, 6:55:55 PM10/15/08
to javaw...@googlegroups.com
hi Ravish,
  how are you ? i m fine !!
i have already solve this problem !!
thx for your ans !!
will help it me later !
 
thanks
prabhat

Reply all
Reply to author
Forward
0 new messages