wood burning stoves 2.0*
The moose likes Servlets and the fly likes Tomcat Throwing error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat Throwing error" Watch "Tomcat Throwing error" New topic
Author

Tomcat Throwing error

Dean Chester
Ranch Hand

Joined: Jul 26, 2009
Posts: 31
Tomcat6 keeps throwing this error and i don't understand it:
27-Jul-2009 11:03:26 org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext
SEVERE: Exception initializing page context
java.lang.IllegalStateException: Cannot create a session after the response has been committed
If anyone can help then let me know
Thanks in adavance.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3833

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

Can you show us the code relete to this which will help to resolve (as the error message gives some idea about it) ?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Dean Chester
Ranch Hand

Joined: Jul 26, 2009
Posts: 31
I think its this as if i change the Boolean variable it doesn't throw the error yet doesn't work
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3833

What is there before the given statement? You may have commited the response already ?
Dean Chester
Ranch Hand

Joined: Jul 26, 2009
Posts: 31

This is all there is.
Dean Chester
Ranch Hand

Joined: Jul 26, 2009
Posts: 31
LAter on in the error report it says that this line in the code is the problem. If this helps.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Looks like the response was commited, and then you tried to do a redirect or forward.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
GeeCON Prague 2014
 
subject: Tomcat Throwing error