Do you have any filters or phase listeners that would be committing the response? If any filters or phase listeners that run before your redirect call set any HTTP headers or print any kind of output you will not be able to redirect.

On 7/27/06, QiuyunZhong <[EMAIL PROTECTED]> wrote:

RENDER_RESPONSE,however, no matter whether i sendirect in phase RESTOR_VIEW
or RENDER_RESPONSE,it throws the exception.
when i redirect in RENDER_RESPONSE phase,it issues the exception and doesn't
rediret the page;
when i try to redirect in RESTORE_VIEW,the exception is still issued,however
the page is redirected to the signon.jsf.
Following is the stacktrace,hope them can give some hints:
23:11:28,390 INFO  [STDOUT] java.lang.IllegalStateException
23:11:28,390 INFO  [STDOUT]     at
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:423)
23:11:28,390 INFO  [STDOUT]     at
base.presentation.common.ShowPhaseListener.afterPhase(ShowPhaseListener.java :59)
23:11:28,390 INFO  [STDOUT]     at
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
23:11:28,390 INFO  [STDOUT]     at
org.apache.myfaces.lifecycle.LifecycleImpl.restoreView (LifecycleImpl.java:181)
23:11:28,390 INFO  [STDOUT]     at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
23:11:28,390 INFO  [STDOUT]     at
javax.faces.webapp.FacesServlet.service( FacesServlet.java:146)
Thanks in advance!
--
View this message in context: http://www.nabble.com/sendRedirect-throws-illegalstateexception-tf2009802.html#a5523055
Sent from the MyFaces - Users forum at Nabble.com.


Reply via email to