I have one server node running and trying to run one client node in my application by providing xml configuration but it is getting stuck due to exception on joining server node but when I check in visorcmd server node is active and I can see in the topology. In the client logs I observed that,client keep on printing logs until tomcat in which application is running times out. Below is the logs snapshot :
[11:31:34,063][SEVERE][grid-nio-worker-client-listener-0-#30][ClientListenerProcessor]Failed to pro
cess selector key [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.ni
[11:31:34,063][SEVERE][grid-nio-worker-client-listener-0-#30][ClientListenerProcessor] Failed to pro
cess selector key [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.ni
o.HeapByteBuffer[pos=0 lim=8192 cap=8192], super=AbstractNioClientWorker [idx=0, bytesRcvd=0, bytesS
ent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-client-listen
er-0, igniteInstanceName=null, finished=false, hashCode=1991420534, interrupted=false, runner=grid-n
io-worker-client-listener-0-#30]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null,
super=GridNioSessionImpl [locAddr=/192.168.0.117:10800, rmtAddr=/192.168.0.117:49596, createTime=151
9192525035, closeTime=0, bytesSent=1189, bytesRcvd=4596, bytesSent0=0, bytesRcvd0=0, sndSchedTime=15
19192526915, lastSndTime=1519192526915, lastRcvTime=1519192526825, readsPaused=false, filterChain=Fi
lterChain[filters=[GridNioAsyncNotifyFilter, GridNioCodecFilter [parser=ClientListenerBufferedParser
, directMode=false]], accepted=true]]]
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:197)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
at org.apache.ignite.internal.util.nio.GridNioServer$ByteBufferNioClientWorker.processRead(G
ridNioServer.java:1068)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelected
KeysOptimized(GridNioServer.java:2272)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(Gr
idNioServer.java:2048)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioSer
ver.java:1717)
at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
at java.lang.Thread.run(Thread.java:745)
But if the same application is started in server mode no error occurs and application starts as expected.