LinkAgent icon indicating copy to clipboard operation
LinkAgent copied to clipboard

会与skywalking冲突

Open chenquanzhen opened this issue 3 years ago • 2 comments

Caused by: java.lang.NoClassDefFoundError: Lorg/apache/skywalking/apm/agent/core/plugin/interceptor/enhance/InstMethodsInter; at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2583) at java.lang.Class.getDeclaredField(Class.java:2068) at org.apache.skywalking.apm.dependencies.net.bytebuddy.implementation.LoadedTypeInitializer$ForStaticField.onLoad(LoadedTypeInitializer.java:122) at org.apache.skywalking.apm.dependencies.net.bytebuddy.implementation.LoadedTypeInitializer$Compound.onLoad(LoadedTypeInitializer.java:192) at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$InitializationStrategy$SelfInjection$Dispatcher$InjectingInitializer.onLoad(AgentBuilder.java:3098) ... 31 more

chenquanzhen avatar Aug 09 '21 08:08 chenquanzhen

I'm not sure due to incomplete error log, but is seems caused by costomer class loader.

dao-jun avatar Aug 27 '21 08:08 dao-jun

可以在启动参数上加下面这两参数

-Dskywalking.agent.is_cache_enhanced_class=true -Dskywalking.agent.class_cache_mode=MEMORY

是skywalking带的配置参数 ,可以参考下https://github.com/apache/skywalking/blob/master/docs/en/FAQ/Compatible-with-other-javaagent-bytecode-processing.md

ocean-wll avatar Nov 08 '21 07:11 ocean-wll