Getting ClassNotFoundException when accessing object across cluster

Hi,

I’m trying to develop my own plugin which makes use of Openfire’s caching. In my plugin, I create a Cache (org.jivesoftware.util.cache), myMap, mapping types String to MyClass. MyClass implements Externalizable, overwriting writeExternal() and readExternal(). I’m able to succesfully cluster my Openfire servers, but when I call myMap.get(…), I get the following error stack in Openfire’s log every time:

…exception…

Caused by: java.io.IOException: Problem reading Externalizable class : com.mypackage.MyClass, exception: java.lang.ClassNotFoundException: com.mypackage.MyClass

at com.hazelcast.nio.DefaultSerializer$Externalizer.read(DefaultSerializer.java:35 1)

at com.hazelcast.nio.DefaultSerializer$Externalizer.read(DefaultSerializer.java:33 1)

at com.hazelcast.nio.DefaultSerializer.read(DefaultSerializer.java:138)

at com.hazelcast.nio.CustomSerializerAdapter.read(CustomSerializerAdapter.java:32)

at com.hazelcast.nio.AbstractSerializer.toObject(AbstractSerializer.java:121)

… 43 more

I’m trying to figure out what I’m doing wrong and was wondering if anyone knew what I would need to do to fix this issue. Thanks in advance for any help.

1 Like

Hi, so were you able to configure your custom caches?