vivo / MoonBox

月光宝盒:无侵入的流量录制与回放平台 A server-side traffic capture and replay platform with noninvasive
Apache License 2.0
1.21k stars 196 forks source link

APACHE_HTTP_CLIENT的插件加载失败 #69

Open mxian opened 10 months ago

mxian commented 10 months ago

module在加载的时候,会报下面的错,有没有人遇到过

10:31:40.164 [moonbox-thread-pool-1] INFO com.vivo.jvm.sandbox.moonbox.module.MoonboxModule - start to initialize repeater plugin type:APACHE_HTTP_CLIENT,taskRunId:rc_id_11598b6960082f0433533c471a8b98e7 10:31:40.164 [moonbox-thread-pool-1] INFO com.vivo.jvm.sandbox.moonbox.module.MoonboxModule - enable plugin apache-http-client success 10:31:40.320 [moonbox-thread-pool-1] INFO com.alibaba.jvm.sandbox.core.manager.impl.DefaultModuleEventWatcher - watch=1009 in module=moonbox found 1 classes for watch(ing). 10:31:40.378 [moonbox-thread-pool-1] INFO com.alibaba.jvm.sandbox.core.enhance.weaver.asm.EventWeaver - rewrite method org.apache.http.impl.client.InternalHttpClient#doExecute(org.apache.http.HttpHost,org.apache.http.HttpRequest,org.apache.http.protocol.HttpContext) for listener[id=1010];event=BEFORE,RETURN,THROWS; 10:31:40.379 [moonbox-thread-pool-1] INFO com.alibaba.jvm.sandbox.core.manager.impl.SandboxClassFileTransformer - transform org/apache/http/impl/client/InternalHttpClient finished, by module=moonbox in loader=org.springframework.boot.loader.LaunchedURLClassLoader@5345dfe8 10:31:40.384 [moonbox-thread-pool-1] WARN com.alibaba.jvm.sandbox.core.manager.impl.DefaultModuleEventWatcher - watch=1009 in module=moonbox single reTransform class org.apache.http.impl.client.InternalHttpClient failed, at index=0;total=1. ignore this class. java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the schema (add/remove fields) at sun.instrument.InstrumentationImpl.retransformClasses0(Native Method) at sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:144) at com.alibaba.jvm.sandbox.core.manager.impl.DefaultModuleEventWatcher.reTransformClasses(DefaultModuleEventWatcher.java:120) at com.alibaba.jvm.sandbox.core.manager.impl.DefaultModuleEventWatcher.watch(DefaultModuleEventWatcher.java:212) at com.alibaba.jvm.sandbox.core.manager.impl.DefaultModuleEventWatcher.watch(DefaultModuleEventWatcher.java:167) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.alibaba.jvm.sandbox.core.util.SandboxProtector$2.invoke(SandboxProtector.java:91) at com.sun.proxy.$Proxy41.watch(Unknown Source) at com.alibaba.jvm.sandbox.api.listener.ext.EventWatchBuilder.build(EventWatchBuilder.java:788) at com.alibaba.jvm.sandbox.api.listener.ext.EventWatchBuilder.access$400(EventWatchBuilder.java:35) at com.alibaba.jvm.sandbox.api.listener.ext.EventWatchBuilder$BuildingForBehavior.onWatch(EventWatchBuilder.java:662) at com.alibaba.jvm.sandbox.repeater.plugin.core.impl.spi.AbstractInvokePluginAdapter.watchIfNecessary(AbstractInvokePluginAdapter.java:130) at com.alibaba.jvm.sandbox.repeater.plugin.core.impl.spi.AbstractInvokePluginAdapter.watch(AbstractInvokePluginAdapter.java:65) at com.vivo.jvm.sandbox.moonbox.module.MoonboxModule.initialize(MoonboxModule.java:274) at com.vivo.jvm.sandbox.moonbox.module.MoonboxModule.lambda$loadCompleted$0(MoonboxModule.java:212) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 10:31:40.384 [moonbox-thread-pool-1] INFO com.alibaba.jvm.sandbox.core.enhance.weaver.EventListenerHandler - activated listener[id=1010;target=DefaultEventListener:invokeType=APACHE_HTTP_CLIENT;entrance=false;] event=BEFORE,RETURN,THROWS 10:31:40.384 [moonbox-thread-pool-1] INFO com.alibaba.jvm.sandbox.repeater.plugin.core.impl.spi.AbstractInvokePluginAdapter - add watcher success,type=APACHE_HTTP_CLIENT,watcherId=1009 10:31:40.384 [moonbox-thread-pool-1] INFO com.vivo.jvm.sandbox.moonbox.module.MoonboxModule - end to initialize repeater plugin type:APACHE_HTTP_CLIENT,taskRunId:rc_id_11598b6960082f0433533c471a8b98e7, cost:220