LinkAgent icon indicating copy to clipboard operation
LinkAgent copied to clipboard

与 skywalking 对同一个类加强 java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the schema (add/remove fields)

Open zhaoyun006 opened this issue 3 years ago • 5 comments

java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the schema (add/remove fields)

(DefaultModuleEventWatcher.java:163)

2021-09-08 08:44:27 [pamirs] WARN SIMULATOR: watch=1195 in module=redis-jedis single reTransform class redis.clients.jedis.Jedis failed, at index=0;total=1. 2021-09-08 08:44:28 [pamirs] WARN SIMULATOR: watch=1198 in module=redis-jedis single reTransform class redis.clients.jedis.PipelineBase failed, at index=0;total=1. 2021-09-08 08:44:28 [pamirs] WARN SIMULATOR: watch=1199 in module=redis-jedis single reTransform class redis.clients.jedis.Jedis failed, at index=0;total=1. 2021-09-08 08:44:29 [pamirs] WARN SIMULATOR: watch=1202 in module=redis-jedis single reTransform class redis.clients.jedis.PipelineBase failed, at index=0;total=1. 2021-09-08 08:44:31 [pamirs] WARN SIMULATOR: watch=1179 in module=okhttp single reTransform class okhttp3.RealCall failed, at index=0;total=1. 2021-09-08 08:44:31 [pamirs] WARN SIMULATOR: watch=1180 in module=okhttp single reTransform class okhttp3.RealCall$AsyncCall failed, at index=0;total=1. 2021-09-08 08:44:34 [pamirs] WARN SIMULATOR: watch=1130 in module=redis-lettuce single reTransform class io.lettuce.core.RedisClient failed, at index=0;total=1. 2021-09-08 08:44:34 [pamirs] WARN SIMULATOR: watch=1131 in module=redis-lettuce single reTransform class io.lettuce.core.AbstractRedisClient failed, at index=0;total=1.

zhaoyun006 avatar Sep 08 '21 01:09 zhaoyun006

@shulieTech

zhaoyun006 avatar Sep 08 '21 01:09 zhaoyun006

I meet the same problem

darcydai avatar Sep 08 '21 09:09 darcydai

skywalking will add two fields in origin class

darcydai avatar Sep 08 '21 09:09 darcydai

skywalking will add two fields in origin class

at least two field

darcydai avatar Sep 08 '21 09:09 darcydai

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

-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 Feb 18 '22 09:02 ocean-wll