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

ExceptionInInitializerError due to UncheckedIOException while initializing cgroupv1 subsystem

    XMLWordPrintable

    Details

    • Resolved In Build:
      b26
    • OS:
      linux

      Backports

        Description

        jdk.internal.platform.cgroupv1.Metrics.initContainerSubSystems() can fail with the following exception if the system does not have /proc/self/cgroup or /proc/self/mountinfo files.

        java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at jdk.internal.platform.Metrics.systemMetrics(Metrics.java:59)
        at jdk.internal.platform.Container.metrics(Container.java:42)
        at sun.management.OperatingSystemImpl.<init>(OperatingSystemImpl.java:46) at sun.management.ManagementFactoryHelper.getOperatingSystemMXBean(ManagementFactoryHelper.java:106) at java.lang.management.PlatformComponent$7.getMXBeans(PlatformComponent.java:157) at java.lang.management.PlatformComponent.getMXBeans(PlatformComponent.java:377) at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:472)
        ...

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                poonam Poonam Bajaj Parhar
                Reporter:
                poonam Poonam Bajaj Parhar
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: