java.lang.ClassCastException

org.infinispan.container.entries.ImmortalCacheEntry cannot be cast to java.util.Collection

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web2

Stack trace

  • java.lang.ClassCastException: org.infinispan.container.entries.ImmortalCacheEntry cannot be cast to java.util.Collection at org.infinispan.commands.control.StateTransferControlCommand.setParameters(StateTransferControlCommand.java:153)[infinispan-core.jar:5.1.7.Final] at org.infinispan.commands.RemoteCommandsFactory.fromStream(RemoteCommandsFactory.java:231)[infinispan-core.jar:5.1.7.Final] at org.infinispan.marshall.exts.ReplicableCommandExternalizer.fromStream(ReplicableCommandExternalizer.java:125)[infinispan-core.jar:5.1.7.Final] at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.readObject(CacheRpcCommandExternalizer.java:163)[infinispan-core.jar:5.1.7.Final] at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.readObject(CacheRpcCommandExternalizer.java:66)[infinispan-core.jar:5.1.7.Final] at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:395)[infinispan-core.jar:5.1.7.Final] at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:224)[infinispan-core.jar:5.1.7.Final] at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:355)[jboss-marshalling-river-1.3.18.GA-redhat-1.jar:1.3.18.GA-redhat-1] at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:213)[jboss-marshalling-river-1.3.18.GA-redhat-1.jar:1.3.18.GA-redhat-1] at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)[jboss-marshalling-1.3.18.GA-redhat-1.jar:1.3.18.GA-redhat-1] at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:163)[infinispan-core.jar:5.1.7.Final] at org.infinispan.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:114)[infinispan-core.jar:5.1.7.Final] at org.infinispan.marshall.AbstractDelegatingMarshaller.objectFromByteBuffer(AbstractDelegatingMarshaller.java:104)[infinispan-core.jar:5.1.7.Final] at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectFromBuffer(MarshallerAdapter.java:50)[infinispan-core.jar:5.1.7.Final] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:200)[infinispan-core.jar:5.1.7.Final] at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:456)[jgroups.jar:3.0.13.Final] at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:363)[jgroups.jar:3.0.13.Final] at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:238)[jgroups.jar:3.0.13.Final] at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:601)[jgroups.jar:3.0.13.Final] at org.jgroups.JChannel.up(JChannel.java:716)[jgroups.jar:3.0.13.Final] at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1026)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.RSVP.up(RSVP.java:172)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.FRAG2.unfragment(FRAG2.java:302)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.FRAG2.up(FRAG2.java:162)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.FlowControl.up(FlowControl.java:418)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.FlowControl.up(FlowControl.java:400)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.pbcast.GMS.up(GMS.java:889)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:244)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.UNICAST2.handleDataReceived(UNICAST2.java:759)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.UNICAST2.up(UNICAST2.java:365)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:602)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:143)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.FD.up(FD.java:273)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:288)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.MERGE2.up(MERGE2.java:205)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.Discovery.up(Discovery.java:359)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.TP.passMessageUp(TP.java:1185)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1733)[jgroups.jar:3.0.13.Final] at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1715)[jgroups.jar:3.0.13.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_25] at java.lang.Thread.run(Thread.java:724)[rt.jar:1.7.0_25]

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

We couldn't find other users who have seen this exception.