我有一个服务器节点在运行并尝试通过提供xml配置在我的应用程序中运行一个客户机节点但由于加入服务器节点时出现异常但是当我检查visorcmd服务器节点处于活动状态并且我可以看到拓扑结构。 在客户端日志中,我观察到,客户端继续打印日志,直到运行应用程序的tomcat超时。 以下是日志快照:
[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)
但是如果在服务器模式下启动相同的应用程序,则不会发生错误,应用程序将按预期启动。