Illegal state exception
1 posts in topic
Flat View  Flat View

Posted By:   sarada_cherukupalli
Posted On:   Saturday, April 14, 2001 04:08 AM

Why do we get Illegal state exception and How do we rectify it.

Re: Illegal state exception

Posted By:   Arun_Bharathan  
Posted On:   Saturday, April 14, 2001 05:18 AM

The illegalstate exception ( http://java.sun.com/j2se/1.3/docs/api/java/lang/IllegalStateException.html )could occur on different occasions in a servlet's execution. It is an runtime exception and used in other APIs also. The thumb rule is that if you try to change some basic properties of the response object after some content has been written, it would raise this exception.

If you try to change the content type, buffer size,etc during runtime this exception is raised.
About | Sitemap | Contact