Inconsistent behavior of isInstanceOf(name,"javax.management.NotificationEmitter") for StandardMBean

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 7
    • Component/s: core-svc
    • None

      If an MBean that implements NotificationEmitter is wrapped in StandardMBean, then
        MBeanServer.isInstanceOf(name,"javax.management.NotificationEmitter") yields true,
      but
        MBeanServer.addNotificationListener(name,...) fails with the following exception

      MBean <name> does not implement javax.management.NotificationEmitter
      javax.management.RuntimeOperationsException: MBean <name> does not implement javax.management.NotificationEmitter

            Assignee:
            Unassigned
            Reporter:
            Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: