hi, i am getting ClassCastException while fetching data from IgniteCache.

below is the code fragment:
CacheConfiguration<SubscriberKey, Subscriber> cacheCfg 
                = new CacheConfiguration<SubscriberKey,
Subscriber>(CACHE_NAME);
...

IgniteCache<SubscriberKey, Subscriber> cache =
ignite.getOrCreateCache(cacheCfg)
...
logger.debug("data: {}",cache.get(id));    // works fine, prints complete
row
Subscriber val = cache.get(id);      //throws ClassCastException

exception msg:
java.lang.ClassCastException: example.datagrid.model.Subscriber cannot be
cast to example.datagrid.model.Subscriber



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/ClassCastException-while-fetching-data-from-IgniteCache-with-custom-persistent-store-tp8377.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to