Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最新版本的springboot+dubbo使用cse作为容器服务启动异常 #148

Open
ms20hj opened this issue Aug 29, 2022 · 3 comments
Open

Comments

@ms20hj
Copy link

ms20hj commented Aug 29, 2022

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参数配置如下图所示:
image

启动异常信息:
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最高到什么版本?还是说我的参数配置哪里有问题?

@ms20hj ms20hj changed the title provider启动成功,但是服务都没有成功注册 最新版本的springboot+dubbo使用cse作为容器服务启动异常 Aug 29, 2022
@ms20hj
Copy link
Author

ms20hj commented Aug 29, 2022

我发现Dubbo3.0移除了ConfigUtils.getProperty()方法
dubbo-servicecomb内部的ConfigurationSpringInitializer引用的却是ConfigUtils.getProperty(),导致方法找不到

@liubao68
Copy link
Collaborator

这个项目目前只支持dubbo 2.7.x和2.6.x, 3.x还不支持。

@ms20hj
Copy link
Author

ms20hj commented Aug 29, 2022

@liubao68 有计划安排什么时候对3.x进行支持?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants