Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Null pointer exception on facesContext  RSS feed

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any one to help me ...
 
sigamala viswanath
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any idea on Above question ?

Thanks,
Viswanath
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Verify your web.xml and faces-config.xml files.
 
No more fooling around. Read this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!