Code:
java.lang.ClassCastException: org.hibernate.cache.entry.CacheEntry cannot be cast to java.util.Map
>> at org.hibernate.cache.entry.StructuredCacheEntry.destructure(StructuredCacheEntry.java:23)
>> at org.hibernate.event.def.DefaultLoadEventListener.loadFromSecondLevelCache(DefaultLoadEventListener.java:504)
>> at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:357)
>> at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:139)
>> at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:195)
>> at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103)
i use the memcached and the hibernate.cfg.xml cofing:
<property name="hibernate.cache.use_structured_entries">
false
</property>
if
<property name="hibernate.cache.use_structured_entries">
true
</property>