Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5042534

ModelMBean example does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.1
    • 1.2.1
    • core-svc
    • None
    • 1.2.1
    • sparc
    • generic

      Run the example gets the following exception:

      Create event listeners
      Error! Creating event listener with invoke failed with message:

      Operation addAttributeChangeNotificationListener not in ModelMBeanInfo


      EXITING...

      javax.management.MBeanException: Operation addAttributeChangeNotificationListener not in ModelMBeanInfo
      at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:858)
      at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
      at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
      at ModelAgent.createEventListeners(ModelAgent.java:165)
      at ModelAgent.doSimpleDemo(ModelAgent.java:116)
      at ModelAgent.main(ModelAgent.java:64)
      Caused by: javax.management.ServiceNotFoundException: Operation addAttributeChangeNotificationListener not in ModelMBeanInfo
      ... 8 more

      ###@###.### 2004-05-05

            sjiang Shanliang Jiang (Inactive)
            sjiang Shanliang Jiang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: