Reply To: Cannot forward after response has been committed

Splash Forums Rewrite Users Cannot forward after response has been committed Reply To: Cannot forward after response has been committed

#27513

rewriteme
Participant

I too get this error for my app in Glassfish 4.1.1 but the same app deployed in Wildfly 10.1.0 is ok.

Looked at ApplicationDispatcher.java:448 but could not pinpoint, the cause as mentioned in here

catching java.lang.IllegalStateException: Cannot forward after response has been committed
at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:448) ~[web-core.jar:?]
at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:428) ~[web-core.jar:?]
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:378) ~[web-core.jar:?]
at org.ocpsoft.rewrite.servlet.impl.HttpRewriteResultHandler.handleResult(HttpRewriteResultHandler.java:42) ~[rewrite-servlet-3.4.1.Final.jar:?]
at org.ocpsoft.rewrite.servlet.RewriteFilter.rewrite(RewriteFilter.java:297) ~[rewrite-servlet-3.4.1.Final.jar:?]
at org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:198) ~[rewrite-servlet-3.4.1.Final.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) ~[web-core.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) ~[web-core.jar:?]

  • This reply was modified 5 years, 2 months ago by  rewriteme.
  • This reply was modified 5 years, 2 months ago by  rewriteme.