0

当我运行独立的 Hornetq 时出现此错误,我试图从 tomcat 连接到它。我收到此错误:

javax.management.InstanceNotFoundException: org.hornetq:module=Core,type=Queue,address="jms.queue.MyQueue",name="jms.queue.MyQueue"
       com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
   com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:662)

com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
4

1 回答 1

1

您正在尝试从实际上不存在的实例中获取属性。我建议不要在它的实例上调用 getAttribute 为空。当您尝试 queryName(or) queryMBeans 时,您将知道 Mbean 是否存在。

于 2012-01-05T17:13:07.307 回答