Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before this change the following exception was thrown when trying to launch the chaincode server with TLS enabled: java.lang.IllegalArgumentException: ALPN must be enabled and list HTTP/2 as a supported protocol. at com.google.common.base.Preconditions.checkArgument(Preconditions.java:142) at io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts.ensureAlpnAndH2Enabled(GrpcSslContexts.java:260) at io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder.sslContext(NettyServerBuilder.java:300) at org.hyperledger.fabric.shim.NettyGrpcServer.<init>(NettyGrpcServer.java:60) at org.hyperledger.fabric.shim.NettyChaincodeServer.<init>(NettyChaincodeServer.java:27) at org.hyperledger.fabric.shim.NettyGrpcServerTest.startAndStopTlsWithoutPassword(NettyGrpcServerTest.java:321) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Signed-off-by: Fedor Tokarev <[email protected]>
- Loading branch information