解决方法

If you experience the error message “Access denied! Invalid access level for requested MBeanServer operation”, this may lead to a problem of lack of enough permission when you invoke MBean method.**To solve it, edit jmxremote.access file. Find the user you connect to the JMX server and set the permission to **readwrite.userA readwrite

如果您遇到错误消息“访问被拒绝!请求的 MBeanServer 操作的访问级别无效”,这可能会导致调用 MBean 方法时权限不足的问题。要解决此问题,请编辑 jmxremote.access 文件。找到你连接到JMX服务器的用户,设置权限为readwrite.userA readwrite

修改