Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-752

ClassCastException: org.infinispan.xsite.XSiteAdminCommand cannot be cast to org.infinispan.xsite.XSiteReplicateCommand

XMLWordPrintable

    • DR1
    • Hide

      Attached a JDG 7 domain mode configuration which consists of 4 nodes on a single host.

      • SiteA
        • server-a1
        • server-a2
      • SiteB
        • server-b1
        • server-b2

      You can start the domain any directory you like.

      mkdir domain; cd domain
      unzip configuration.zip
      $JDG7_HOME/bin/domain.sh -Djboss.domain.base.dir=./
      

      Just starting the domain will be enough to reproduce the ClassCastException. Or you can restart a node to make it happen again.

      [domain@localhost:9990 /] /host=master/server-config=server-b2:stop
      [domain@localhost:9990 /] /host=master/server-config=server-b2:start
      
      Show
      Attached a JDG 7 domain mode configuration which consists of 4 nodes on a single host. SiteA server-a1 server-a2 SiteB server-b1 server-b2 You can start the domain any directory you like. mkdir domain; cd domain unzip configuration.zip $JDG7_HOME/bin/domain.sh -Djboss.domain.base.dir=./ Just starting the domain will be enough to reproduce the ClassCastException . Or you can restart a node to make it happen again. [domain@localhost:9990 /] /host=master/server-config=server-b2:stop [domain@localhost:9990 /] /host=master/server-config=server-b2:start

      When a node restarts, the following ClassCastException is recorded in the backup site nodes.

      2017-01-30 17:28:35,854 WARN  [org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher] (OOB-19,master:server-b2) ISPN000071: Caught exception when handling command XSiteAdminCommand{siteName='null', afterFailures=null, minTimeToWait=null, adminOperation=STATUS, backupSender=null}: java.lang.ClassCastException: org.infinispan.xsite.XSiteAdminCommand cannot be cast to org.infinispan.xsite.XSiteReplicateCommand
              at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.executeCommandFromRemoteSite(CommandAwareRpcDispatcher.java:191)
              at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:165)
              at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:455)
              at org.jgroups.blocks.RequestCorrelator.dispatch(RequestCorrelator.java:406)
              at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:357)
              at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:245)
              at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:664)
              at org.jgroups.JChannel.up(JChannel.java:738)
              at org.jgroups.fork.ForkProtocolStack.up(ForkProtocolStack.java:120)
              at org.jgroups.stack.Protocol.up(Protocol.java:380)
              at org.jgroups.protocols.FORK.up(FORK.java:114)
              at org.jgroups.protocols.relay.RELAY2.deliver(RELAY2.java:616)
              at org.jgroups.protocols.relay.RELAY2.up(RELAY2.java:409)
              at org.jgroups.protocols.FRAG2.up(FRAG2.java:165)
              at org.jgroups.protocols.FlowControl.up(FlowControl.java:374)
              at org.jgroups.protocols.pbcast.GMS.up(GMS.java:1040)
              at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234)
              at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:435)
              at org.jgroups.protocols.pbcast.NAKACK2.deliver(NAKACK2.java:966)
              at org.jgroups.protocols.pbcast.NAKACK2.handleMessage(NAKACK2.java:845)
              at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:611)
              at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:155)
              at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:200)
              at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:310)
              at org.jgroups.protocols.MERGE3.up(MERGE3.java:285)
              at org.jgroups.protocols.Discovery.up(Discovery.java:296)
              at org.jgroups.protocols.TP.passMessageUp(TP.java:1602)
              at org.jgroups.protocols.TP$3.run(TP.java:1536)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      

              pruivo@redhat.com Pedro Ruivo
              rhn-support-onagano Osamu Nagano
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: