使用java sdk
使用java sdk初始化client,会报错: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] 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:62) [classes/:na] at chainmaker.sdk.demo.DemoApplication.main(DemoApplication.java:16) [classes/:na] Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] 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_381] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_381] at java.lang.Thread.run(Thread.java:750) ~[na:1.8.0_381] Caused by: javax.net.ssl.SSLHandshakeException: General OpenSslEngine problem at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.handshakeException(ReferenceCountedOpenSslEngine.java:1772) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.wrap(ReferenceCountedOpenSslEngine.java:777) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:511) ~[na:1.8.0_381] at io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:1086) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.wrapNonAppData(SslHandler.java:977) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1450) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1282) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1329) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:507) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:446) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719) ~[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] ... 1 common frames omitted Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at sun.security.validator.PKIXValidator.(PKIXValidator.java:102) ~[na:1.8.0_381] at sun.security.validator.Validator.getInstance(Validator.java:181) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:299) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:175) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:245) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:140) ~[na:1.8.0_381] at io.netty.handler.ssl.ReferenceCountedOpenSslClientContext$ExtendedTrustManagerVerifyCallback.verify(ReferenceCountedOpenSslClientContext.java:261) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslContext$AbstractCertificateVerifier.verify(ReferenceCountedOpenSslContext.java:698) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.internal.tcnative.SSL.readFromSSL(Native Method) ~[netty-tcnative-openssl-static-2.0.39.Final.jar:na] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.readPlaintextData(ReferenceCountedOpenSslEngine.java:596) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1203) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1325) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1368) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler$SslEngineType$1.unwrap(SslHandler.java:206) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1387) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] ... 21 common frames omitted Suppressed: javax.net.ssl.SSLHandshakeException: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.sslReadErrorResult(ReferenceCountedOpenSslEngine.java:1288) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1249) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] ... 25 common frames omitted Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200) ~[na:1.8.0_381] at java.security.cert.PKIXParameters.(PKIXParameters.java:120) ~[na:1.8.0_381] at java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:104) ~[na:1.8.0_381] at sun.security.validator.PKIXValidator.(PKIXValidator.java:99) ~[na:1.8.0_381] ... 35 common frames omitted
2024-04-23 10:51:37.107 WARN 26900 --- [ main] org.chainmaker.sdk.GrpcClientFactory : ===============创建连接失败,把节点加入异常节点grpcs://172.16.60.15:12301 2024-04-23 10:51:37.120 WARN 26900 --- [ main] org.chainmaker.sdk.GrpcClientFactory : check invoke getVersion error one
java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] 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:62) [classes/:na] at chainmaker.sdk.demo.DemoApplication.main(DemoApplication.java:16) [classes/:na] Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] 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_381] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_381] at java.lang.Thread.run(Thread.java:750) ~[na:1.8.0_381] Caused by: javax.net.ssl.SSLHandshakeException: General OpenSslEngine problem at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.handshakeException(ReferenceCountedOpenSslEngine.java:1772) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.wrap(ReferenceCountedOpenSslEngine.java:777) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:511) ~[na:1.8.0_381] at io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:1086) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.wrapNonAppData(SslHandler.java:977) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1450) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1282) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1329) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:507) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:446) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719) ~[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] ... 1 common frames omitted Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at sun.security.validator.PKIXValidator.(PKIXValidator.java:102) ~[na:1.8.0_381] at sun.security.validator.Validator.getInstance(Validator.java:181) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:299) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:175) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:245) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:140) ~[na:1.8.0_381] at io.netty.handler.ssl.ReferenceCountedOpenSslClientContext$ExtendedTrustManagerVerifyCallback.verify(ReferenceCountedOpenSslClientContext.java:261) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslContext$AbstractCertificateVerifier.verify(ReferenceCountedOpenSslContext.java:698) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.internal.tcnative.SSL.readFromSSL(Native Method) ~[netty-tcnative-openssl-static-2.0.39.Final.jar:na] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.readPlaintextData(ReferenceCountedOpenSslEngine.java:596) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1203) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1325) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1368) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler$SslEngineType$1.unwrap(SslHandler.java:206) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1387) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] ... 21 common frames omitted Suppressed: javax.net.ssl.SSLHandshakeException: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.sslReadErrorResult(ReferenceCountedOpenSslEngine.java:1288) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1249) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] ... 25 common frames omitted Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200) ~[na:1.8.0_381] at java.security.cert.PKIXParameters.(PKIXParameters.java:120) ~[na:1.8.0_381] at java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:104) ~[na:1.8.0_381] at sun.security.validator.PKIXValidator.(PKIXValidator.java:99) ~[na:1.8.0_381] ... 35 common frames omitted
2024-04-23 10:51:37.120 WARN 26900 --- [ main] org.chainmaker.sdk.GrpcClientFactory : ===============创建连接失败,把节点加入异常节点grpcs://172.16.60.15:12302 2024-04-23 10:51:37.169 INFO 26900 --- [ main] org.chainmaker.sdk.GrpcClientFactory : create a new grpc client:org.chainmaker.sdk.RpcServiceClient@17d76ebb.... 2024-04-23 10:51:37.228 INFO 26900 --- [ main] o.c.sdk.sync.TxResultDispatcher : subscribe get last height 11 2024-04-23 10:51:37.241 WARN 26900 --- [ main] org.chainmaker.sdk.GrpcClientFactory : check invoke getVersion error one
java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] 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.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:18) [classes/:na] Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] 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_381] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_381] at java.lang.Thread.run(Thread.java:750) ~[na:1.8.0_381] Caused by: javax.net.ssl.SSLHandshakeException: General OpenSslEngine problem at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.handshakeException(ReferenceCountedOpenSslEngine.java:1772) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.wrap(ReferenceCountedOpenSslEngine.java:777) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:511) ~[na:1.8.0_381] at io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:1086) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.wrapNonAppData(SslHandler.java:977) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1450) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1282) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1329) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:507) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:446) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719) ~[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] ... 1 common frames omitted Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at sun.security.validator.PKIXValidator.(PKIXValidator.java:102) ~[na:1.8.0_381] at sun.security.validator.Validator.getInstance(Validator.java:181) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:299) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:175) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:245) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:140) ~[na:1.8.0_381] at io.netty.handler.ssl.ReferenceCountedOpenSslClientContext$ExtendedTrustManagerVerifyCallback.verify(ReferenceCountedOpenSslClientContext.java:261) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslContext$AbstractCertificateVerifier.verify(ReferenceCountedOpenSslContext.java:698) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.internal.tcnative.SSL.readFromSSL(Native Method) ~[netty-tcnative-openssl-static-2.0.39.Final.jar:na] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.readPlaintextData(ReferenceCountedOpenSslEngine.java:596) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1203) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1325) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1368) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler$SslEngineType$1.unwrap(SslHandler.java:206) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1387) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] ... 21 common frames omitted Suppressed: javax.net.ssl.SSLHandshakeException: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.sslReadErrorResult(ReferenceCountedOpenSslEngine.java:1288) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1249) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] ... 25 common frames omitted Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200) ~[na:1.8.0_381] at java.security.cert.PKIXParameters.(PKIXParameters.java:120) ~[na:1.8.0_381] at java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:104) ~[na:1.8.0_381] at sun.security.validator.PKIXValidator.(PKIXValidator.java:99) ~[na:1.8.0_381] ... 35 common frames omitted
2024-04-23 10:51:37.241 WARN 26900 --- [ main] org.chainmaker.sdk.GrpcClientFactory : ===============创建连接失败,把节点加入异常节点grpcs://172.16.60.15:12301 2024-04-23 10:51:37.250 WARN 26900 --- [ main] org.chainmaker.sdk.GrpcClientFactory : check invoke getVersion error one
java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] 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.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:18) [classes/:na] Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] 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_381] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_381] at java.lang.Thread.run(Thread.java:750) ~[na:1.8.0_381] Caused by: javax.net.ssl.SSLHandshakeException: General OpenSslEngine problem at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.handshakeException(ReferenceCountedOpenSslEngine.java:1772) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.wrap(ReferenceCountedOpenSslEngine.java:777) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:511) ~[na:1.8.0_381] at io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:1086) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.wrapNonAppData(SslHandler.java:977) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1450) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1282) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1329) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:507) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:446) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719) ~[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] ... 1 common frames omitted Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at sun.security.validator.PKIXValidator.(PKIXValidator.java:102) ~[na:1.8.0_381] at sun.security.validator.Validator.getInstance(Validator.java:181) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:299) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:175) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:245) ~[na:1.8.0_381] at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:140) ~[na:1.8.0_381] at io.netty.handler.ssl.ReferenceCountedOpenSslClientContext$ExtendedTrustManagerVerifyCallback.verify(ReferenceCountedOpenSslClientContext.java:261) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslContext$AbstractCertificateVerifier.verify(ReferenceCountedOpenSslContext.java:698) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.internal.tcnative.SSL.readFromSSL(Native Method) ~[netty-tcnative-openssl-static-2.0.39.Final.jar:na] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.readPlaintextData(ReferenceCountedOpenSslEngine.java:596) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1203) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1325) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1368) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler$SslEngineType$1.unwrap(SslHandler.java:206) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1387) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] ... 21 common frames omitted Suppressed: javax.net.ssl.SSLHandshakeException: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.sslReadErrorResult(ReferenceCountedOpenSslEngine.java:1288) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1249) ~[netty-handler-4.1.53.Final.jar:4.1.53.Final] ... 25 common frames omitted Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200) ~[na:1.8.0_381] at java.security.cert.PKIXParameters.(PKIXParameters.java:120) ~[na:1.8.0_381] at java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:104) ~[na:1.8.0_381] at sun.security.validator.PKIXValidator.(PKIXValidator.java:99) ~[na:1.8.0_381] ... 35 common frames omitted
2024-04-23 10:51:37.250 WARN 26900 --- [ main] org.chainmaker.sdk.GrpcClientFactory : ===============创建连接失败,把节点加入异常节点grpcs://172.16.60.15:12302 2024-04-23 10:51:37.265 INFO 26900 --- [ main] org.chainmaker.sdk.GrpcClientFactory : create a new grpc client:org.chainmaker.sdk.RpcServiceClient@2d07aacc....
但即使报错,也会输出链配置信息 chain_id: "chain422" version: "v3.0.0" auth_type: "permissionedWithCert" crypto { hash: "SHA256" } ......
这是什么原因