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

MBeans tab: jconsole misinterprets java.lang.Void on Open MBean operations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 5.0
    • tools
    • b05
    • x86
    • windows_xp
    • Verified

        FULL PRODUCT VERSION :
        java version "1.5.0_04"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
        Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [version 5.1.2600]

        A DESCRIPTION OF THE PROBLEM :
        For a non-Open MBean, an operation with a void return type results in an "Operation Completed Successfully" message. For an Open MBean, where the return type is specified as SimpleType.VOID, invocation results in a "Operation returned null" message.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Create an Open MBean with a void operation. Register with a the MBeanServer. Start jconsole, navigate to the MBean operation, invoke it.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        "Operation completed successfully" message (as per non-Open MBeans)
        ACTUAL -
        "Operation returned null" message (as per non-void operations that return null)

        REPRODUCIBILITY :
        This bug can be reproduced always.

              lmalvent Luis-Miguel Alventosa (Inactive)
              lmalvent Luis-Miguel Alventosa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: