java-sdk-demo 运行不了
【问题分类】
- bug
- P2P网络相关(包含libp2p,liquid)
- 链账户身份与权限相关(证书问题、public、多签投票问题)
- 核心交易引擎相关(交易池、DAG)
- 共识相关
- 智能合约相关
- 存储相关
- SDK相关
- 长安链CMC工具
- 长安链管理台
- 长安链浏览器
- 长安链合约IDE
- 长安链web签名插件
- 跨链相关
- 轻节点相关
- 隐私计算相关
- 密码学相关
- 环境依赖
- 其他补充:
【问题描述】(请对问题进行描述,方便定位问题)
官方的java-sdk-demo用不了,链的配置我改了
【相关日志文件】(如果有报错日志请贴图,或者上传附件)
2024-05-06 17:56:50.220 WARN 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : check invoke getVersion error one
java.util.concurrent.TimeoutException: Waited 10000 milliseconds (plus 11 milliseconds, 209700 nanoseconds delay) for io.grpc.stub.ClientCalls$GrpcFuture@36e409e0[status=PENDING, info=[GrpcFuture{clientCall=PendingCall{realCall=ClientCallImpl{method=MethodDescriptor{fullMethodName=api.RpcNode/GetChainMakerVersion, type=UNARY, idempotent=false, safe=false, sampledToLocalTracing=true, requestMarshaller=io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@485deee1, responseMarshaller=io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@25cde5bb, schemaDescriptor=org.chainmaker.pb.api.RpcNodeGrpc$RpcNodeMethodDescriptorSupplier@38a96593}}}}]] at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:527) ~[guava-31.1-android.jar:na] at org.chainmaker.sdk.GrpcClientFactory.buseCheck(GrpcClientFactory.java:267) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.createRpcClient(GrpcClientFactory.java:129) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:109) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:21) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:70) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:571) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:298) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:223) [commons-pool2-2.11.1.jar:2.11.1] at org.chainmaker.sdk.ChainClient.sendTxRequest(ChainClient.java:2778) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.sendRequest(ChainClient.java:3201) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.proposalRequest(ChainClient.java:3107) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.getLastBlock(ChainClient.java:897) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.sync.TxResultDispatcher.start(TxResultDispatcher.java:101) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainManager.createChainClient(ChainManager.java:195) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainManager.createChainClient(ChainManager.java:130) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at chainmaker.sdk.demo.InitClient.inItChainClient(InitClient.java:59) [classes/:na] at chainmaker.sdk.demo.DemoApplication.main(DemoApplication.java:14) [classes/:na]
2024-05-06 17:56:50.220 WARN 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : ===============创建连接失败,把节点加入异常节点grpcs://192.168.153.128:12301 2024-05-06 17:56:52.285 WARN 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : check invoke getVersion error one
java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:588) ~[guava-31.1-android.jar:na] at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:463) ~[guava-31.1-android.jar:na] at org.chainmaker.sdk.GrpcClientFactory.buseCheck(GrpcClientFactory.java:267) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.createRpcClient(GrpcClientFactory.java:129) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:109) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:21) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:70) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:571) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:298) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:223) [commons-pool2-2.11.1.jar:2.11.1] at org.chainmaker.sdk.ChainClient.sendTxRequest(ChainClient.java:2778) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.sendRequest(ChainClient.java:3201) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.proposalRequest(ChainClient.java:3107) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.getLastBlock(ChainClient.java:897) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.sync.TxResultDispatcher.start(TxResultDispatcher.java:101) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainManager.createChainClient(ChainManager.java:195) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainManager.createChainClient(ChainManager.java:130) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at chainmaker.sdk.demo.InitClient.inItChainClient(InitClient.java:59) [classes/:na] at chainmaker.sdk.demo.DemoApplication.main(DemoApplication.java:14) [classes/:na] Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception at io.grpc.Status.asRuntimeException(Status.java:539) ~[grpc-api-1.53.0.jar:1.53.0] at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:544) ~[grpc-stub-1.53.0.jar:1.53.0] at io.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:489) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:453) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:486) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:576) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:70) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:757) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:736) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133) ~[grpc-core-1.53.0.jar:1.53.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_151] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_151] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_151] Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /127.0.0.1:12302 Caused by: java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_151] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_151] at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) ~[netty-common-4.1.68.Final.jar:4.1.68.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.68.Final.jar:4.1.68.Final] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.68.Final.jar:4.1.68.Final] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_151]
2024-05-06 17:56:52.285 WARN 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : ===============创建连接失败,把节点加入异常节点grpcs://127.0.0.1:12302 2024-05-06 17:56:54.334 WARN 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : check invoke getVersion error one
java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:588) ~[guava-31.1-android.jar:na] at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:463) ~[guava-31.1-android.jar:na] at org.chainmaker.sdk.GrpcClientFactory.buseCheck(GrpcClientFactory.java:267) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.createRpcClient(GrpcClientFactory.java:129) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:109) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:21) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:70) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:571) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:298) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:223) [commons-pool2-2.11.1.jar:2.11.1] at org.chainmaker.sdk.ChainClient.sendTxRequest(ChainClient.java:2778) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.sendRequest(ChainClient.java:3201) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.proposalRequest(ChainClient.java:3107) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.getLastBlock(ChainClient.java:897) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.sync.TxResultDispatcher.start(TxResultDispatcher.java:101) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainManager.createChainClient(ChainManager.java:195) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainManager.createChainClient(ChainManager.java:130) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at chainmaker.sdk.demo.InitClient.inItChainClient(InitClient.java:59) [classes/:na] at chainmaker.sdk.demo.DemoApplication.main(DemoApplication.java:14) [classes/:na] Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception at io.grpc.Status.asRuntimeException(Status.java:539) ~[grpc-api-1.53.0.jar:1.53.0] at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:544) ~[grpc-stub-1.53.0.jar:1.53.0] at io.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:489) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:453) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:486) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:576) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:70) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:757) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:736) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133) ~[grpc-core-1.53.0.jar:1.53.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_151] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_151] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_151] Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /127.0.0.1:12303 Caused by: java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_151] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_151] at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) ~[netty-common-4.1.68.Final.jar:4.1.68.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.68.Final.jar:4.1.68.Final] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.68.Final.jar:4.1.68.Final] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_151]
2024-05-06 17:56:54.334 WARN 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : ===============创建连接失败,把节点加入异常节点grpcs://127.0.0.1:12303 2024-05-06 17:56:56.384 WARN 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : check invoke getVersion error one
java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:588) ~[guava-31.1-android.jar:na] at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:463) ~[guava-31.1-android.jar:na] at org.chainmaker.sdk.GrpcClientFactory.buseCheck(GrpcClientFactory.java:267) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.createRpcClient(GrpcClientFactory.java:129) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:109) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:21) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:70) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:571) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:298) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:223) [commons-pool2-2.11.1.jar:2.11.1] at org.chainmaker.sdk.ChainClient.sendTxRequest(ChainClient.java:2778) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.sendRequest(ChainClient.java:3201) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.proposalRequest(ChainClient.java:3107) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.getLastBlock(ChainClient.java:897) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.sync.TxResultDispatcher.start(TxResultDispatcher.java:101) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainManager.createChainClient(ChainManager.java:195) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainManager.createChainClient(ChainManager.java:130) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at chainmaker.sdk.demo.InitClient.inItChainClient(InitClient.java:59) [classes/:na] at chainmaker.sdk.demo.DemoApplication.main(DemoApplication.java:14) [classes/:na] Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception at io.grpc.Status.asRuntimeException(Status.java:539) ~[grpc-api-1.53.0.jar:1.53.0] at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:544) ~[grpc-stub-1.53.0.jar:1.53.0] at io.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:489) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:453) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:486) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:576) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:70) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:757) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:736) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) ~[grpc-core-1.53.0.jar:1.53.0] at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133) ~[grpc-core-1.53.0.jar:1.53.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_151] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_151] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_151] Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /127.0.0.1:12304 Caused by: java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_151] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_151] at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) ~[netty-common-4.1.68.Final.jar:4.1.68.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.68.Final.jar:4.1.68.Final] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.68.Final.jar:4.1.68.Final] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_151]
2024-05-06 17:56:56.385 WARN 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : ===============创建连接失败,把节点加入异常节点grpcs://127.0.0.1:12304 2024-05-06 17:56:56.385 WARN 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : create chainClient error:no node can use 2024-05-06 17:56:56.385 WARN 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : ===============创建连接失败create chainClient error:no node can use,把节点加入异常节点grpcs://127.0.0.1:12304 2024-05-06 17:56:56.385 ERROR 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : create chainClient error:no node can use
java.lang.RuntimeException: create chainClient error:no node can use at org.chainmaker.sdk.GrpcClientFactory.createRpcClient(GrpcClientFactory.java:139) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:109) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:21) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:70) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:571) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:298) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:223) [commons-pool2-2.11.1.jar:2.11.1] at org.chainmaker.sdk.ChainClient.sendTxRequest(ChainClient.java:2778) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.sendRequest(ChainClient.java:3201) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.proposalRequest(ChainClient.java:3107) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.getLastBlock(ChainClient.java:897) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.sync.TxResultDispatcher.start(TxResultDispatcher.java:101) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainManager.createChainClient(ChainManager.java:195) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainManager.createChainClient(ChainManager.java:130) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at chainmaker.sdk.demo.InitClient.inItChainClient(InitClient.java:59) [classes/:na] at chainmaker.sdk.demo.DemoApplication.main(DemoApplication.java:14) [classes/:na]
2024-05-06 17:56:56.386 WARN 22244 --- [ main] o.c.sdk.sync.TxResultDispatcher : subscribe get last height java.lang.RuntimeException: create chainClient error:no node can use 2024-05-06 17:57:06.406 WARN 22244 --- [ main] org.chainmaker.sdk.GrpcClientFactory : check invoke getVersion error one
java.util.concurrent.TimeoutException: Waited 10000 milliseconds (plus 12 milliseconds, 264600 nanoseconds delay) for io.grpc.stub.ClientCalls$GrpcFuture@1573e8a5[status=PENDING, info=[GrpcFuture{clientCall=PendingCall{realCall=ClientCallImpl{method=MethodDescriptor{fullMethodName=api.RpcNode/GetChainMakerVersion, type=UNARY, idempotent=false, safe=false, sampledToLocalTracing=true, requestMarshaller=io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@485deee1, responseMarshaller=io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@25cde5bb, schemaDescriptor=org.chainmaker.pb.api.RpcNodeGrpc$RpcNodeMethodDescriptorSupplier@38a96593}}}}]] at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:527) ~[guava-31.1-android.jar:na] at org.chainmaker.sdk.GrpcClientFactory.buseCheck(GrpcClientFactory.java:267) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.createRpcClient(GrpcClientFactory.java:129) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:109) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.GrpcClientFactory.create(GrpcClientFactory.java:21) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:70) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:571) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:298) [commons-pool2-2.11.1.jar:2.11.1] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:223) [commons-pool2-2.11.1.jar:2.11.1] at org.chainmaker.sdk.ChainClient.sendTxRequest(ChainClient.java:2778) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.sendRequest(ChainClient.java:3201) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.proposalRequest(ChainClient.java:3107) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at org.chainmaker.sdk.ChainClient.getChainConfig(ChainClient.java:1103) [chainmaker-sdk-java-2.3.2.jar:2.3.2] at chainmaker.sdk.demo.ChainConfig.getChainConfig(ChainConfig.java:11) [classes/:na] at chainmaker.sdk.demo.DemoApplication.main(DemoApplication.java:16) [classes/:na]
【系统信息】(请填写系统信息,方便定位问题)
- chainmaker-go version * : [v2.1.0]
- OS & version * :
- docker镜像 version:
-
管理台 version:
- 如果是管理台的相关问题,请附带管理台版本,如果不是可忽略。
-
区块浏览器 version:
- 如果是浏览器的相关问题,请附带浏览器版本,如果不是可忽略。
-
合约IDE version:
- 如果是合约IDE的相关问题,请附带合约IDE版本,如果不是可忽略。
-
web签名插件 version:
- 如果是web签名插件的相关问题,请附带web签名插件版本,如果不是可忽略。