使用java -jar arthas-tunnel-server-xxx-fatjar.jar连接远程agent时可能出现如下异常java.lang.IllegalAccessError: not allow,详细如下:
[Handler dispatch failed; nested exception is java.lang.IllegalAccessError: not allow] with root cause
java.lang.IllegalAccessError: not allow
at com.alibaba.arthas.tunnel.server.app.web.DetailAPIController.tunnelApps(DetailAPIController.java:45) ~[classes!/:3.6.7]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_152]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_152]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_152]
可考虑如下方式启动跳过校验
java -jar arthas-tunnel-server-xxx-fatjar.jar --arthas.enableDetailPages=true
官网文档参考: Tunnel Server 的管理页面