2 Replies Latest reply on Dec 10, 2007 7:55 AM by David Roberts

    Combining hibernate classes

    Merin Shaji Newbie

      Hi,

      I am trying to combine my hibernate classes with jbpm's persistence classes. I have configured jbpm to use my application specific hibernate.cfg.xml. Things are working fine except for session.getNamedQuery method call in TaskMgmtSession.findPooledTaskInstances(). I have added hibernate.queries.hbm.xml to my hibernate configuration programmatically (using the code configuration.addResource()). But when I execute getNamedQuery, I get the following exception:


      org.jbpm.JbpmException: couldn't get pooled task instances list for actors '[UW]'


      Caused by: org.hibernate.SessionException: Session is closed!
      at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
      at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1258)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:301)
      at $Proxy21.getNamedQuery(Unknown Source)
      at org.jbpm.db.TaskMgmtSession.findPooledTaskInstances(TaskMgmtSession.java:119)

      Could any one help me to solve this?

      Thanks in advance
      Merin

        • 1. Re: Combining hibernate classes
          Caleb Powell Newbie

          We are having a similar problem where we get the "org.hibernate.SessionException: Session is closed!" Exception. We think that jBPM may be closing the session prematurely. We are injecting our own hibernate session into the jBPM configuration so we didn't think this could happen. Did you have any luck resolving this issue?

          Regards,

          Caleb

          • 2. Re: Combining hibernate classes
            David Roberts Apprentice

            I also have the exception "org.hibernate.SessionException: Session is closed!" occasionally. I happened when I was trying the complete a task. When this happens, I also got random exceptions in my tomcat log about locks expiring etc, and also the ones below:

            org.hibernate.TransactionException: Transaction not successfully started
             at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:149)
             at org.jbpm.persistence.db.DbPersistenceService.rollback(DbPersistenceService.java:304)
             at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:223)
             at org.jbpm.svc.Services.close(Services.java:225)
             at org.jbpm.JbpmContext.close(JbpmContext.java:139)
             at za.co.itdynamics.workflow.webapp.action.BaseJbpmAction.execute(BaseJbpmAction.java:44)
             at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
             at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
             at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
             at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
             at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:375)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at za.co.itdynamics.workflow.webapp.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:42)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at za.co.itdynamics.workflow.webapp.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:55)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at com.opensymphony.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:42)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
             at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
             at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
             at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
             at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
             at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
             at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
             at java.lang.Thread.run(Thread.java:595)
            WARN http-8080-Processor21 org.jbpm.persistence.db.DbPersistenceService - hibernate session was already closed
            ERROR http-8080-Processor21 org.jbpm.svc.Services - problem closing service 'persistence'
            org.jbpm.persistence.JbpmPersistenceException: hibernate rollback failed
             at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:227)
             at org.jbpm.svc.Services.close(Services.java:225)
             at org.jbpm.JbpmContext.close(JbpmContext.java:139)
             at za.co.itdynamics.workflow.webapp.action.BaseJbpmAction.execute(BaseJbpmAction.java:44)
             at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
             at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
             at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
             at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
             at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:375)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at za.co.itdynamics.workflow.webapp.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:42)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at za.co.itdynamics.workflow.webapp.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:55)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at com.opensymphony.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:42)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
             at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
             at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
             at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
             at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
             at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
             at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
             at java.lang.Thread.run(Thread.java:595)
            Caused by: org.hibernate.TransactionException: Transaction not successfully started
             at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:149)
             at org.jbpm.persistence.db.DbPersistenceService.rollback(DbPersistenceService.java:304)
             at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:223)
             ... 84 more
            ERROR http-8080-Processor21 za.co.itdynamics.workflow.webapp.action.ActionExceptionHandler - org.jbpm.JbpmException: closed JbpmContext in different order then they were created... check your try-finally's around JbpmContexts blocks
             at org.jbpm.JbpmConfiguration.popJbpmContext(JbpmConfiguration.java:573)
             at org.jbpm.JbpmConfiguration.jbpmContextClosed(JbpmConfiguration.java:585)
             at org.jbpm.JbpmContext.close(JbpmContext.java:144)
             at za.co.itdynamics.workflow.webapp.action.BaseJbpmAction.execute(BaseJbpmAction.java:44)
             at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
             at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
             at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
             at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
             at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:375)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at za.co.itdynamics.workflow.webapp.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:42)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at za.co.itdynamics.workflow.webapp.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:55)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at com.opensymphony.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:42)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
             at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
             at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
             at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
             at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
             at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
             at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
             at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
             at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
             at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
             at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
             at java.lang.Thread.run(Thread.java:595)


            I simply restart tomcat, and then it all works fine again.
            Anyone have any ideas?