报错:
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;)V
The 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.class
The 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.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of com.google.common.base.Preconditions
Disconnected 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报错服务端启动