grpc io.grpc.netty.shaded.io.grpc.netty.NettyChannelProvider: does not support 1 or more of Domai...

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 打包运行报错

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

友情链接更多精彩内容