com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;CLjava/lang/Object;)V 报错问题

报错:


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-08-02 15:57:41 |ERROR |main |LoggingFailureAnalysisReporter.java:40 |org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter |***************************
APPLICATION FAILED TO START
***************************Description:An attempt was made to call a method that does not exist. The attempt was made from the following location:io.grpc.Metadata$Key.validateName(Metadata.java:754)The following method did not exist:com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;CLjava/lang/Object;)VThe method's class, com.google.common.base.Preconditions, is available from the following locations:jar:file:/Users/nutvideo/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar!/com/google/common/base/Preconditions.classThe class hierarchy was loaded from the following locations:com.google.common.base.Preconditions: file:/Users/nutvideo/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jarAction:Correct the classpath of your application so that it contains a single, compatible version of com.google.common.base.PreconditionsDisconnected from the target VM, address: '127.0.0.1:51403', transport: 'socket'

提示【Description】:
试图调用不存在的方法
1.说以下方法不存在:

com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;CLjava/lang/Object;)V

2.该方法的类com.google.common.base。前提条件,可从以下位置获得

jar:file:/Users/nutvideo/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar!/com/google/common/base/Preconditions.class

3.类层次结构是从这个位置加载的:

com.google.common.base.Preconditions: file:/Users/nutvideo/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar

解决:
GRPC-Server报错服务端启动com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;CLjava异常解决方案
GRPC-Server报错服务端启动


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部