com.hazelcast.nio.serialization.HazelcastSerializationException

java.lang.ClassNotFoundException: be.powerdale.hazelcast.BasicEvent

Samebug tips8

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.


rafaelrafael

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web12855

Stack trace

  • com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: be.powerdale.hazelcast.BasicEvent at com.hazelcast.internal.serialization.impl.JavaDefaultSerializers$JavaSerializer.read(JavaDefaultSerializers.java:224) at com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(StreamSerializerAdapter.java:46) at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toObject(AbstractSerializationService.java:170) at com.hazelcast.topic.impl.DataAwareMessage.getMessageObject(DataAwareMessage.java:44) at be.powerdale.hazelcast.HazelcastMessageListener.onMessage(HazelcastMessageListener.java:21) at com.hazelcast.topic.impl.TopicService.dispatchEvent(TopicService.java:131) at com.hazelcast.spi.impl.eventservice.impl.LocalEventDispatcher.run(LocalEventDispatcher.java:56) at com.hazelcast.util.executor.StripedExecutor$Worker.process(StripedExecutor.java:187) at com.hazelcast.util.executor.StripedExecutor$Worker.run(StripedExecutor.java:171) Caused by: java.lang.ClassNotFoundException: be.powerdale.hazelcast.BasicEvent at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at com.sun.enterprise.loader.CurrentBeforeParentClassLoader.loadClass(CurrentBeforeParentClassLoader.java:82) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at com.hazelcast.nio.ClassLoaderUtil.tryLoadClass(ClassLoaderUtil.java:137) at com.hazelcast.nio.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:115) at com.hazelcast.nio.IOUtil$1.resolveClass(IOUtil.java:114) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1781) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373) at com.hazelcast.internal.serialization.impl.JavaDefaultSerializers$JavaSerializer.read(JavaDefaultSerializers.java:219) ... 8 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

rprp
23 times, last one
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
musketyrmusketyr
3 times, last one
2420 more bugmates