Hibernate version: 3.0.5
Full stack trace of any exception that occurs:
Code:
2005-05-30 19:02:52,116 [Thread-6] ERROR org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database state with session
org.hibernate.cache.CacheException: java.lang.IllegalStateException: The hibernate.test.org.hibernate.cache.UpdateTimestampsCache Cache is not alive.
at org.hibernate.cache.EhCache.put(EhCache.java:159)
at org.hibernate.cache.UpdateTimestampsCache.preinvalidate(UpdateTimestampsCache.java:54)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:235)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:488)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:401)
at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:67)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
at $Proxy1.saveEventClassifier(Unknown Source)
at com.mypackage.persistent.dao.hibernate.EventClassifierHibernateHome.findEventClassifier(EventClassifierHibernateHome.java:57)
at com.mypackage.persistent.dao.file.PerformanceLogHomeLog4jImpl.convertToString(PerformanceLogHomeLog4jImpl.java:47)
at com.mypackage.persistent.dao.file.PerformanceLogHomeLog4jImpl.save(PerformanceLogHomeLog4jImpl.java:32)
at com.mypackage.performance.PerformanceLoggingServiceImpl.run(PerformanceLoggingServiceImpl.java:38)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IllegalStateException: The hibernate.test.org.hibernate.cache.UpdateTimestampsCache Cache is not alive.
at net.sf.ehcache.Cache.checkStatus(Cache.java:713)
at net.sf.ehcache.Cache.put(Cache.java:313)
at org.hibernate.cache.EhCache.put(EhCache.java:153)
... 21 more
2005-05-30 19:02:52,156 [Thread-6] ERROR org.hibernate.engine.ActionQueue - could not release a cache lock
org.hibernate.cache.CacheException: java.lang.IllegalStateException: The hibernate.test.org.hibernate.cache.UpdateTimestampsCache Cache is not alive.
at org.hibernate.cache.EhCache.put(EhCache.java:159)
at org.hibernate.cache.UpdateTimestampsCache.invalidate(UpdateTimestampsCache.java:67)
at org.hibernate.engine.ActionQueue.afterTransactionCompletion(ActionQueue.java:171)
at org.hibernate.impl.SessionImpl.afterTransactionCompletion(SessionImpl.java:406)
at org.hibernate.jdbc.JDBCContext.afterTransactionCompletion(JDBCContext.java:294)
at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:154)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doRollback(HibernateTransactionManager.java:511)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.doRollbackOnCommitException(AbstractPlatformTransactionManager.java:505)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:423)
at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:67)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
at $Proxy1.saveEventClassifier(Unknown Source)
at com.mypackage.persistent.dao.hibernate.EventClassifierHibernateHome.findEventClassifier(EventClassifierHibernateHome.java:57)
at com.mypackage.persistent.dao.file.PerformanceLogHomeLog4jImpl.convertToString(PerformanceLogHomeLog4jImpl.java:47)
at com.mypackage.persistent.dao.file.PerformanceLogHomeLog4jImpl.save(PerformanceLogHomeLog4jImpl.java:32)
at com.mypackage.performance.PerformanceLoggingServiceImpl.run(PerformanceLoggingServiceImpl.java:38)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IllegalStateException: The hibernate.test.org.hibernate.cache.UpdateTimestampsCache Cache is not alive.
at net.sf.ehcache.Cache.checkStatus(Cache.java:713)
at net.sf.ehcache.Cache.put(Cache.java:313)
at org.hibernate.cache.EhCache.put(EhCache.java:153)
... 18 more
org.springframework.orm.hibernate3.HibernateSystemException: java.lang.IllegalStateException: The hibernate.test.org.hibernate.cache.UpdateTimestampsCache Cache is not alive.; nested exception is org.hibernate.cache.CacheException: java.lang.IllegalStateException: The hibernate.test.org.hibernate.cache.UpdateTimestampsCache Cache is not alive.
org.hibernate.cache.CacheException: java.lang.IllegalStateException: The hibernate.test.org.hibernate.cache.UpdateTimestampsCache Cache is not alive.
at org.hibernate.cache.EhCache.put(EhCache.java:159)
at org.hibernate.cache.UpdateTimestampsCache.preinvalidate(UpdateTimestampsCache.java:54)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:235)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:488)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:401)
at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:67)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
at $Proxy1.saveEventClassifier(Unknown Source)
at com.mypackage.persistent.dao.hibernate.EventClassifierHibernateHome.findEventClassifier(EventClassifierHibernateHome.java:57)
at com.mypackage.persistent.dao.file.PerformanceLogHomeLog4jImpl.convertToString(PerformanceLogHomeLog4jImpl.java:47)
at com.mypackage.persistent.dao.file.PerformanceLogHomeLog4jImpl.save(PerformanceLogHomeLog4jImpl.java:32)
at com.mypackage.performance.PerformanceLoggingServiceImpl.run(PerformanceLoggingServiceImpl.java:38)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IllegalStateException: The hibernate.test.org.hibernate.cache.UpdateTimestampsCache Cache is not alive.
at net.sf.ehcache.Cache.checkStatus(Cache.java:713)
at net.sf.ehcache.Cache.put(Cache.java:313)
at org.hibernate.cache.EhCache.put(EhCache.java:153)
... 21 more
Name and version of the database you are using: Oracle 9.0.1Does anyone know hot to solve such problem. I'm using hibernate 3.0.5 and spring 1.2. Here 's my ecache config:
Code:
<ehcache>
<diskStore path="java.io.tmpdir"/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="true"
/>
<cache name="net.sf.hibernate.cache.StandardQueryCache"
maxElementsInMemory="1000"
eternal="false"
timeToLiveSeconds="120"
overflowToDisk="false"/>
<cache name="net.sf.hibernate.cache.UpdateTimestampsCache"
maxElementsInMemory="5000"
eternal="true"
overflowToDisk="false"/>
<!-- Domain Objects -->
<cache name="com.trilogy.persistent.dao.hibernate.LeadStatusHibernate"
maxElementsInMemory="100"
eternal="true"
timeToIdleSeconds="0"
timeToLiveSeconds="0"
overflowToDisk="false"
/>
<!-- Queries -->
<cache name="query.FindLeadStatusByName"
maxElementsInMemory="10"
eternal="true"
timeToLiveSeconds="0"
overflowToDisk="false"/>
</ehcache>