JBoss Community

Re: ClassCastException with Infinispan using multiple applications

created by Randy Nott in JBoss AS 7 Development - View the full discussion

I'm still getting ClassCastException after applying this change although I do appear to be using a classloader aware cache implementation now (

org.jboss.as.clustering.infinispan.ClassLoaderAwareCache). I have also tried removing CDI from the equation by fetching the cache from the container on demand rather than using injection. Casting continues to fail, so it would seem this is not a CDI issue.

 

It would appear that values stored in the cache are not serialized/materialized in my case although the value does implement Serializable, which would be a requirement for a shared cache. I'll put together a simplifiled test environment and try to determine why this is not the case.

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community