CacheException « Exception « JPA Q&A





1. Urgent: throwing CacheException in hibernate    forum.hibernate.org

some times I am getting cache exception for the below code (i.e especially first request when I start server). result = (O) sess.get(classToLoad, id); Exception: Caused by: org.hibernate.cache.CacheException: org.infinispan.CacheException: java.lang.NoSuchFieldError: serializabilityChecker at org.hibernate.cache.infinispan.util.CacheAdapterImpl.get(CacheAdapterImpl.java:82) ~[hibernate-infinispan-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.cache.infinispan.access.TransactionalAccessDelegate.get(TransactionalAccessDelegate.java:64) ~[hibernate-infinispan-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.cache.infinispan.entity.TransactionalAccess.get(TransactionalAccess.java:36) ~[hibernate-infinispan-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.event.def.DefaultLoadEventListener.loadFromSecondLevelCache(DefaultLoadEventListener.java:587) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:459) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:227) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.impl.SessionImpl.get(SessionImpl.java:1005) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final] ...

2. how to solve net/sf/ehcache/CacheException exception??    forum.hibernate.org

HI I want to query the data based on date using between function eg: Select * FROM PROFILE_EVENT WHERE TRUNC(EVENT_DATE_TIME) BETWEEN TO_DATE('02/21/2006','MM/dd/yyyy') AND TO_DATE('02/21/2006','MM/dd/yyyy') when i execute this in oracle i am getting result. when i execute this in hibernate i am getting no result. hibernate generated query does not have trunc, to_date function. Select * FROM PROFILE_EVENT WHERE EVENT_DATE_TIME BETWEEN ...