• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
them good ole boys were drinking whiskey and rye singin' this'll be the day that I die. Drink tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic