【问题标题】:Error connecting to Hornetq from Tomcat从 Tomcat 连接到 Hornetq 时出错
【发布时间】:2012-01-24 17:43:23
【问题描述】:

当我运行独立的 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)

【问题讨论】:

    标签: tomcat queue jms jmx hornetq


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-14
      • 2023-03-04
      • 1970-01-01
      • 2013-07-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-08
      相关资源
      最近更新 更多