aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes IllegalStateException forwarding from servlet to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "IllegalStateException forwarding from servlet to JSP" Watch "IllegalStateException forwarding from servlet to JSP" New topic
Author

IllegalStateException forwarding from servlet to JSP

Mitan Chandihok
Greenhorn

Joined: Dec 31, 2002
Posts: 15
I have searched around for an answer but couldn't find one suitable. My understanding is if you use request dispatcher to forward your request, you must not have a request already pending. That makes sense to me, and seems as if working as expected within in App Server.
My problem is I am getting an IllegalStateException when I put some stress on my application. I ran a test with about 1000 requests and 4 or 5 came up with the IllegalStateExcpetion ERROR: Cannot forward. The response has already been committed.
Do any of you know what causes this or if there is a solution? Can it be locking of the JSP file (I thought as long as JSPs were thread safe they should be fine.) I am passing a Bean and using a jsp:useBean with scope="request".
I'll post some code if my description doesn't spark an answer.
 
wood burning stoves
 
subject: IllegalStateException forwarding from servlet to JSP