Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-126

call getWriter() after getOutputStream()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 2.6.0
    • None
    • None
    • Linux (Debian/Etch)
      BEA Weblogic 10

    Description

      java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()
      at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:297)
      at com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:111)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3368)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      Truncated. see log file for complete stacktrace

      Comment from BEA Forum to this Exception:
      The only solution is "don't do that". The Servlet 2.3 specification says clearly that when you have a ServletResponse, you can only call one of "getOutputStream()" or "getWriter()". The second one that gets called will get this exception.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              phormanns Peter Hormanns
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: