Hi there,

Richard explained why this error shows up. Why it shows only under certain 
networks is anyone's guess, yours might be accurate, or something to do with a 
flushing that would happen earlier.

Either way, if this piece of logic is in a paragraph model, you can make sure 
it's executed before the page starts rendering, see 
http://wiki.magnolia-cms.com/display/DEV/Concept+Preexecution+of+paragraph+models
 and http://jira.magnolia-cms.com/browse/MAGNOLIA-3486

If it's happening in a page template model, then I'd suspect that's a bug.

Which version of Magnolia is this project running with ?

Cheers,

-g

On 18 May 2011, at 17:12, Will Scheidegger wrote:

> 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]>
> ----------------------------------------------------------------



----------------------------------------------------------------
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