You may check lib path, there should be some Spring debugging tool libs included. You need to remove them.
Sheng Wu 吴晟 Apache SkyWalking Twitter, wusheng1108 Forrest Wang <forrest.wang@woo.network.invalid>于2024年7月9日 周二06:32写道: > Hi Community: > I am using Skywalking java agent 9.2.0. > My service is based on Java 17 + Spring 2.7.18. > When the service started, the following error occurred: > 2024-07-09 21:20:36.000 [ERROR] [G7QDVPHQND---Forrest's-MacBook-Pro] > [44717] [ main] [] [] [o.springframework.boot.SpringApplication] > : Application run failed > • java.lang.ClassFormatError: Duplicate field name > "cachedValue$$sw$c4hljc2$n9auk41" with signature > "Ljava.lang.reflect.Method;" in class file > org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor > • at java.base/java.lang.ClassLoader.defineClass1(Native Method) > • at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012) > • at > java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) > • at > java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862) > • at > java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760) > • at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681) > • at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639) > • at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) > • at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) > • at > org.springframework.context.annotation.AnnotationConfigUtils.registerAnnotationConfigProcessors(AnnotationConfigUtils.java:170) > • at > org.springframework.context.annotation.AnnotationConfigUtils.registerAnnotationConfigProcessors(AnnotationConfigUtils.java:137) > • at > org.springframework.context.annotation.AnnotatedBeanDefinitionReader.<init>(AnnotatedBeanDefinitionReader.java:88) > • at > org.springframework.context.annotation.AnnotatedBeanDefinitionReader.<init>(AnnotatedBeanDefinitionReader.java:71) > • at > org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:69) > • at > org.springframework.boot.DefaultApplicationContextFactory.getFromSpringFactories(DefaultApplicationContextFactory.java:66) > • at > org.springframework.boot.DefaultApplicationContextFactory.create(DefaultApplicationContextFactory.java:48) > • at > org.springframework.boot.SpringApplication.createApplicationContext(SpringApplication.java:567) > • at > org.springframework.boot.SpringApplication.run(SpringApplication.java:305) > • at > org.springframework.boot.SpringApplication.run(SpringApplication.java:1300) > • at > org.springframework.boot.SpringApplication.run(SpringApplication.java:1289) > • at > com.woo.gateway.WooGatewayRestApplication.main(WooGatewayRestApplication.java:24)’ > > > Attached is the debugging classes created by skywalking agent. > > > > Can you help me with this? > b.r.