I'm currently developing a web application using
struts 1.3.5 with tiles deployed on XP under
tomcat 5.5
I've implemented a download facility to enable users to download
files by clicking on appropriate links. This has been achieved
using the struts file download action mentioned at
StrutsFileDownloadAction The application works fine, and i can download a number of different
formats including pdf, zip etc.
However Problems arise when I perform stress
testing using JMeter.
The following exception is thrown
"java.lang.IllegalStateException: getOutputStream() has already been called for this response"
I have the following settings for Jmeter.
Number of Threads: 1
Ramp-up Period : 1
Loop count : 50
I'd appreciate it if anyone could enlighten me as to what is actually going on.
The code is as follows
A partial stack trace is given below
2007/7/04 17:07 40 [ERROR] org.apache.catalina.core.ApplicationDispatcher.invoke:L - Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:599)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:111)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:111)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:111)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:111)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:111)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:111)
...............................................................
...............................................................
...............................................................
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:111)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:111)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:174)
at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
at org.apache.jsp.WEB_002dINF.common.Layout_jsp._jspService(Layout_jsp.java:85)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
...............................................................
...............................................................
...............................................................
kind regards,
Mo