1 2 Previous Next 18 Replies Latest reply: May 4, 2012 8:14 AM by Andre Eugenio RSS

Illegal attempt to set ViewHandler after a response has been rendered

Daniel Nascimento Newbie

Hi all!!!

 

I got some problems today!

 

Everytime I tryed to use my applicatin, I got the stack trace below.

 

 

javax.servlet.ServletException: Illegal attempt to set ViewHandler after a response has been rendered.

          javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)

          org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

          org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

          org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

          org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

root cause

java.lang.IllegalStateException: Illegal attempt to set ViewHandler after a response has been rendered.

          com.sun.faces.application.ApplicationImpl.setViewHandler(ApplicationImpl.java:563)

          org.ajax4jsf.event.InitPhaseListener.beforePhase(InitPhaseListener.java:92)

          com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)

          com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)

          com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:111)

          com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

          javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)

          org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

          org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

          org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

          org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.30 logs.

 

 

The strange is that if I remove the richfaces jars of my application everything is gonna rigth.

 

Anybody can help me?

 

Regards.

Daniel

1 2 Previous Next