This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes Null pointer exception on facesContext Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Null pointer exception on facesContext" Watch "Null pointer exception on facesContext" New topic
Author

Null pointer exception on facesContext

sigamala viswanath
Greenhorn

Joined: Mar 13, 2006
Posts: 26
Hi,
FacesContext facesContext = FacesContext.getCurrentInstance();
ResponseWriter writer = facesContext.getResponseWriter();

Above Code writer is value Null.

facescontext = com.sun.faces.context.FacesContextImpl@30543054
facesContext.getResponseWriter() = null

Can any body help me why its null wht the issue.


Thanks,
Viswanath
sigamala viswanath
Greenhorn

Joined: Mar 13, 2006
Posts: 26
Any one to help me ...
sigamala viswanath
Greenhorn

Joined: Mar 13, 2006
Posts: 26
Any idea on Above question ?

Thanks,
Viswanath
ramu prabakaran
Greenhorn

Joined: Mar 20, 2006
Posts: 9
Verify your web.xml and faces-config.xml files.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Null pointer exception on facesContext
 
Similar Threads
Can we Access FacesContext outside FacesServlet
cuzstomized component
WA #1.....word association
Custom UIInput
how to access faces context and backing beans in a servlet filter