[jboss-dev-forums] [JBoss AS 7 Development] - Re: ClassCastException with Infinispan using multiple applications

Randy Nott do-not-reply at jboss.com
Mon Nov 21 12:38:03 EST 2011


Randy Nott [http://community.jboss.org/people/rnott] created the discussion

"Re: ClassCastException with Infinispan using multiple applications"

To view the discussion, visit: http://community.jboss.org/message/637575#637575

--------------------------------------------------------------
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
[http://community.jboss.org/message/637575#637575]

Start a new discussion in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111121/d08fd495/attachment.html 


More information about the jboss-dev-forums mailing list