[jboss-user] [JBoss Cache: Core Edition] - Re: ClassCastException in FileCacheLoader
bstansberry@jboss.com
do-not-reply at jboss.com
Tue May 13 10:54:16 EDT 2008
I suspect you have another copy of JBoss Cache deployed with your app.
The CCE is occuring at line 416 of FileCacheLoader which does this:
nd = (NodeData) in.readObject();
Just tested, and when a CCE happens, the message of the CCE is the type of the object being cast, not the target type. The message your stack trace is showing is
java.lang.ClassCastException: org.jboss.cache.loader.NodeData
The message says the object being cast is of type NodeData, i.e. seemingly what the cast expects.
That suggests to me that the NodeData class has been loaded by two different classloaders; load a class with the same name from 2 different classloaders and try to cast and you'll get a CCE.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150410#4150410
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150410
More information about the jboss-user
mailing list