ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhengqingzheng <zhengqingzh...@huawei.com>
Subject ignite Connection refused exception
Date Wed, 20 Jul 2016 09:27:50 GMT
Hi there,
When using ignite client connect to the server, I always get exceptions like this:
[17:22:24,440][ERROR][tcp-client-disco-msg-worker-#4%default%][TcpDiscoverySpi] Exception
on joining: Connection refused: connect
java.net.ConnectException: Connection refused: connect
         at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
         at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
         at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
         at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
         at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
         at java.net.Socket.connect(Socket.java:589)
         at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.openSocket(TcpDiscoverySpi.java:1266)
         at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.openSocket(TcpDiscoverySpi.java:1241)
         at org.apache.ignite.spi.discovery.tcp.ClientImpl.sendJoinRequest(ClientImpl.java:579)
         at org.apache.ignite.spi.discovery.tcp.ClientImpl.joinTopology(ClientImpl.java:505)
         at org.apache.ignite.spi.discovery.tcp.ClientImpl.access$900(ClientImpl.java:118)
         at org.apache.ignite.spi.discovery.tcp.ClientImpl$MessageWorker.tryJoin(ClientImpl.java:1508)
         at org.apache.ignite.spi.discovery.tcp.ClientImpl$MessageWorker.body(ClientImpl.java:1327)
         at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
and exceptions like this:

[17:22:48,949][ERROR][main][IgniteKernal%default] Failed to start manager: GridManagerAdapter
[enabled=true, name=o.a.i.i.managers.discovery.GridDiscoveryManager]
class org.apache.ignite.IgniteCheckedException: Failed to start SPI: TcpDiscoverySpi [addrRslvr=null,
sockTimeout=5000, ackTimeout=5000, reconCnt=10, maxAckTimeout=600000, forceSrvMode=false,
clientReconnectDisabled=false]
         at org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:258)
         at org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:660)
         at org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1505)
         at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:917)
         at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1688)
         at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1547)
         at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1003)
         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:534)
         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:515)
         at org.apache.ignite.Ignition.start(Ignition.java:322)
         at com.huawei.soa.ignite.util.IgniteMetaUtils.initCache(IgniteMetaUtils.java:964)
         at com.huawei.soa.ignite.util.IgniteMetaUtils.init(IgniteMetaUtils.java:327)
         at com.huawei.soa.ignite.util.IgniteMetaUtils.<init>(IgniteMetaUtils.java:296)
         at com.huawei.soa.ignite.util.IgniteMetaUtils.getInstance(IgniteMetaUtils.java:124)
         at com.huawei.soa.ignite.test.IgniteTest.loadProdCache0(IgniteTest.java:1565)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
         at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
         at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
         at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
         at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
         at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
         at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
         at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
         at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
         at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: class org.apache.ignite.spi.IgniteSpiException: Failed to connect to cluster, connection
failed and failed to reconnect.
         at org.apache.ignite.spi.discovery.tcp.ClientImpl$Reconnector.body(ClientImpl.java:1287)
         at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)


anyone knows why this always happened?

Best regards,
Kevin

Mime
View raw message