com.hazelcast.nio.HazelcastSerializationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • After adding Hazelcast to the XMPP domain at igniterealtime.org, I noticed stack traces like these in the error log: {code}2012.11.14 13:52:03 org.jivesoftware.openfire.PresenceRouter - Could not route packet com.hazelcast.nio.HazelcastSerializationException: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager at com.hazelcast.nio.AbstractSerializer.toByte(AbstractSerializer.java:111) at com.hazelcast.nio.AbstractSerializer.toByteArray(AbstractSerializer.java:139) at com.hazelcast.nio.Serializer.writeObject(Serializer.java:52) at com.hazelcast.impl.ThreadContext.toData(ThreadContext.java:131) at com.hazelcast.nio.IOUtil.toData(IOUtil.java:136) at com.hazelcast.impl.BaseManager$RequestBasedCall.setLocal(BaseManager.java:522) at com.hazelcast.impl.BaseManager$ResponseQueueCall.setLocal(BaseManager.java:555) at com.hazelcast.impl.ConcurrentMapManager$MPut.txnalPut(ConcurrentMapManager.java:1844) at com.hazelcast.impl.ConcurrentMapManager$MPut.txnalPut(ConcurrentMapManager.java:1799) at com.hazelcast.impl.ConcurrentMapManager$MPut.put(ConcurrentMapManager.java:1664) at com.hazelcast.impl.MProxyImpl$MProxyReal.put(MProxyImpl.java:632) at com.hazelcast.impl.MProxyImpl$MProxyReal.put(MProxyImpl.java:606) at com.hazelcast.impl.MProxyImpl.put(MProxyImpl.java:173) at com.hazelcast.impl.MProxyImpl.put(MProxyImpl.java:124) at com.jivesoftware.util.cache.ClusteredCache.put(ClusteredCache.java:81) at org.jivesoftware.util.cache.CacheWrapper.put(CacheWrapper.java:129) at org.jivesoftware.openfire.pep.PEPServiceManager.loadPEPServiceFromDB(PEPServiceManager.java:148) at org.jivesoftware.openfire.pep.PEPServiceManager.getPEPService(PEPServiceManager.java:78) at org.jivesoftware.openfire.pep.IQPEPHandler.remoteUserAvailable(IQPEPHandler.java:637) at org.jivesoftware.openfire.user.RemotePresenceEventDispatcher.remoteUserAvailable(RemotePresenceEventDispatcher.java:75) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:158) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:85) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284) at org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeUnshared(ObjectOutputStream.java:393) at com.hazelcast.nio.DefaultSerializer$ObjectSerializer.writeNormal(DefaultSerializer.java:433) at com.hazelcast.nio.DefaultSerializer$ObjectSerializer.write(DefaultSerializer.java:387) at com.hazelcast.nio.DefaultSerializer.write(DefaultSerializer.java:128) at com.hazelcast.nio.CustomSerializerAdapter.write(CustomSerializerAdapter.java:28) at com.hazelcast.nio.AbstractSerializer.toByte(AbstractSerializer.java:103) ... 28 more {code} The root cause lies in {{org.jivesoftware.openfire.pep.PEPServiceManager#pepServices}}, which is a cache of PEPService instances. When used in a cluster, it tries to serialize PEPService instances, which fails. The AdHocCommandManager that is part of the instance ({{org.jivesoftware.openfire.pep.PEPService#adHocCommandManager}}) is not Serializable. The obvious way out would be making that class Serializable. I do wonder if that's not adding to much to an already rather bloated cached entity.
    via by Guus der Kinderen,
  • After adding Hazelcast to the XMPP domain at igniterealtime.org, I noticed stack traces like these in the error log: {code}2012.11.14 13:52:03 org.jivesoftware.openfire.PresenceRouter - Could not route packet com.hazelcast.nio.HazelcastSerializationException: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager at com.hazelcast.nio.AbstractSerializer.toByte(AbstractSerializer.java:111) at com.hazelcast.nio.AbstractSerializer.toByteArray(AbstractSerializer.java:139) at com.hazelcast.nio.Serializer.writeObject(Serializer.java:52) at com.hazelcast.impl.ThreadContext.toData(ThreadContext.java:131) at com.hazelcast.nio.IOUtil.toData(IOUtil.java:136) at com.hazelcast.impl.BaseManager$RequestBasedCall.setLocal(BaseManager.java:522) at com.hazelcast.impl.BaseManager$ResponseQueueCall.setLocal(BaseManager.java:555) at com.hazelcast.impl.ConcurrentMapManager$MPut.txnalPut(ConcurrentMapManager.java:1844) at com.hazelcast.impl.ConcurrentMapManager$MPut.txnalPut(ConcurrentMapManager.java:1799) at com.hazelcast.impl.ConcurrentMapManager$MPut.put(ConcurrentMapManager.java:1664) at com.hazelcast.impl.MProxyImpl$MProxyReal.put(MProxyImpl.java:632) at com.hazelcast.impl.MProxyImpl$MProxyReal.put(MProxyImpl.java:606) at com.hazelcast.impl.MProxyImpl.put(MProxyImpl.java:173) at com.hazelcast.impl.MProxyImpl.put(MProxyImpl.java:124) at com.jivesoftware.util.cache.ClusteredCache.put(ClusteredCache.java:81) at org.jivesoftware.util.cache.CacheWrapper.put(CacheWrapper.java:129) at org.jivesoftware.openfire.pep.PEPServiceManager.loadPEPServiceFromDB(PEPServiceManager.java:148) at org.jivesoftware.openfire.pep.PEPServiceManager.getPEPService(PEPServiceManager.java:78) at org.jivesoftware.openfire.pep.IQPEPHandler.remoteUserAvailable(IQPEPHandler.java:637) at org.jivesoftware.openfire.user.RemotePresenceEventDispatcher.remoteUserAvailable(RemotePresenceEventDispatcher.java:75) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:158) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:85) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284) at org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeUnshared(ObjectOutputStream.java:393) at com.hazelcast.nio.DefaultSerializer$ObjectSerializer.writeNormal(DefaultSerializer.java:433) at com.hazelcast.nio.DefaultSerializer$ObjectSerializer.write(DefaultSerializer.java:387) at com.hazelcast.nio.DefaultSerializer.write(DefaultSerializer.java:128) at com.hazelcast.nio.CustomSerializerAdapter.write(CustomSerializerAdapter.java:28) at com.hazelcast.nio.AbstractSerializer.toByte(AbstractSerializer.java:103) ... 28 more {code} The root cause lies in {{org.jivesoftware.openfire.pep.PEPServiceManager#pepServices}}, which is a cache of PEPService instances. When used in a cluster, it tries to serialize PEPService instances, which fails. The AdHocCommandManager that is part of the instance ({{org.jivesoftware.openfire.pep.PEPService#adHocCommandManager}}) is not Serializable. The obvious way out would be making that class Serializable. I do wonder if that's not adding to much to an already rather bloated cached entity.
    via by Guus der Kinderen,
  • After adding Hazelcast to the XMPP domain at igniterealtime.org, I noticed stack traces like these in the error log: {code}2012.11.14 13:52:03 org.jivesoftware.openfire.PresenceRouter - Could not route packet com.hazelcast.nio.HazelcastSerializationException: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager at com.hazelcast.nio.AbstractSerializer.toByte(AbstractSerializer.java:111) at com.hazelcast.nio.AbstractSerializer.toByteArray(AbstractSerializer.java:139) at com.hazelcast.nio.Serializer.writeObject(Serializer.java:52) at com.hazelcast.impl.ThreadContext.toData(ThreadContext.java:131) at com.hazelcast.nio.IOUtil.toData(IOUtil.java:136) at com.hazelcast.impl.BaseManager$RequestBasedCall.setLocal(BaseManager.java:522) at com.hazelcast.impl.BaseManager$ResponseQueueCall.setLocal(BaseManager.java:555) at com.hazelcast.impl.ConcurrentMapManager$MPut.txnalPut(ConcurrentMapManager.java:1844) at com.hazelcast.impl.ConcurrentMapManager$MPut.txnalPut(ConcurrentMapManager.java:1799) at com.hazelcast.impl.ConcurrentMapManager$MPut.put(ConcurrentMapManager.java:1664) at com.hazelcast.impl.MProxyImpl$MProxyReal.put(MProxyImpl.java:632) at com.hazelcast.impl.MProxyImpl$MProxyReal.put(MProxyImpl.java:606) at com.hazelcast.impl.MProxyImpl.put(MProxyImpl.java:173) at com.hazelcast.impl.MProxyImpl.put(MProxyImpl.java:124) at com.jivesoftware.util.cache.ClusteredCache.put(ClusteredCache.java:81) at org.jivesoftware.util.cache.CacheWrapper.put(CacheWrapper.java:129) at org.jivesoftware.openfire.pep.PEPServiceManager.loadPEPServiceFromDB(PEPServiceManager.java:148) at org.jivesoftware.openfire.pep.PEPServiceManager.getPEPService(PEPServiceManager.java:78) at org.jivesoftware.openfire.pep.IQPEPHandler.remoteUserAvailable(IQPEPHandler.java:637) at org.jivesoftware.openfire.user.RemotePresenceEventDispatcher.remoteUserAvailable(RemotePresenceEventDispatcher.java:75) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:158) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:85) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284) at org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeUnshared(ObjectOutputStream.java:393) at com.hazelcast.nio.DefaultSerializer$ObjectSerializer.writeNormal(DefaultSerializer.java:433) at com.hazelcast.nio.DefaultSerializer$ObjectSerializer.write(DefaultSerializer.java:387) at com.hazelcast.nio.DefaultSerializer.write(DefaultSerializer.java:128) at com.hazelcast.nio.CustomSerializerAdapter.write(CustomSerializerAdapter.java:28) at com.hazelcast.nio.AbstractSerializer.toByte(AbstractSerializer.java:103) ... 28 more {code} The root cause lies in {{org.jivesoftware.openfire.pep.PEPServiceManager#pepServices}}, which is a cache of PEPService instances. When used in a cluster, it tries to serialize PEPService instances, which fails. The AdHocCommandManager that is part of the instance ({{org.jivesoftware.openfire.pep.PEPService#adHocCommandManager}}) is not Serializable. The obvious way out would be making that class Serializable. I do wonder if that's not adding to much to an already rather bloated cached entity.
    via by Guus der Kinderen,
  • Problem with IMap<K,V>.keySet( Predicate )
    via by Pavel Fila,
  • Is Member serializable???
    via by sselvia,
    • com.hazelcast.nio.HazelcastSerializationException: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager at com.hazelcast.nio.AbstractSerializer.toByte(AbstractSerializer.java:111) at com.hazelcast.nio.AbstractSerializer.toByteArray(AbstractSerializer.java:139) at com.hazelcast.nio.Serializer.writeObject(Serializer.java:52) at com.hazelcast.impl.ThreadContext.toData(ThreadContext.java:131) at com.hazelcast.nio.IOUtil.toData(IOUtil.java:136) at com.hazelcast.impl.BaseManager$RequestBasedCall.setLocal(BaseManager.java:522) at com.hazelcast.impl.BaseManager$ResponseQueueCall.setLocal(BaseManager.java:555) at com.hazelcast.impl.ConcurrentMapManager$MPut.txnalPut(ConcurrentMapManager.java:1844) at com.hazelcast.impl.ConcurrentMapManager$MPut.txnalPut(ConcurrentMapManager.java:1799) at com.hazelcast.impl.ConcurrentMapManager$MPut.put(ConcurrentMapManager.java:1664) at com.hazelcast.impl.MProxyImpl$MProxyReal.put(MProxyImpl.java:632) at com.hazelcast.impl.MProxyImpl$MProxyReal.put(MProxyImpl.java:606) at com.hazelcast.impl.MProxyImpl.put(MProxyImpl.java:173) at com.hazelcast.impl.MProxyImpl.put(MProxyImpl.java:124) at com.jivesoftware.util.cache.ClusteredCache.put(ClusteredCache.java:81) at org.jivesoftware.util.cache.CacheWrapper.put(CacheWrapper.java:129) at org.jivesoftware.openfire.pep.PEPServiceManager.loadPEPServiceFromDB(PEPServiceManager.java:148) at org.jivesoftware.openfire.pep.PEPServiceManager.getPEPService(PEPServiceManager.java:78) at org.jivesoftware.openfire.pep.IQPEPHandler.remoteUserAvailable(IQPEPHandler.java:637) at org.jivesoftware.openfire.user.RemotePresenceEventDispatcher.remoteUserAvailable(RemotePresenceEventDispatcher.java:75) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:158) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:85) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284) at org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeUnshared(ObjectOutputStream.java:393) at com.hazelcast.nio.DefaultSerializer$ObjectSerializer.writeNormal(DefaultSerializer.java:433) at com.hazelcast.nio.DefaultSerializer$ObjectSerializer.write(DefaultSerializer.java:387) at com.hazelcast.nio.DefaultSerializer.write(DefaultSerializer.java:128) at com.hazelcast.nio.CustomSerializerAdapter.write(CustomSerializerAdapter.java:28) at com.hazelcast.nio.AbstractSerializer.toByte(AbstractSerializer.java:103) ... 28 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    osvzs
    6 times, last one,
    Unknown visitor1 times, last one,
    batwalrus76
    44 times, last one,
    68 more bugmates