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

NPE from CgroupV2Subsystem.getInstance()

    XMLWordPrintable

Details

    • b25
    • linux
    • Verified

    Backports

      Description

        The following is an error reported by a customer of the Toolbox app:

        Cannot invoke "jdk.internal.platform.CgroupInfo.getMountPoint()" because "<parameter1>" is null: java.lang.NullPointerException: Cannot invoke "jdk.internal.platform.CgroupInfo.getMountPoint()" because "<parameter1>" is null
        at java.base/jdk.internal.platform.cgroupv2.CgroupV2Subsystem.getInstance(Unknown Source)
        at java.base/jdk.internal.platform.CgroupSubsystemFactory.create(Unknown Source)
        at java.base/jdk.internal.platform.CgroupMetrics.getInstance(Unknown Source)
        at java.base/jdk.internal.platform.SystemMetrics.instance(Unknown Source)
        at java.base/jdk.internal.platform.Metrics.systemMetrics(Unknown Source)
        at java.base/jdk.internal.platform.Container.metrics(Unknown Source)
        at jdk.management/com.sun.management.internal.OperatingSystemImpl.<init>(Unknown Source)
        at jdk.management/com.sun.management.internal.PlatformMBeanProviderImpl.getOperatingSystemMXBean(Unknown Source)
        at jdk.management/com.sun.management.internal.PlatformMBeanProviderImpl$3.nameToMBeanMap(Unknown Source)
        at java.management/sun.management.spi.PlatformMBeanProvider$PlatformComponent.getMBeans(Unknown Source)
        at java.management/java.lang.management.ManagementFactory.getPlatformMXBean(Unknown Source)
        at java.management/java.lang.management.ManagementFactory.getOperatingSystemMXBean(Unknown Source)
        at com.jetbrains.toolbox.PerformanceMetricsImpl.<init>(PerformanceMetrics.kt:19)
        at com.jetbrains.toolbox.interop.cef.NativeGUIProcessKt.createToolboxServices(NativeGUIProcess.kt:177)
        at com.jetbrains.toolbox.entry.ToolboxEntry.startToolbox(toolbox-process-entry.kt:73)

        Attachments

          Issue Links

            Activity

              People

                mkartashev Maxim Kartashev
                mkartashev Maxim Kartashev
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: