eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 721 forks source link

jfr.FlightRecorderMXBean.getEventTypes Could not access event handler #20607

Open pshipton opened 5 hours ago

pshipton commented 5 hours ago

Related to https://github.com/eclipse-openj9/openj9/issues/20587 jdk_jmx javax/management/MBeanServer/OldMBeanServerTest.java

jdk.management.jfr:type=FlightRecorder:
  Configurations = [Ljavax.management.openmbean.CompositeData;@597096d8
testPlatformMBeanServer: got exception java.lang.InternalError
java.lang.InternalError: Could not access event handler
        at jdk.jfr/jdk.jfr.internal.Utils.getHandler(Utils.java:323)
        at jdk.jfr/jdk.jfr.internal.MetadataRepository.getHandler(MetadataRepository.java:171)
        at jdk.jfr/jdk.jfr.internal.MetadataRepository.register(MetadataRepository.java:132)
        at jdk.jfr/jdk.jfr.internal.MetadataRepository.register(MetadataRepository.java:127)
        at jdk.jfr/jdk.jfr.internal.SecuritySupport.lambda$registerEvent$2(SecuritySupport.java:284)
        at jdk.jfr/jdk.jfr.internal.SecuritySupport$2.run(SecuritySupport.java:210)
        at jdk.jfr/jdk.jfr.internal.SecuritySupport$2.run(SecuritySupport.java:207)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:886)
        at jdk.jfr/jdk.jfr.internal.SecuritySupport.doPrivileged(SecuritySupport.java:207)
        at jdk.jfr/jdk.jfr.internal.SecuritySupport.registerEvent(SecuritySupport.java:284)
        at jdk.jfr/jdk.jfr.internal.instrument.JDKEvents.initialize(JDKEvents.java:110)
        at jdk.jfr/jdk.jfr.internal.management.ManagementSupport.getEventTypes(ManagementSupport.java:77)
        at jdk.management.jfr/jdk.management.jfr.FlightRecorderMXBeanImpl$1.run(FlightRecorderMXBeanImpl.java:190)
        at jdk.management.jfr/jdk.management.jfr.FlightRecorderMXBeanImpl$1.run(FlightRecorderMXBeanImpl.java:187)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:886)
        at jdk.management.jfr/jdk.management.jfr.FlightRecorderMXBeanImpl.getEventTypes(FlightRecorderMXBeanImpl.java:187)
github-actions[bot] commented 5 hours ago

Issue Number: 20607 Status: Open Recommended Components: comp:vm, comp:test, comp:jclextensions

pshipton commented 5 hours ago

@tajila pls take a look. We are looking to enable jdk_jmx tests and this will be the remaining failure. We can exclude the test until it's fixed.

tajila commented 4 hours ago

Thanks, we will need to exculde this for some time. Currently, we only have internal JFR support.

pshipton commented 4 hours ago

Could you fix the FlightRecorderMXBean and Impl to remove the methods that don't work? Presumably some of it works since it's been added, or the whole thing could be removed..