cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject cocoon ehcache usage vs. hibernate + spring
Date Tue, 22 Aug 2006 09:08:51 GMT
It looks like cocoon ehcache based store does not live happily with 
hibernate's session factory (spring managed):

> 304859 [Shutdown] INFO / - Closing Spring root WebApplicationContext
> 304859 [Shutdown] INFO org.springframework.web.context.support.XmlWebApplicationContext
- Closing application context [Root WebApplicationContext]
> 304859 [Shutdown] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory
- Destroying singletons in {org.springframework.beans.factory.support.DefaultL
> istableBeanFactory defining beans [filterChainProxy,httpSessionContextIntegrationFilter,basicProcessingFilter,basicProcessingFilterEntryPoint,exceptionTranslationFilter,f
> ilterSecurityInterceptor,roleVoter,accessDecisionManager,userDetailsService,userCache,daoAuthenticationProvider,anonymousAuthenticationProvider,testingAuthenticationProvi
> der,rememberMeAuthenticationProvider,authenticationManager,beanSecurityInterceptor,beanSecurityAdvisor,placeholderConfig,org.springframework.beans.factory.annotation.Requ
> iredAnnotationBeanPostProcessor,dataSource,sessionFactory,baseHibernateDao,transactionManager,annotationTransactionAttributeSource,transactionInterceptor,transactionAdvis
> or,org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator,clientDao,transportOrderDao,orderLogEntryDao,clientService,transportOrderService,org.springf
> ramework.scheduling.quartz.SchedulerFactoryBean]; root of BeanFactory hierarchy}
> 304859 [Shutdown] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean - Shutting
down Quartz Scheduler
> 304859 [Shutdown] INFO org.quartz.core.QuartzScheduler - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED
shutting down.
> 304859 [Shutdown] INFO org.quartz.core.QuartzScheduler - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED
paused.
> 304859 [Shutdown] INFO org.quartz.core.QuartzScheduler - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED
shutdown complete.
> 304859 [Shutdown] INFO org.springframework.orm.hibernate3.LocalSessionFactoryBean - Closing
Hibernate SessionFactory
> 304859 [Shutdown] INFO org.hibernate.impl.SessionFactoryImpl - closing
> 304859 [Shutdown] ERROR org.springframework.beans.factory.support.DefaultListableBeanFactory
- Destroy method on bean with name 'sessionFactory' threw an exception
> java.lang.IllegalStateException: The cocoon-ehcache-1 Cache is not alive.
>         at net.sf.ehcache.Cache.checkStatus(Cache.java:1062)
>         at net.sf.ehcache.Cache.dispose(Cache.java:939)
>         at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:538)
>         at org.hibernate.cache.EhCacheProvider.stop(EhCacheProvider.java:145)
>         at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:756)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.springframework.orm.hibernate3.LocalSessionFactoryBean$TransactionAwareInvocationHandler.invoke(LocalSessionFactoryBean.java:1124)
>         at $Proxy10.close(Unknown Source)
>         at org.springframework.orm.hibernate3.LocalSessionFactoryBean.destroy(LocalSessionFactoryBean.java:1078)
>         at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:97)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:304)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:277)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:255)
>         at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:599)
>         at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:568)
>         at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:339)
>         at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:73)
>         at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:402)
>         at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:377)
>         at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:62)
>         at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:118)
>         at org.mortbay.jetty.Server.doStop(Server.java:263)
>         at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:62)
>         at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:520)
> 304859 [Shutdown] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean -
Shutting down EHCache CacheManager
> 304859 [Shutdown] ERROR org.springframework.beans.factory.support.DefaultListableBeanFactory
- Destroy method on bean with name 'cacheManager' threw an exception
> java.lang.IllegalStateException: The cocoon-ehcache-1 Cache is not alive.
>         at net.sf.ehcache.Cache.checkStatus(Cache.java:1062)
>         at net.sf.ehcache.Cache.dispose(Cache.java:939)
>         at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:538)
>         at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.destroy(EhCacheManagerFactoryBean.java:94)
>         at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:97)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:304)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:277)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:255)
>         at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:599)
>         at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:568)
>         at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:339)
>         at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:73)
>         at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:402)
>         at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:377)
>         at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:62)
>         at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:118)
>         at org.mortbay.jetty.Server.doStop(Server.java:263)
>         at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:62)
>         at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:520)
> [INFO] 304875 [Shutdown] INFO org.mortbay.log - Shutdown hook complete

Can we somehow eliminate this exception?

-- 
Leszek Gawron, IT Manager                          MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message