grpc 客户端给server发消息,idea直接运行没问题,但是打包后用java -jar运行就报错:
Exception in thread "main" io.grpc.ManagedChannelRegistry$ProviderNotFoundException: io.grpc.netty.shaded.io.grpc.netty.NettyChannelProvider: does not support 1 or more of [class io.grpc.netty.shaded.io.netty.channel.unix.DomainSocketAddress]
at io.grpc.ManagedChannelRegistry.newChannelBuilder(ManagedChannelRegistry.java:206)
at io.grpc.ManagedChannelRegistry.newChannelBuilder(ManagedChannelRegistry.java:157)
at io.grpc.Grpc.newChannelBuilder(Grpc.java:101)
at org.hx.RpcTest.getChannel(RpcTest.java:44)
at org.hx.RpcTest.main(RpcTest.java:26)
解决方案 参考 grpc 打包运行报错
网友评论