大家好,欢迎来到IT知识分享网。
我也有同样的问题。
arthas version 3.4.5
腾讯云环境:CentOS Linux release 7.9.2009 (Core)
java version “1.8.0_251”
command: trace com.xxx.orderscenicspots.biz.service.impl.MainOrderServiceImpl saveCreateOrderResult
Affect(class count: 1 , method count: 1) cost in 52 ms, listenerId: 5
Enhance error! exception: java.lang.ClassFormatError
error happens when enhancing class: null, check arthas log: /root/logs/arthas/arthas.log
日志如下:
2020-12-18 10:53:30 [arthas-NettyHttpTelnetBootstrap-3-1] INFO c.a.a.d.i.n.h.logging.LoggingHandler -[id: 0x52762a84, L:/127.0.0.1:3658] READ: [id: 0x230c3f1b, L:/127.0.0.1:3658 – R:/127.0.0.1:46626]
2020-12-18 10:53:30 [arthas-NettyHttpTelnetBootstrap-3-1] INFO c.a.a.d.i.n.h.logging.LoggingHandler -[id: 0x52762a84, L:/127.0.0.1:3658] READ COMPLETE
2020-12-18 10:53:30 [arthas-NettyHttpTelnetBootstrap-3-3] INFO c.t.a.core.shell.term.impl.Helper -Loaded arthas keymap file from com/taobao/arthas/core/shell/term/readline/inputrc
Arthas server already stared, skip attach.
2020-12-18 10:53:31 [arthas-NettyHttpTelnetBootstrap-3-1] INFO c.a.a.d.i.n.h.logging.LoggingHandler -[id: 0x52762a84, L:/127.0.0.1:3658] READ: [id: 0x90080e08, L:/127.0.0.1:3658 – R:/127.0.0.1:46652]
2020-12-18 10:53:31 [arthas-NettyHttpTelnetBootstrap-3-1] INFO c.a.a.d.i.n.h.logging.LoggingHandler -[id: 0x52762a84, L:/127.0.0.1:3658] READ COMPLETE
2020-12-18 10:53:31 [arthas-NettyHttpTelnetBootstrap-3-4] INFO c.t.a.core.shell.term.impl.Helper -Loaded arthas keymap file from com/taobao/arthas/core/shell/term/readline/inputrc
2020-12-18 10:53:43 [arthas-command-execute] INFO c.t.arthas.core.advisor.Enhancer -enhance matched classes: [class com.xxxx.orderscenicspots.biz.service.impl.MainOrderServiceImpl, class com.xxxx.orderscenicspots.biz.service.impl.MainOrderServiceImpl$$EnhancerBySpringCGLIB$$4252ddc2]
2020-12-18 10:53:43 [arthas-command-execute] ERROR c.t.arthas.core.advisor.Enhancer -Enhancer error, matchingClasses: [class com.xxxx.orderscenicspots.biz.service.impl.MainOrderServiceImpl, class com.xxxx.orderscenicspots.biz.service.impl.MainOrderServiceImpl$$EnhancerBySpringCGLIB$$4252ddc2]
java.lang.ClassFormatError: null
at sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
at sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:144)
at com.taobao.arthas.core.advisor.Enhancer.enhance(Enhancer.java:372)
at com.taobao.arthas.core.command.monitor200.EnhancerCommand.enhance(EnhancerCommand.java:149)
at com.taobao.arthas.core.command.monitor200.EnhancerCommand.process(EnhancerCommand.java:96)
at com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl.process(AnnotatedCommandImpl.java:82)
at com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl.access$100(AnnotatedCommandImpl.java:18)
at com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl$ProcessHandler.handle(AnnotatedCommandImpl.java:111)
at com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl$ProcessHandler.handle(AnnotatedCommandImpl.java:108)
at com.taobao.arthas.core.shell.system.impl.ProcessImpl$CommandProcessTask.run(ProcessImpl.java:385)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
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)
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/10773.html