Hudson on spring tomcat causing repeatable IllegalStateException

reported by one of our customers a very irritating behaviore of Hudson on spring tc server:


We’re using Hudson (1.292, 1.306-1.309) and it started to cause IllegalStateException to be thrown very frequently (every couple of seconds).


It starts doing so when opened in certain browsers – at first, I thought it only happens with Firefox 3.5 Beta 4,

but then it was happening with 3.0.10 as well (even in a safe mode and reinstalled from scratch!).

Chrome was safe to use most of the time but once it also caused Hudson to start throwing this exception

every couple of seconds.


So far IE8 is doing well and I didn’t see it causing Hudson to go crazy like that. It still throws a couple of exceptions (all the same)

but at least it doesn’t start to do so in a cycle.


The machine is Windows 2008 Enterprise SP2, 64 bit. It’s a virtual server


there are many reports on the exception bellow but we can't figure out what to relate it to,

any idea is welcome.



and this is the exception trace


java.lang.IllegalStateException: Cannot create a session after the response has been committed
    at org.apache.catalina.connector.Request.doGetSession(
    at org.apache.catalina.connector.Request.getSession(
    at org.apache.catalina.connector.RequestFacade.getSession(
    at org.acegisecurity.context.HttpSessionContextIntegrationFilter.storeSecurityContextInSession(
    at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.apache.catalina.core.StandardWrapperValve.invoke(
    at org.apache.catalina.core.StandardContextValve.invoke(
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
    at org.apache.catalina.core.StandardHostValve.invoke(
    at org.apache.catalina.valves.ErrorReportValve.invoke(
    at org.apache.catalina.core.StandardEngineValve.invoke(
    at org.apache.catalina.connector.CoyoteAdapter.service(
    at org.apache.coyote.http11.Http11Processor.process(
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
    at java.util.concurrent.ThreadPoolExecutor$