PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-13853

ERROR [StripFilter:125] java.lang.IllegalStateException: Cannot forward after response has been committed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 5.2.3, 6.0.5 GA
    • Fix Version/s: 6.1.0 CE RC1
    • Component/s: WCM
    • Labels:
      None
    • Environment:
      OpenSuSE 11.3 Xen Virtual Machine x64
      Tomcat 6.0.29 (-Xmx1024m -XX:MaxPermSize=256m)
      Liferay 5.2.3


    • Branch Version/s:
      5.2.x
    • Similar Issues:
      Show 5 results 

      Description

      While browsing or refreshing pages, sometimes (approximately every 10th request) Liferay responses a blank page. We've reviewed the tomcat's logs and found:

      07:45:05,325 ERROR [StripFilter:125] java.lang.IllegalStateException: Cannot forward after response has been committed
      java.lang.IllegalStateException: Cannot forward after response has been committed
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:312)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
      at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:143)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
      at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:200)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:115)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
      at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:136)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
      at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:283)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:115)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
      at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:369)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
      at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:262)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
      at com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter.processFilter(OpenSSOFilter.java:73)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
      at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:193)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
      at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:200)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      We've tried to use bundle with tomcat 6.0.18 - same problem.
      Also tried to disable Strip Filter and it didn't help.
      Could it be because of use JVM x64

        Issue Links

          Activity

          Hide
          Cynthia Wilburn (Inactive) added a comment -

          Thank you for the report. Can you please help us by evaluating this issue to confirm that it is reproducible in the recently released 6 CE GA and provide this information via a comment on this ticket?

          This new release contains hundreds of bug fixes and will be the version under active development by the Liferay team. Tickets reported against 5.2.3 that are fixed in 6.0.5 will be closed in order to keep our ticketing system up-to-date and to help our development team focus on the unresolved issues.

          Show
          Cynthia Wilburn (Inactive) added a comment - Thank you for the report. Can you please help us by evaluating this issue to confirm that it is reproducible in the recently released 6 CE GA and provide this information via a comment on this ticket? This new release contains hundreds of bug fixes and will be the version under active development by the Liferay team. Tickets reported against 5.2.3 that are fixed in 6.0.5 will be closed in order to keep our ticketing system up-to-date and to help our development team focus on the unresolved issues.
          Hide
          Felix Ashirov added a comment -

          Ok, i need some time to check this out.

          Show
          Felix Ashirov added a comment - Ok, i need some time to check this out.
          Hide
          Felix Ashirov added a comment -

          Hi Cynthia!

          We've solved our problem.

          About 2 weeks ago we've found same issue on other server.

          This server didn't have any problem before, so we started to review recently made changes .
          As a result, we've found a problem web-application which was recently updated.
          We've removed it, restarted Liferay and then installed the web-application again - the problem is gone.

          In my opinion, the misbehavior occurs in MinifierFilter, because a recent change of this application was a new javascript file.
          As a result, reinstalling the web-application over it's existing older build somehow confused MinifierFilter!

          We've turned off the MinifierFilter for testing purpose on the 1st virtual server, and Liferay's pages output was stable. After this we've removed all custom web-applications, then installed again and problem is gone too.

          While doing research on this problem, i've also found an issue LPS-12315, which seems to be similar to my issue.

          I hope my info will help you to eliminate this rarely appearing bug

          Show
          Felix Ashirov added a comment - Hi Cynthia! We've solved our problem. About 2 weeks ago we've found same issue on other server. This server didn't have any problem before, so we started to review recently made changes . As a result, we've found a problem web-application which was recently updated. We've removed it, restarted Liferay and then installed the web-application again - the problem is gone. In my opinion, the misbehavior occurs in MinifierFilter, because a recent change of this application was a new javascript file. As a result, reinstalling the web-application over it's existing older build somehow confused MinifierFilter! We've turned off the MinifierFilter for testing purpose on the 1st virtual server, and Liferay's pages output was stable. After this we've removed all custom web-applications, then installed again and problem is gone too. While doing research on this problem, i've also found an issue LPS-12315 , which seems to be similar to my issue. I hope my info will help you to eliminate this rarely appearing bug
          Hide
          Mark Jin added a comment - - edited

          Can not reproduced the problem in trunk 77791.

          If you are still experiencing the problem, please add a comment to this ticket

          Thanks.

          Show
          Mark Jin added a comment - - edited Can not reproduced the problem in trunk 77791. If you are still experiencing the problem, please add a comment to this ticket Thanks.
          Hide
          Jason Chen added a comment -

          I am still experiencing similar issue in our servers:
          2011-07-25 12:28:28,835 INFO [com.liferay.portal.log.Log4jLogImpl#error:53] - 12:28:28,834 ERROR [MonitoringFilter:136] java.lang.IllegalStateException: Cannot forward after response has been committed
          java.lang.IllegalStateException: Cannot forward after response has been committed
          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:320)
          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
          at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:133)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
          at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
          at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
          at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:261)
          at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
          at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
          at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:137)
          at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
          at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
          at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.servlet.filters.doubleclick.DoubleClickController.control(DoubleClickController.java:57)
          at com.liferay.portal.servlet.filters.doubleclick.DoubleClickFilter.processFilter(DoubleClickFilter.java:72)
          at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
          at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:440)
          at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:23

          I am sure the MonitoringFilter is disabled. Using liferay 6.0.5GA.

          Show
          Jason Chen added a comment - I am still experiencing similar issue in our servers: 2011-07-25 12:28:28,835 INFO [com.liferay.portal.log.Log4jLogImpl#error:53] - 12:28:28,834 ERROR [MonitoringFilter:136] java.lang.IllegalStateException: Cannot forward after response has been committed java.lang.IllegalStateException: Cannot forward after response has been committed at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:320) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310) at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196) at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:261) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196) at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:137) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.liferay.portal.servlet.filters.doubleclick.DoubleClickController.control(DoubleClickController.java:57) at com.liferay.portal.servlet.filters.doubleclick.DoubleClickFilter.processFilter(DoubleClickFilter.java:72) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196) at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:440) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:23 I am sure the MonitoringFilter is disabled. Using liferay 6.0.5GA.
          Hide
          Vicki Tsang added a comment -

          Changing Fix in version

          Show
          Vicki Tsang added a comment - Changing Fix in version

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 50 weeks, 1 day ago

                Development

                  Structure Helper Panel