Using Ignite 2.4 for Hibernate query cache and getting an exception:
Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast
to [Ljava.io.Serializable;
at
org.hibernate.cache.internal.StandardQueryCache.get(StandardQueryCache.java:189)
at org.hibernate.loader.Loader.getResultFromQueryCache(Loader.java:2587)
The problematic line in Hibernate reads:
TypeHelper.beforeAssemble( (Serializable[]) cacheable.get( i ), returnTypes,
session );
it receives Object[] from the cache and tries to cast to Serializable[]
which obviously fails. It seems to be a generic place and should not work
for anyone, but somehow it is working?
I did check put operation and it actually puts Serializable[] into the
cache.
Any pointers on how to resolve the issue?
Cache config used is very simple taken from examples.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/