-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Critical cache problems
PostPosted: Mon May 30, 2005 12:10 pm 
Regular
Regular

Joined: Thu Aug 28, 2003 6:30 am
Posts: 58
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.1

Does 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>



Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.