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

Problem loading platform MBean server

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b110
    • Resolved In Build:
      b112
    • CPU:
      x86_64
    • OS:
      windows_7
    • Verification:
      Verified

      Description

      FULL PRODUCT VERSION :
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+110)
      Java HotSpot(TM) Server VM (build 9-ea+110, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Generic

      A DESCRIPTION OF THE PROBLEM :
      Calls to java.lang.management.ManagementFactory.getPlatformMBeanServer no longer work. Was broken earlier in the EAP cycle (see one of my other bug reports from last year) but recently was working again. Broken between build 109 and 110.

      REGRESSION. Last worked in version 9

      ADDITIONAL REGRESSION INFORMATION:
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+110)
      Java HotSpot(TM) Server VM (build 9-ea+110, mixed mode)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the attached code.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Code should run without crashing
      ACTUAL -
      An exception is thrown

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Exception in thread "main" java.util.ServiceConfigurationError: sun.management.spi.PlatformMBeanProvider: Provider jdk.management.cmm.internal.PlatformMBeanProviderImpl not found
              at java.util.ServiceLoader.fail(ServiceLoader.java:237)
              at java.util.ServiceLoader.access$300(ServiceLoader.java:183)
              at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:370)
              at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:402)
              at java.util.ServiceLoader$1.next(ServiceLoader.java:478)
              at java.lang.Iterable.forEach(Iterable.java:74)
              at java.lang.management.ManagementFactory$PlatformMBeanFinder.lambda$static$0(ManagementFactory.java:890)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.security.AccessController.doPrivileged(AccessController.java:428)
              at java.lang.management.ManagementFactory$PlatformMBeanFinder.<clinit>(ManagementFactory.java:886)
              at java.lang.management.ManagementFactory.platformComponents(ManagementFactory.java:878)
              at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:475)
              at Test.main(Test.java:3)


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class Test {
          public static void main(String[] args) {
              java.lang.management.ManagementFactory.getPlatformMBeanServer();
          }
      }

      ---------- END SOURCE ----------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              egahlin Erik Gahlin
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: