call getWriter() after getOutputStream()
----------------------------------------
Key: JSPWIKI-126
URL: https://issues.apache.org/jira/browse/JSPWIKI-126
Project: JSPWiki
Issue Type: Bug
Affects Versions: 2.6.0
Environment: Linux (Debian/Etch)
BEA Weblogic 10
Reporter: Peter Hormanns
Priority: Critical
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.