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

spring-cloud-alibaba-dependencies版本2021.0.5.0中spring-boot-starter-web和spring-cloud-starter-alibaba-nacos-discovery版本冲突 #3885

Open
emcchui opened this issue Nov 12, 2024 · 0 comments

Comments

@emcchui
Copy link

emcchui commented Nov 12, 2024

spring-cloud-alibaba-dependencies 的版本为2021.0.5.0
spring-boot-starter-web和spring-cloud-starter-alibaba-nacos-discovery都是默认的,启动就会报错:

2024-11-12 17:41:57.309 DEBUG 14024 --- [ main] c.a.nacos.shaded.io.perfmark.PerfMark : Error during PerfMark.

java.lang.ClassNotFoundException: com.alibaba.nacos.shaded.io.perfmark.impl.SecretPerfMarkImpl$PerfMarkImpl
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_202]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_202]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_202]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_202]
at java.lang.Class.forName0(Native Method) ~[na:1.8.0_202]
at java.lang.Class.forName(Class.java:264) ~[na:1.8.0_202]
at com.alibaba.nacos.shaded.io.perfmark.PerfMark.(PerfMark.java:36) ~[nacos-client-2.2.0.jar:na]
at com.alibaba.nacos.shaded.io.grpc.internal.ClientCallImpl.(ClientCallImpl.java:109) [nacos-client-2.2.0.jar:na]

排除默认的nacos-client2.2.0,引入2.2.1就可以解决。

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