This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IllegalStateException forwarding from servlet to JSP
 
Similar Threads
forward() Method Problem
Doubt in <jsp:forward />
IllegalStateException
HFSJ 2nd edition - Final Mock Exam incorrect answers!?
RequestDispatcher IllegalStateException