This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Strange NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Strange NullPointerException" Watch "Strange NullPointerException" New topic

Strange NullPointerException

B Nirvan
Ranch Hand

Joined: Oct 20, 2010
Posts: 82
I am facing a very strange problem. Here is the steps that result in a NullPointerException. I am using Glassfish v3 (JSF Mojarra 2.0.2).

Load page1 giving the url in browser.
Press any button in page 1. Takes the user to page 2.
Process page 2 by pressing button. After processing is over press back button (type=submit) in page 2 to go back to page 1. Navigation occurs and page 1 is displayed.
Press any button in just loaded page 1. This throws NullPointerException. Here is the stack trace.

I have no idea what is going wrong.

Jose Rodolfo freitas

Joined: Sep 01, 2005
Posts: 9
Did you figure it out why it´s working that way?

I´m puzzling myself to discover why it has this strange behaviour, without success though.
B Nirvan
Ranch Hand

Joined: Oct 20, 2010
Posts: 82
Which windows version are you using. This problem occurred specifically on my aged windows xp machine. However it does not occur on windows 7. If you are running on windows xp, and using Mojarra, use the 2.0.3 version. If you don't have the liberty of changing the JSF version, then I believe I can't be of any real help to you. I didn't try to figure out why this problem occurred as I was able to resolve it using the latest Mojarra JSF implentation.

I agree. Here's the link:
subject: Strange NullPointerException
Similar Threads
Jsf DropDown menu "java.util.NoSuchElementException"
How to upload file in jsf using richfaces?
IceFaces SessionHasExpired Exception....!!!
How to remote call the EJB which deploy in other glassfish server
SEVERE: javax.faces.FacesException: java.lang.ClassCastException: