houxinlin / cool-request

IDEA API、Java Method debug tools
https://www.coolrequest.dev
GNU General Public License v2.0
281 stars 59 forks source link

似乎是不能与Jreabel同时运行? #123

Open maclanelf opened 16 hours ago

maclanelf commented 16 hours ago

下面是我的报错,请问有人遇到过同样的问题吗,开启trace就会出现,并且无法统计耗时

2024-11-19 11:04:04 JRebel: ERROR Class 'com.cool.request.agent.lib.net.bytebuddy.dynamic.scaffold.subclass.SubclassDynamicTypeBuilder' could not be processed by org.zeroturnaround.javarebel.integration.proxy.bytebuddy.DynamicTypeBuilderCBP@null: org.zeroturnaround.bundled.javassist.NotFoundException: make(..) is not found in com.cool.request.agent.lib.net.bytebuddy.dynamic.scaffold.subclass.SubclassDynamicTypeBuilder
    at org.zeroturnaround.bundled.javassist.CtClassType.getDeclaredMethod(SourceFile:1356)
    at org.zeroturnaround.javarebel.integration.proxy.bytebuddy.DynamicTypeBuilderCBP.process(SourceFile:76)
    at org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor.process(SourceFile:145)
    at org.zeroturnaround.javarebel.integration.support.CacheAwareJavassistClassBytecodeProcessor.process(SourceFile:34)
    at org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor.process(SourceFile:82)
    at org.zeroturnaround.javarebel.ClassBytecodeProcessor.process(SourceFile:51)
    at com.zeroturnaround.javarebel.yc.a(SourceFile:400)
    at com.zeroturnaround.javarebel.yc.a(SourceFile:340)
    at com.zeroturnaround.javarebel.SDKIntegrationImpl.runBytecodeProcessors(SourceFile:423)
    at com.zeroturnaround.javarebel.vg.transform(SourceFile:154)
    at com.zeroturnaround.javarebel.vg.transform(SourceFile:94)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:43009)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    at com.cool.request.agent.lib.net.bytebuddy.ByteBuddy.subclass(ByteBuddy.java:518)
    at com.cool.request.agent.lib.net.bytebuddy.ByteBuddy.subclass(ByteBuddy.java:483)
    at com.cool.request.agent.lib.net.bytebuddy.ByteBuddy.subclass(ByteBuddy.java:380)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$Factory$CreationAction.run(AgentBuilder.java:12565)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$Factory$CreationAction.run(AgentBuilder.java:12550)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default.doPrivileged(AgentBuilder.java)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default.access$500(AgentBuilder.java:10189)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.<clinit>(AgentBuilder.java:12099)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default.makeRaw(AgentBuilder.java:11317)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default.doInstall(AgentBuilder.java:11441)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default.installOn(AgentBuilder.java:11362)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$Delegator.installOn(AgentBuilder.java:13154)
    at com.cool.request.rmi.agent.CoolRequestAgentRMIImpl.applyByteBuddy(CoolRequestAgentRMIImpl.java:190)
    at com.cool.request.rmi.agent.CoolRequestAgentRMIImpl.doAddMethodHook(CoolRequestAgentRMIImpl.java:278)
    at com.cool.request.rmi.agent.CoolRequestAgentRMIImpl.addMethodHook(CoolRequestAgentRMIImpl.java:333)
    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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
    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:750)

2024-11-19 11:04:08 JRebel: ERROR Class 'com.cool.request.agent.lib.net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder' could not be processed by org.zeroturnaround.javarebel.integration.proxy.bytebuddy.DynamicTypeBuilderCBP@null: org.zeroturnaround.bundled.javassist.NotFoundException: make(..) is not found in com.cool.request.agent.lib.net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder
    at org.zeroturnaround.bundled.javassist.CtClassType.getDeclaredMethod(SourceFile:1356)
    at org.zeroturnaround.javarebel.integration.proxy.bytebuddy.DynamicTypeBuilderCBP.process(SourceFile:76)
    at org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor.process(SourceFile:145)
    at org.zeroturnaround.javarebel.integration.support.CacheAwareJavassistClassBytecodeProcessor.process(SourceFile:34)
    at org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor.process(SourceFile:82)
    at org.zeroturnaround.javarebel.ClassBytecodeProcessor.process(SourceFile:51)
    at com.zeroturnaround.javarebel.yc.a(SourceFile:400)
    at com.zeroturnaround.javarebel.yc.a(SourceFile:340)
    at com.zeroturnaround.javarebel.SDKIntegrationImpl.runBytecodeProcessors(SourceFile:423)
    at com.zeroturnaround.javarebel.vg.transform(SourceFile:154)
    at com.zeroturnaround.javarebel.vg.transform(SourceFile:94)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:43009)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    at com.cool.request.agent.lib.net.bytebuddy.ByteBuddy.redefine(ByteBuddy.java:886)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$TypeStrategy$Default$3.builder(AgentBuilder.java:2768)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.doTransform(AgentBuilder.java:12439)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.transform(AgentBuilder.java:12385)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.access$1800(AgentBuilder.java:12094)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$LegacyVmDispatcher.run(AgentBuilder.java:12792)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$LegacyVmDispatcher.run(AgentBuilder.java:12732)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.doPrivileged(AgentBuilder.java)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.transform(AgentBuilder.java:12294)
    at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
    at sun.instrument.InstrumentationImpl._jrDoTransform(InstrumentationImpl.java:428)
    at sun.instrument.InstrumentationImpl._jrTransform(InstrumentationImpl.java:42001)
    at com.zeroturnaround.jrebelbase.reorder.b.transform(SourceFile:180)
    at com.zeroturnaround.jrebelbase.reorder.b.transform(SourceFile:153)
    at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:43001)
    at sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
    at sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:144)
    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.cool.request.agent.lib.net.bytebuddy.utility.Invoker$Dispatcher.invoke(Unknown Source)
    at com.cool.request.agent.lib.net.bytebuddy.utility.dispatcher.JavaDispatcher$Dispatcher$ForNonStaticMethod.invoke(JavaDispatcher.java:1032)
    at com.cool.request.agent.lib.net.bytebuddy.utility.dispatcher.JavaDispatcher$ProxiedInvocationHandler.invoke(JavaDispatcher.java:1162)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.$Proxy633.retransformClasses(Unknown Source)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy$Collector$ForRetransformation.doApply(AgentBuilder.java:8336)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy$Collector.apply(AgentBuilder.java:8151)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy.apply(AgentBuilder.java:5848)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default.doInstall(AgentBuilder.java:11462)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default.installOn(AgentBuilder.java:11362)
    at com.cool.request.agent.lib.net.bytebuddy.agent.builder.AgentBuilder$Default$Delegator.installOn(AgentBuilder.java:13154)
    at com.cool.request.rmi.agent.CoolRequestAgentRMIImpl.applyByteBuddy(CoolRequestAgentRMIImpl.java:190)
    at com.cool.request.rmi.agent.CoolRequestAgentRMIImpl.doAddMethodHook(CoolRequestAgentRMIImpl.java:278)
    at com.cool.request.rmi.agent.CoolRequestAgentRMIImpl.addMethodHook(CoolRequestAgentRMIImpl.java:333)
    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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
    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:750)
houxinlin commented 16 hours ago

部分版本会冲突,需要统计的时候使用idea的run启动