IllegalStateException in R( + /jsp/image.jsp

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(

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 ?


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 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).
2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 10 months ago

0 Answers:

No answers yet