By: remi - rpeyret
IllegalStateException in R( + /jsp/image.jsp
2003-02-06 09:37
OK I succeed to launch my application...
The jasperreports works well but I have got this error :
Ctx() : IllegalStateException in R( + /jsp/image.jsp + null) - java.lang.IllegalStateException: getOutputStream() has already been called
at org.apache.tomcat.facade.HttpServletResponseFacade.getWriter(Unknown Source)
at org.apache.jasper.runtime.JspWriterImpl.initOut(Unknown Source)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(Unknown Source)
at jsp.image_1._jspService(image_1.java:102)
On my NT server, it doesn't mind, but on my linux server, I've got this error message on my browser.
I don't have any idea, can you help me ?
thx
By: Chuck Deal - cdeal
RE: IllegalStateException in R( + /jsp/image.jsp
2003-02-06 09:53
There is a predefined "OutputStream" in each JSP page called out. You could also get a handle to the response's outputStream(response.getOutputStream()).
HOWEVER, you can't do both on the same page. If you are going to use response.getOutputStream() DON'T use out.xxx() anywhere else on the page. The first time you use it, it gets initialized.
At least, this is how it is in my configuration (iPlanet 4.1).
IllegalStateException in R( + /jsp/image.jsp
2003-02-06 09:37
OK I succeed to launch my application...
The jasperreports works well but I have got this error :
Ctx() : IllegalStateException in R( + /jsp/image.jsp + null) - java.lang.IllegalStateException: getOutputStream() has already been called
at org.apache.tomcat.facade.HttpServletResponseFacade.getWriter(Unknown Source)
at org.apache.jasper.runtime.JspWriterImpl.initOut(Unknown Source)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(Unknown Source)
at jsp.image_1._jspService(image_1.java:102)
On my NT server, it doesn't mind, but on my linux server, I've got this error message on my browser.
I don't have any idea, can you help me ?
thx
By: Chuck Deal - cdeal
RE: IllegalStateException in R( + /jsp/image.jsp
2003-02-06 09:53
There is a predefined "OutputStream" in each JSP page called out. You could also get a handle to the response's outputStream(response.getOutputStream()).
HOWEVER, you can't do both on the same page. If you are going to use response.getOutputStream() DON'T use out.xxx() anywhere else on the page. The first time you use it, it gets initialized.
At least, this is how it is in my configuration (iPlanet 4.1).
0 Answers:
No answers yet