由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - JMX question , help please
相关主题
jar 的问题, 路径有问题? 大家帮忙看看是啥毛病?怎么能学成J2EE的全能
java gc之前有没有办法得到notification?请教一下用过JMX (Java Management Extension)的朋友
Help! An Exception about JMS问个deploy相关的问题
问个java on linux的奇怪问题JMX question
Re: 怎样不用main(String args[])输出"hello worlJetty embeded server communication question?
其实有很多概念都是误导性的使用SNMP去monitor JBOSS里面的应用
JDK 1.5 is out新手请教netbean的问题
请教jconsole问题多少个thread 就算不正常?
相关话题的讨论汇总
话题: jmx话题: hello话题: question话题: mbeans话题: did
进入Java版参与讨论
1 (共1页)
c******n
发帖数: 4965
1
I tried to listen to notifications from all mbeans ,
by calling
mbsc.addNotificationListener(new ObjectName("*:*")......)
but at run time it gave me an error:
>>> Perform operations on Hello MBean <<<
Add notification listener...
Exception in thread "main" javax.management.InstanceNotFoundException:
*:type=Hello
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMB
eanServerInterceptor.java:1094)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(
DefaultMBeanServerInterceptor.java:1438)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.getClassLoaderFor(JmxMBeanServer.
java:1276)
at
javax.management.remote.rmi.RMIConnectionImpl$5.run(RMIConnectionImpl.ja
va:1326)
at java.security.AccessController.doPrivileged(Native Method)
so it did not really take "*" as a pattern, but the doc says this should
work.... where did I do wrong? thanks!
1 (共1页)
进入Java版参与讨论
相关主题
多少个thread 就算不正常?Re: 怎样不用main(String args[])输出"hello worl
学习JAVA的人要注意其实有很多概念都是误导性的
trick to use JMX on EC2JDK 1.5 is out
Re: 4年.NET经验在bay area大概能拿多少? (转载)请教jconsole问题
jar 的问题, 路径有问题? 大家帮忙看看是啥毛病?怎么能学成J2EE的全能
java gc之前有没有办法得到notification?请教一下用过JMX (Java Management Extension)的朋友
Help! An Exception about JMS问个deploy相关的问题
问个java on linux的奇怪问题JMX question
相关话题的讨论汇总
话题: jmx话题: hello话题: question话题: mbeans话题: did