MyFaces Core
  1. MyFaces Core
  2. MYFACES-1310

IllegalStateException:Strict Servlet api:cannot call getOutputSteam() after getWriter() on Weblogic 8.1 sp 5

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.6
    • Component/s: None
    • Labels:
      None
    • Environment:
      Weblogic 8.1 sp 5

      Description

      i am migrating my website based on jsf myfaces from JOnAS to WebLogic 8.1 sp 5 and i have still this issue :
      i have downloaded the latest snapshot

      myfaces-core-1.1.4-snapshot
      tomahawk-1.1.3-snapshot

      java.lang.IllegalStateException: strict servlet API: cannot call getOutputStream() after getWriter()
      at weblogic.servlet.internal.ServletResponseImpl.getOutputStream(ServletResponseImpl.java:162)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:176)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
      at simpa.web.utils.AuthorizationFilter.doFilter(AuthorizationFilter.java:58)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
      at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

      it is critical for us as the experimentation should start next week
      thanks in advance

      Bruno

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        492d 23h 32m 1 Martin Marinschek 28/Sep/07 17:03
        Resolved Resolved Closed Closed
        323d 8h 40m 1 Leonardo Uribe 17/Aug/08 01:43
        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Matthias Weßendorf added a comment -

        have you tested on weblogic ?

        Show
        Matthias Weßendorf added a comment - have you tested on weblogic ?
        Martin Marinschek made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.1.6 [ 12312312 ]
        Resolution Fixed [ 1 ]
        Assignee Martin Marinschek [ mmarinschek ]
        Hide
        Martin Marinschek added a comment -

        I am closing this out - it seems to be working now.

        regards,

        Martin

        Show
        Martin Marinschek added a comment - I am closing this out - it seems to be working now. regards, Martin
        Martin Marinschek made changes -
        Field Original Value New Value
        Priority Blocker [ 1 ] Critical [ 2 ]
        Hide
        Martin Marinschek added a comment -

        I'm reducing this to "Critical", as this happens only on one platform.

        Additionally, I have been submitting some changes to the ExtensionFilter (by Mike Youngstrom and others) which might have improved this situation. Can you try out with a recent version?

        regards,

        Martin

        Show
        Martin Marinschek added a comment - I'm reducing this to "Critical", as this happens only on one platform. Additionally, I have been submitting some changes to the ExtensionFilter (by Mike Youngstrom and others) which might have improved this situation. Can you try out with a recent version? regards, Martin
        Hide
        Mario Ivankovits added a comment -

        sure, and there are good reasons to use the OutputStream at this place, else you cant deliver a binary content without damaging it.
        Hmmm, and I cant see that we requrest the writer before .... maybe you are able to debug where getWriter() will be called?


        Mario

        Show
        Mario Ivankovits added a comment - sure, and there are good reasons to use the OutputStream at this place, else you cant deliver a binary content without damaging it. Hmmm, and I cant see that we requrest the writer before .... maybe you are able to debug where getWriter() will be called? — Mario
        Hide
        xavier l added a comment -

        exactly same problem here.

        I guess it has something to do with that filter: org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:176)

        Have you solved it on a way or another?

        thanks

        Show
        xavier l added a comment - exactly same problem here. I guess it has something to do with that filter: org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:176) Have you solved it on a way or another? thanks
        Bruno created issue -

          People

          • Assignee:
            Martin Marinschek
            Reporter:
            Bruno
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development