cancel
Showing results for 
Search instead for 
Did you mean: 

Error 'The CacheManager is not alive'

anujs86
Champ in-the-making
Champ in-the-making
Hi,

I am getting error "The CacheManager is not alive" while starting alfresco.
Alfresco starts after some time, but does not load a single page.

Error -


(AbstractSessionFactoryBean.java:314)
   at $Proxy0.close(Unknown Source)
   at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.destroy(AbstractSessionFactoryBean.java:193)
   at org.springframework.orm.hibernate3.LocalSessionFactoryBean.destroy(LocalSessionFactoryBean.java:854)
   at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:146)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:344)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:317)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:290)
   at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:730)
   at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:708)
   at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:675)
   at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:338)
   at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:74)
   at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)
   at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523)
   at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
   at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191)
   at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
   at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
   at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
   at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
   at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
Caused by: java.lang.IllegalStateException: The CacheManager is not alive.
   at net.sf.ehcache.CacheManager.checkStatus(CacheManager.java:817)
   at net.sf.ehcache.CacheManager.removeCache(CacheManager.java:741)
   at org.hibernate.cache.EhCache.destroy(EhCache.java:181)
   … 33 more
2010-08-25 13:32:27,976 (NonstrictReadWriteCache.java:107) WARN  org.hibernate.cache.NonstrictReadWriteCache - could not destroy cache
org.hibernate.cache.CacheException: java.lang.IllegalStateException: The CacheManager is not alive.
   at org.hibernate.cache.EhCache.destroy(EhCache.java:184)
   at org.hibernate.cache.NonstrictReadWriteCache.destroy(NonstrictReadWriteCache.java:104)
   at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:785)
   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:597)
   at org.springframework.orm.hibernate3.AbstractSessionFactoryBean$TransactionAwareInvocationHandler.invoke(AbstractSessionFactoryBean.java:314)
   at $Proxy0.close(Unknown Source)
   at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.destroy(AbstractSessionFactoryBean.java:193)
   at org.springframework.orm.hibernate3.LocalSessionFactoryBean.destroy(LocalSessionFactoryBean.java:854)
   at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:146)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:344)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:317)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:290)
   at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:730)
   at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:708)
   at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:675)
   at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:338)
   at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:74)
   at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)
   at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523)
   at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
   at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191)
   at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
   at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
   at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
   at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
   at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
Caused by: java.lang.IllegalStateException: The CacheManager is not alive.
   at net.sf.ehcache.CacheManager.checkStatus(CacheManager.java:817)
   at net.sf.ehcache.CacheManager.removeCache(CacheManager.java:741)
   at org.hibernate.cache.EhCache.destroy(EhCache.java:181)
   … 33 more
2010-08-25 13:32:27,976 (StandardQueryCache.java:166) WARN  org.hibernate.cache.StandardQueryCache - could not destroy query cache: org.hibernate.cache.StandardQueryCache
org.hibernate.cache.CacheException: java.lang.IllegalStateException: The CacheManager is not alive.
   at org.hibernate.cache.EhCache.destroy(EhCache.java:184)
   at org.hibernate.cache.StandardQueryCache.destroy(StandardQueryCache.java:163)
   at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:790)
   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:597)
   at org.springframework.orm.hibernate3.AbstractSessionFactoryBean$TransactionAwareInvocationHandler.invoke(AbstractSessionFactoryBean.java:314)
   at $Proxy0.close(Unknown Source)
   at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.destroy(AbstractSessionFactoryBean.java:193)
   at org.springframework.orm.hibernate3.LocalSessionFactoryBean.destroy(LocalSessionFactoryBean.java:854)
   at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:146)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:344)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:317)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:290)
   at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:730)
   at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:708)
   at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:675)
   at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:338)
   at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:74)
   at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)
   at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523)
   at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
   at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191)
   at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
   at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
   at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
   at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
   at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
Caused by: java.lang.IllegalStateException: The CacheManager is not alive.
   at net.sf.ehcache.CacheManager.checkStatus(CacheManager.java:817)
   at net.sf.ehcache.CacheManager.removeCache(CacheManager.java:741)
   at org.hibernate.cache.EhCache.destroy(EhCache.java:181)
   … 33 more
2010-08-25 13:32:27,976 (UpdateTimestampsCache.java:101) WARN  org.hibernate.cache.UpdateTimestampsCache - could not destroy UpdateTimestamps cache
org.hibernate.cache.CacheException: java.lang.IllegalStateException: The CacheManager is not alive.
   at org.hibernate.cache.EhCache.destroy(EhCache.java:184)
   at org.hibernate.cache.UpdateTimestampsCache.destroy(UpdateTimestampsCache.java:98)
   at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:797)
   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:597)
   at org.springframework.orm.hibernate3.AbstractSessionFactoryBean$TransactionAwareInvocationHandler.invoke(AbstractSessionFactoryBean.java:314)
   at $Proxy0.close(Unknown Source)
   at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.destroy(AbstractSessionFactoryBean.java:193)
   at org.springframework.orm.hibernate3.LocalSessionFactoryBean.destroy(LocalSessionFactoryBean.java:854)
   at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:146)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:344)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:317)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:290)
   at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:730)
   at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:708)
   at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:675)
   at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:338)
   at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:74)
   at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)
   at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523)
   at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
   at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191)
   at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
   at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
   at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
   at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
   at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
Caused by: java.lang.IllegalStateException: The CacheManager is not alive.
   at net.sf.ehcache.CacheManager.checkStatus(CacheManager.java:817)
   at net.sf.ehcache.CacheManager.removeCache(CacheManager.java:741)
   at org.hibernate.cache.EhCache.destroy(EhCache.java:181)
   … 33 more
1 REPLY 1

anujs86
Champ in-the-making
Champ in-the-making
I think i was getting it due to memory issue.
I uninstalled other server (apache), restarted sytem and everything started working fine for me !!!