美文网首页
grpc io.grpc.netty.shaded.io.grp

grpc io.grpc.netty.shaded.io.grp

作者: Cruise | 来源:发表于2023-04-02 16:11 被阅读0次

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

相关文章

网友评论

      本文标题:grpc io.grpc.netty.shaded.io.grp

      本文链接:https://www.haomeiwen.com/subject/gosrddtx.html