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

When the gateway relies on springcloud Alibaba 2.2.6, the startup fails. #137

Closed
cstongwei opened this issue May 21, 2022 · 0 comments
Closed

Comments

@cstongwei
Copy link
Contributor

,An attempt was made to call a method that does not exist. The attempt was made from the following location:

com.tencent.tsf.femas.springcloud.gateway.config.FemasDiscoveryAutoConfiguration$FemasNacosConfiguration.nacosServiceDiscovery(FemasDiscoveryAutoConfiguration.java:60)

The following method did not exist:

com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery.<init>(Lcom/alibaba/cloud/nacos/NacosDiscoveryProperties;)V

The method's class, com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery, is available from the following locations:

jar:file:/D:/gradle_cache/caches/modules-2/files-2.1/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-discovery/2.2.6.RELEASE/b5ff1915683ade1a5ab430537d2bb6e5bd2bc586/spring-cloud-starter-alibaba-nacos-discovery-2.2.6.RELEASE.jar!/com/alibaba/cloud/nacos/discovery/NacosServiceDiscovery.class

The class hierarchy was loaded from the following locations:

com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery: file:/D:/gradle_cache/caches/modules-2/files-2.1/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-discovery/2.2.6.RELEASE/b5ff1915683ade1a5ab430537d2bb6e5bd2bc586/spring-cloud-starter-alibaba-nacos-discovery-2.2.6.RELEASE.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery

cstongwei added a commit to cstongwei/femas that referenced this issue May 21, 2022
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

1 participant