Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926247 - dev-java/openjdk-bin-8.382_p05: java.lang.NullPointerException when parsing OpenRC cgroupsv2
Summary: dev-java/openjdk-bin-8.382_p05: java.lang.NullPointerException when parsing O...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 926263
Blocks:
  Show dependency tree
 
Reported: 2024-03-06 09:08 UTC by Agostino Sarubbo
Modified: 2024-03-15 01:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-03-06 09:08:11 UTC
After updating from openjdk-bin-8.362_p09 to openjdk-bin-8.382_p05 my apache-tomcat-8.5.98 fails to start with:


java.lang.NullPointerException
        at jdk.internal.platform.cgroupv2.CgroupV2Subsystem.getInstance(CgroupV2Subsystem.java:81)
        at jdk.internal.platform.CgroupSubsystemFactory.create(CgroupSubsystemFactory.java:108)
        at jdk.internal.platform.CgroupMetrics.getInstance(CgroupMetrics.java:173)
        at jdk.internal.platform.SystemMetrics.instance(SystemMetrics.java:29)
        at jdk.internal.platform.Metrics.systemMetrics(Metrics.java:57)
        at jdk.internal.platform.Container.metrics(Container.java:41)
        at sun.management.OperatingSystemImpl.<init>(OperatingSystemImpl.java:182)
        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 sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:466)
        at sun.management.Agent.startAgent(Agent.java:262)
        at sun.management.Agent.startAgent(Agent.java:452)
Eccezione dell'agente : java.lang.NullPointerException

I copied locally openjdk-bin-8.362_p09.ebuild to openjdk-bin-8.402_p06.ebuild and I have verified that it works for me.

Please bump and stabilize asap.
Comment 1 Larry the Git Cow gentoo-dev 2024-03-06 12:44:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd4a3decd4fcc752b05ad88dcf2c509eddfd373d

commit fd4a3decd4fcc752b05ad88dcf2c509eddfd373d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-06 12:44:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-06 12:44:33 +0000

    dev-java/openjdk-bin: add 8.402_p06
    
    Bug: https://bugs.gentoo.org/926247
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-java/openjdk-bin/Manifest                     |   6 +
 dev-java/openjdk-bin/openjdk-bin-8.402_p06.ebuild | 131 ++++++++++++++++++++++
 2 files changed, 137 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=250d2f45f958ccb2a4e3c437d396b88f5d3bd59e

commit 250d2f45f958ccb2a4e3c437d396b88f5d3bd59e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-06 12:36:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-06 12:42:18 +0000

    dev-java/openjdk: add 8.402_p06
    
    * Fix various modern C issues - all by backporting parts of later JDK 11/17/21 patches.
    * cgroup2 issues: Assuming bug #926247 affects the source build too, but not
      verified, so tagging that.
    * Drop stale -fcommon workaround (bug #850505).
    * Build with -std=gnu++14 because of -Wregister for Clang 17+ compat (bug #918655).
      (Part of the build uses -std=gnu++98 but not all of it.)
    
    Bug: https://bugs.gentoo.org/926247
    Closes: https://bugs.gentoo.org/850505
    Closes: https://bugs.gentoo.org/874621
    Closes: https://bugs.gentoo.org/918655
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-java/openjdk/Manifest                          |   1 +
 ...penjdk-8.402_p06-0001-Fix-Wint-conversion.patch |  41 ++++
 ..._p06-0002-Fix-Wincompatible-pointer-types.patch |  48 ++++
 ...02_p06-0003-Fix-negative-value-left-shift.patch |  38 ++++
 ...openjdk-8.402_p06-0004-Fix-misc.-warnings.patch |  61 ++++++
 dev-java/openjdk/openjdk-8.402_p06.ebuild          | 244 +++++++++++++++++++++
 6 files changed, 433 insertions(+)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-06 16:25:00 UTC
Many cgroup fixes in https://github.com/openjdk/jdk8u/compare/jdk8u362-b09...jdk8u402-b06.