tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gwen Way" <g...@cybersource.com>
Subject RE: "Exception Initializing Page Context"
Date Wed, 19 Aug 2009 13:55:54 GMT
Thank you, Mark.  I appreciate you taking the time to get back to me on
this.

I've been doing a little more research and it seems that there were no
updates this week for Tomcat and nothing has changed in terms of this
CentOS server or are application.  It does not seem that a change in
network architecture would create such an error, although I could be
wrong.  As this particular error has made its appearance in the last two
days, there must have been some kind of change.  Could you recommend a
place I should start investigating to see what would cause a session to
alter how and when it opens?

Again, thank you.


Gwen Way
Support Analyst
CyberSource Corporation
gway@cybersource.com
Phone - 512-680-9243
Fax - 650-210-2456



-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Tuesday, August 18, 2009 4:40 PM
To: Tomcat Users List
Subject: Re: "Exception Initializing Page Context"

Gwen Way wrote:
> java.lang.IllegalStateException: Cannot create a session after the
> response has been committed 

Seems pretty clear.

Creating a session requires setting some headers (to send the session
cookie to the client). You can't do that after the response has been
committed (usually after a few kilobytes of data has been written).

The solution? Create your session earlier, ideally before yousend any
content to the client.

Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message