Re: java.lang.IllegalStateException: Response already committed

Splash Forums PrettyFaces Users java.lang.IllegalStateException: Response already committed Re: java.lang.IllegalStateException: Response already committed

#22451

Arun Kumar
Participant

Christian, thanks for your help.

I have used 3.3.4-SNAPSHOT in the pom.xml and used the same version in pretty-config.xml (without SNAPSHOT)

I now get the following error. The first line shows the return value of my dynaview bean:

Returning: /forms/home.jsf #This is the value that my dynaview returns

ERROR [[ACTIVE] ExecuteThread: ’11’ for queue: ‘weblogic.kernel.Default (self-tuning)’] (DynaviewEngine.java:107) – Failed to process dynaview

javax.faces.FacesException: javax.servlet.ServletException

at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:544)

at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101)

at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:109)

at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:185)

at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:103)

at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)

at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)

at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

Caused by: java.lang.NullPointerException

at com.sun.faces.context.flash.ELFlash.doLastPhaseActions(ELFlash.java:604)

at com.sun.faces.context.ExternalContextImpl.responseFlushBuffer(ExternalContextImpl.java:853)

at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:151)

at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:96)

at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)

at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)