Exception occurred while retrieves the full state from the target member

73 views
Skip to first unread message

lahiru amalka yapa

unread,
Jun 26, 2020, 3:37:21 AM6/26/20
to jgroups-dev
Hello,

we are facing org.jgroups.StateTransferException while retrieves the state from the coordinator. Following code is used to get the sate,

try {
                jchannel
.getState(null, 5000);
     
} catch (Exception e) {}


In order to get and set state, we have overridden the following methods,

@Override
public void getState(OutputStream output) throws Exception {}

@Override
public void setState(InputStream input) throws Exception {}


when node try to get the status using coordinator, it fails due to following error,
org.jgroups.StateTransferException: state transfer failed
        at org.jgroups.JChannel.getState(JChannel.java:585)
        at org.jgroups.JChannel.getState(JChannel.java:514)
        at org.jgroups.JChannel.getState(JChannel.java:501)
        at com.leapset.tiny.service.network.cluster.ClusterManagerImpl$ClusterConnector.readState(ClusterManagerImpl.java:339)
        at com.leapset.tiny.service.network.cluster.ClusterManagerImpl$ClusterConnector.connectChannel(ClusterManagerImpl.java:369)
        at com.leapset.tiny.service.network.cluster.ClusterManagerImpl$ClusterConnector.connectMerchantChannel(ClusterManagerImpl.java:380)
        at com.leapset.tiny.service.network.cluster.ClusterManagerImpl$ClusterConnector.run(ClusterManagerImpl.java:404)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
        at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:106)
        at org.jgroups.JChannel.up(JChannel.java:655)
        at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1015)
        at org.jgroups.protocols.pbcast.STATE_TRANSFER.handleException(STATE_TRANSFER.java:307)
        at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:157)
        at org.jgroups.stack.Protocol.up(Protocol.java:401)
        at org.jgroups.protocols.RSVP.up(RSVP.java:221)
        at org.jgroups.protocols.FRAG2.up(FRAG2.java:182)
        at org.jgroups.protocols.FlowControl.up(FlowControl.java:434)
        at org.jgroups.protocols.FlowControl.up(FlowControl.java:434)
        at org.jgroups.stack.Protocol.up(Protocol.java:409)
        at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:294)
        at org.jgroups.protocols.UNICAST3.removeAndDeliver(UNICAST3.java:796)
        at org.jgroups.protocols.UNICAST3.handleBatchReceived(UNICAST3.java:752)
        at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:466)
        at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:662)
        at org.jgroups.protocols.BARRIER.up(BARRIER.java:126)
        at org.jgroups.stack.Protocol.up(Protocol.java:409)
        at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:197)
        at org.jgroups.stack.Protocol.up(Protocol.java:409)
        at org.jgroups.protocols.FD.up(FD.java:274)
        at org.jgroups.protocols.MERGE2.up(MERGE2.java:226)
        at org.jgroups.stack.Protocol.up(Protocol.java:409)
        at org.jgroups.stack.Protocol.up(Protocol.java:409)
        at org.jgroups.protocols.TP.passBatchUp(TP.java:1422)
        at org.jgroups.protocols.TP$BatchHandler.run(TP.java:1574)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        ... 1 more


Any possible reason why is this fails?

lahiru amalka yapa

unread,
Jun 26, 2020, 3:38:54 AM6/26/20
to jgroups-dev
We are using 3.4.0.Final jgroup.version
Reply all
Reply to author
Forward
0 new messages