Jump to content
Changes to the Jaspersoft community edition download ×

IllegalStateException in R( + /jsp/image.jsp


Recommended Posts

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).

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...