Dear Magnolians

We're experiencing problems with a Magnolia Website which requires a Session. 
If the site is accessed from certain company networks we get the following 
exception:

2011-05-18 15:44:53,845 ERROR info.magnolia.cms.taglibs.Include                 
: Cannot create a session after the response has been committed
java.lang.IllegalStateException: Cannot create a session after the response has 
been committed
        at org.apache.catalina.connector.Request.doGetSession(Request.java:2377)
        at org.apache.catalina.connector.Request.getSession(Request.java:2097)
        at 
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
        at 
ch.fastforward.magnolia.module.schweizmobilcard.rendermodels.InitialMembershipModel.execute(InitialMembershipModel.java:66)
        ....

The last line listed above does the following:

        HttpSession s = 
MgnlContext.getWebContext().getRequest().getSession(true);

I've seen the "Cannot create a session after the response has been committed" 
many times before, but was never able (or did never take the time) to track 
this one down properly, because it never caused any problems (or we never heard 
of any problems). However in this case this really causes trouble since the 
employees of one of the biggest company in the country cannot place orders.

My guess would be that the browser settings in this company block session 
cookies... but the error message does not really match this assumption. Does 
anyone have an idea how to resolve this one?

Thanks!

-will


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to