Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2989

GZipFilter causes "getWriter() has already been called for this response" error to be thrown on Glassfish v3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.3
    • Fix Version/s: 4.3.2
    • Component/s: admininterface, cache, core
    • Labels:
      None
    • Patch included:
      Yes

      Description

      Immediately after logging in this error is thrown by the server, and the admin page never renders.

      This means that magnolia is effectively completely unusable under Glassfish v3.

      This has been a problem in previous version of glassfish, and with previous versions of Magnolia (going back to at least 3.5, probably earlier, but I can't remember), but in previous version of glassfish the problem only caused a warning to be logged. Glassfish version 3 treats this as a fatal error and aborts rendering the page.
      With previous versions of Magnolia running under glassfish 2.5 (such as sites I currently have running) it's only the admin interface that causes this problem - rendering normal pages does not cause a warning to be logged.

      here's the stack trace :

      java.lang.IllegalStateException: PWC3990: getWriter() has already been called for this response
             at org.apache.catalina.connector.Response.getOutputStream(Response.java:676)
             at org.apache.catalina.connector.ResponseFacade.getOutputStream(ResponseFacade.java:205)
             at info.magnolia.module.cache.filter.GZipFilter.doFilter(GZipFilter.java:106)
             at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:62)
      [...]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gjoseph Magnolia International
              Reporter:
              jportway joshua portway
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: