com.hazelcast.nio.HazelcastSerializationException: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager

Jive Software Open Source | Guus der Kinderen | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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.

    Jive Software Open Source | 5 years ago | Guus der Kinderen
    com.hazelcast.nio.HazelcastSerializationException: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager
  2. 0

    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.

    JIRA | 5 years ago | Guus der Kinderen
    com.hazelcast.nio.HazelcastSerializationException: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager
  3. 0

    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.

    Jive Software Open Source | 5 years ago | Guus der Kinderen
    com.hazelcast.nio.HazelcastSerializationException: java.io.NotSerializableException: org.jivesoftware.openfire.commands.AdHocCommandManager
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem with IMap<K,V>.keySet( Predicate )

    Google Groups | 7 years ago | Pavel Fila
    java.io.NotSerializableException: ClusterDistributedStorage
  6. 0

    Failure to serialize on polymorphic patterns

    Google Groups | 7 years ago | Phinidy
    java.io.NotSerializableException: nu.xom.Document

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.NotSerializableException

      org.jivesoftware.openfire.commands.AdHocCommandManager

      at java.io.ObjectOutputStream.writeObject0()
    2. Java RT
      ObjectOutputStream.writeUnshared
      1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
      2. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      3. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      4. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      5. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      6. java.io.ObjectOutputStream.writeUnshared(ObjectOutputStream.java:393)
      6 frames
    3. hazelcast
      MProxyImpl.put
      1. com.hazelcast.nio.DefaultSerializer$ObjectSerializer.writeNormal(DefaultSerializer.java:433)
      2. com.hazelcast.nio.DefaultSerializer$ObjectSerializer.write(DefaultSerializer.java:387)
      3. com.hazelcast.nio.DefaultSerializer.write(DefaultSerializer.java:128)
      4. com.hazelcast.nio.CustomSerializerAdapter.write(CustomSerializerAdapter.java:28)
      5. com.hazelcast.nio.AbstractSerializer.toByte(AbstractSerializer.java:103)
      6. com.hazelcast.nio.AbstractSerializer.toByteArray(AbstractSerializer.java:139)
      7. com.hazelcast.nio.Serializer.writeObject(Serializer.java:52)
      8. com.hazelcast.impl.ThreadContext.toData(ThreadContext.java:131)
      9. com.hazelcast.nio.IOUtil.toData(IOUtil.java:136)
      10. com.hazelcast.impl.BaseManager$RequestBasedCall.setLocal(BaseManager.java:522)
      11. com.hazelcast.impl.BaseManager$ResponseQueueCall.setLocal(BaseManager.java:555)
      12. com.hazelcast.impl.ConcurrentMapManager$MPut.txnalPut(ConcurrentMapManager.java:1844)
      13. com.hazelcast.impl.ConcurrentMapManager$MPut.txnalPut(ConcurrentMapManager.java:1799)
      14. com.hazelcast.impl.ConcurrentMapManager$MPut.put(ConcurrentMapManager.java:1664)
      15. com.hazelcast.impl.MProxyImpl$MProxyReal.put(MProxyImpl.java:632)
      16. com.hazelcast.impl.MProxyImpl$MProxyReal.put(MProxyImpl.java:606)
      17. com.hazelcast.impl.MProxyImpl.put(MProxyImpl.java:173)
      18. com.hazelcast.impl.MProxyImpl.put(MProxyImpl.java:124)
      18 frames
    4. com.jivesoftware.util
      ClusteredCache.put
      1. com.jivesoftware.util.cache.ClusteredCache.put(ClusteredCache.java:81)
      1 frame
    5. org.jivesoftware.util
      CacheWrapper.put
      1. org.jivesoftware.util.cache.CacheWrapper.put(CacheWrapper.java:129)
      1 frame
    6. org.jivesoftware.openfire
      ServerSocketReader$2.run
      1. org.jivesoftware.openfire.pep.PEPServiceManager.loadPEPServiceFromDB(PEPServiceManager.java:148)
      2. org.jivesoftware.openfire.pep.PEPServiceManager.getPEPService(PEPServiceManager.java:78)
      3. org.jivesoftware.openfire.pep.IQPEPHandler.remoteUserAvailable(IQPEPHandler.java:637)
      4. org.jivesoftware.openfire.user.RemotePresenceEventDispatcher.remoteUserAvailable(RemotePresenceEventDispatcher.java:75)
      5. org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:158)
      6. org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:85)
      7. org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84)
      8. org.jivesoftware.openfire.net.SocketReader.processPresence(SocketReader.java:284)
      9. org.jivesoftware.openfire.net.ServerSocketReader.access$201(ServerSocketReader.java:60)
      10. org.jivesoftware.openfire.net.ServerSocketReader$2.run(ServerSocketReader.java:122)
      10 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:619)
      3 frames