PDA

View Full Version : OutputStream already obtained , exception



mynzai
Oct 4th, 2005, 01:58 PM
Hi,
I try to run a HessianServlet inside WebSphere 6 and get this exception.

Caused by: java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained
at com.ibm.ws.webcontainer.srt.SRTServletResponse.get Writer(SRTServletResponse.java:462)
at com.ibm.ws.webcontainer.webapp.WebApp.sendError(We bApp.java:2488)

I'm not manipulating or acquiring any response streams in my hessian servlet. Is there a fix or workaround for this problem in hessian?

thank you,
mynzai

Rod Johnson
Oct 5th, 2005, 03:28 AM
Please do not crosspost. I have removed the identical post from the Web forum. Thanks.

mynzai
Oct 5th, 2005, 07:29 AM
Ok, sorry. I realized after the first post that it might not be in the right group. Not sure which group would best know the answer to this problem.

mynzai
Oct 5th, 2005, 07:30 AM
Apparently there isn't one. :(

Juergen Hoeller
Oct 8th, 2005, 04:55 PM
Looks like this is caused by the WebSphere web engine trying to write text content to the servlet response after Hessian already wrote binary content response. Such mixing of Writer/OutputStream usage is not allowed by the Servlet spec.

The question is: Why does WebSphere try to write to the servlet response Writer in the first place? This seems to be caused by some error handling... Do you maybe have a JSP error page configured that tries to kick in even for Hessian requests?

Juergen