Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

java.lang.IllegalStateException

Thread view: 
srujan.gudisa@gmail.com - 07 Jan 2008 12:42 GMT
Any Idea? what is does this error means?

"java.lang.IllegalStateException: Cannot create a session after the
response has been committed"

I am new to JAVA, please help me understand this error, and when can
we get the error.

If this is a basic error also, please make sometime in telling me what
that exactly means.

Thanks,
Srujan.
David Sharp - 07 Jan 2008 12:58 GMT
> Any Idea? what is does this error means?
>
[quoted text clipped - 6 lines]
> If this is a basic error also, please make sometime in telling me what
> that exactly means.

A response is committed whenever an action on your part causes the
status code and headers to be written to the browser.  At that point,
because the status code and headers are already set, anything that tries
to alter the status code, or the headers will result in an
IllegalStateException being thrown.

Just hypothesizing here, but attempting to create a session probably
results in the code attempting to set a cookie via the set-cookie
header.  Since the response has already written the status code and
headers to the browser, this results in an IllegalStateException.

Regards,
Dave
srujan.gudisa@gmail.com - 07 Jan 2008 13:25 GMT
> srujan.gud...@gmail.com wrote:
> > Any Idea? what is does this error means?
[quoted text clipped - 21 lines]
> Regards,
> Dave

Thanks a Lot Dave, I am a little bit confused, but I think I am
getting it.
Thanks a Lot.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.