Java fails to start after update with ArrayIndexOutOfBoundsException in jdk.internal.platform.cgroupv2.CgroupV2Subsystem.initSubsystem

Solution Unverified - Updated -

Issue

  • We recently upgraded to java 1.8.0.u361. After this, java applications fail to start with an error like below:
Exception in thread "main" java.lang.InternalError: java.lang.reflect.InvocationTargetException
    at jdk.internal.platform.Metrics.systemMetrics(Metrics.java:67)
    at jdk.internal.platform.Container.metrics(Container.java:42)
    at sun.management.OperatingSystemImpl.<init>(OperatingSystemImpl.java:181)
    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)
    at org.jboss.modules.Main.main(Main.java:534)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at jdk.internal.platform.Metrics.systemMetrics(Metrics.java:63)
    ... 7 more
Caused by: java.lang.ExceptionInInitializerError
    at jdk.internal.platform.CgroupSubsystemFactory.create(CgroupSubsystemFactory.java:95)
    at jdk.internal.platform.CgroupMetrics.getInstance(CgroupMetrics.java:169)
    ... 12 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 4
    at jdk.internal.platform.cgroupv2.CgroupV2Subsystem.initSubsystem(CgroupV2Subsystem.java:73)
    at jdk.internal.platform.cgroupv2.CgroupV2Subsystem.<clinit>(CgroupV2Subsystem.java:44)
    ... 14 more

Environment

  • Java 1.8.0.u361
  • JBoss Enterprise Application Platform (EAP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content