3 您好,我昨天的问题已经解决,是因为在使用grpcs时,需要在Properties里指定sslProvider=openSSL和negotiationType=SSL,但是现在报下面的错,麻烦可以解答一下吗

Exception in thread "main" org.hyperledger.fabric.sdk.exception.TransactionException: UNAVAILABLE: Channel closed while performing protocol negotiation

at org.hyperledger.fabric.sdk.OrdererClient.sendDeliver(OrdererClient.java:286)

at org.hyperledger.fabric.sdk.Orderer.sendDeliver(Orderer.java:165)

at org.hyperledger.fabric.sdk.Channel.getLatestBlock(Channel.java:1074)

at org.hyperledger.fabric.sdk.Channel.getConfigurationBlock(Channel.java:898)

at org.hyperledger.fabric.sdk.Channel.parseConfigBlock(Channel.java:826)

at org.hyperledger.fabric.sdk.Channel.initialize(Channel.java:526)

at com.pact.hypledger.FabricTest.main(FabricTest.java:39)

Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: Channel closed while performing protocol negotiation

at io.grpc.Status.asRuntimeException(Status.java:540)

at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:392)

at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:426)

at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:76)

at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:512)

at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$700(ClientCallImpl.java:429)

at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:544)

at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:52)

at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:117)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:748)



attachments-2018-06-syeC1wTy5b206d9df2704.pngattachments-2018-06-JtBt98fe5b206da87e2a1.png

请先 登录 后评论

1 个回答

冯翔 - 高级系统架构师

你服务器端的peer和orderer是否打开了TLS

请先 登录 后评论
  • 1 关注
  • 0 收藏,319 浏览
  • 韦冬冬 提出于 2018-06-13 09:05

相似问题