jconsole does not show local running VMs to attach

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: core-svc
    • b156

        This is caused by JDK-8173607 due to the rename of sun.management.ConnectorAddressLink class.

        --- old/src/jdk.jconsole/share/classes/sun/tools/jconsole/JConsole.java 2017-02-05 16:37:26.768771419 +0100
        +++ new/src/jdk.jconsole/share/classes/sun/tools/jconsole/JConsole.java 2017-02-05 16:37:26.597774358 +0100
        @@ -954,7 +954,7 @@
                 boolean supported;
                 try {
                     Class.forName("com.sun.tools.attach.VirtualMachine");
        - Class.forName("sun.management.ConnectorAddressLink");
        + Class.forName("jdk.internal.agent.ConnectorAddressLink");
                     supported = true;
                 } catch (NoClassDefFoundError x) {
                     supported = false;

              Assignee:
              Mandy Chung (Inactive)
              Reporter:
              Mandy Chung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: