• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

IllegalStateException forwarding from servlet to JSP

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Yeah, but does being a ninja come with a dental plan? And what about this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic