Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TomcatEchoTypeB-全版本.jsp #1

Open
SummerSec opened this issue Jun 18, 2021 · 1 comment
Open

TomcatEchoTypeB-全版本.jsp #1

SummerSec opened this issue Jun 18, 2021 · 1 comment

Comments

@SummerSec
Copy link

java.lang.IllegalArgumentException: Can not set javax.management.MBeanServer field com.sun.jmx.mbeanserver.JmxMBeanServer.mbsInterceptor to org.apache.tomcat.util.modeler.NoDescriptorRegistry$NoJmxMBeanServer
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167) ~[na:1.8.0_101]
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171) ~[na:1.8.0_101]
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:58) ~[na:1.8.0_101]
at sun.reflect.UnsafeQualifiedObjectFieldAccessorImpl.get(UnsafeQualifiedObjectFieldAccessorImpl.java:38) ~[na:1.8.0_101]

本地测试的时候报错,没成功
另一个版本成功了,师傅知道是什么原因吗?
tomcat版本为9

@workcha
Copy link

workcha commented Mar 4, 2022

看你的报错好像是MBeanServer对象或者下面的mbsInterceptor没有获取到。我这边没有tomcat9的环境,你可以尝试在idea中断点,然后在Evaluate执行下面代码看看对象是否存在
MBeanServer对象:
org.apache.tomcat.util.modeler.Registry.getRegistry((Object)null, (Object)null).getMBeanServer();
mbsInterceptor对象:
org.apache.tomcat.util.modeler.Registry.getRegistry((Object)null, (Object)null).getMBeanServer().mbsInterceptor
下面是我在tomcat8.x执行的结果
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants