I learned how to connect mbean to the task I received today. I was an idiot. I only found it under the Lib of JBoss. I didn't find the jar package of rmiadaptor, So I simply went down a client package online, as a result, the tragedy happened, and no connection was possible, and an exception message was always thrown.
Javax. naming. namingexception: cocould not dereference object [root exception is javax. naming. communicationexception [root exception is Java. io. invalidclassexception: Org. JBoss. invocation. invokerinterceptor; unable to create instance]
At org. jnp. Interfaces. namingcontext. resolvelink (namingcontext. Java: 1067)
At org. jnp. Interfaces. namingcontext. Lookup (namingcontext. Java: 700)
This problem was found on the internet for half a day and is in foreign languages. Basically, the version did not match. The jar package was introduced from the JBoss client, and the problem was solved.