dubbo-servicecomb
dubbo-servicecomb copied to clipboard
最新版本的springboot+dubbo使用cse作为容器服务启动异常
springboot:2.7.2 dubbo:3.0.11 关于servicecomb:2.0.0-2.7.x、2.0.0-2.6.x、1.3.7这几个版本都试过了,皆不可用。
关于CSE参数配置如下图所示:
启动异常信息: 2022-08-29 10:10:06.567 ERROR 1908 --- [ main] o.s.b.d.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:
com.huaweicloud.dubbo.config.ConfigurationSpringInitializer.initConfigConverter(ConfigurationSpringInitializer.java:125)
The following method did not exist:
org.apache.dubbo.common.utils.ConfigUtils.getProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
The calling method's class, com.huaweicloud.dubbo.config.ConfigurationSpringInitializer, was loaded from the following location:
jar:file:/D:/apache-maven-3.6.ali/localRepository/com/huaweicloud/dubbo-servicecomb/dubbo-servicecomb-config-center/2.0.0-2.7.x/dubbo-servicecomb-config-center-2.0.0-2.7.x.jar!/com/huaweicloud/dubbo/config/ConfigurationSpringInitializer.class
The called method's class, org.apache.dubbo.common.utils.ConfigUtils, is available from the following locations:
jar:file:/D:/apache-maven-3.6.ali/localRepository/org/apache/dubbo/dubbo/3.0.11/dubbo-3.0.11.jar!/org/apache/dubbo/common/utils/ConfigUtils.class
jar:file:/D:/apache-maven-3.6.ali/localRepository/org/apache/dubbo/dubbo-common/3.0.10/dubbo-common-3.0.10.jar!/org/apache/dubbo/common/utils/ConfigUtils.class
The called method's class hierarchy was loaded from the following locations:
org.apache.dubbo.common.utils.ConfigUtils: file:/D:/apache-maven-3.6.ali/localRepository/org/apache/dubbo/dubbo/3.0.11/dubbo-3.0.11.jar
Action:
Correct the classpath of your application so that it contains compatible versions of the classes com.huaweicloud.dubbo.config.ConfigurationSpringInitializer and org.apache.dubbo.common.utils.ConfigUtils
Disconnected from the target VM, address: '127.0.0.1:2413', transport: 'socket'
Process finished with exit code 1
想确认一下servicecomb支持的springboot和dubbo最高到什么版本?还是说我的参数配置哪里有问题?
我发现Dubbo3.0移除了ConfigUtils.getProperty()方法 dubbo-servicecomb内部的ConfigurationSpringInitializer引用的却是ConfigUtils.getProperty(),导致方法找不到
这个项目目前只支持dubbo 2.7.x和2.6.x, 3.x还不支持。
@liubao68 有计划安排什么时候对3.x进行支持?