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

JFR tests failing: IllegalStateException: Flight Recorder is not supported on this VM

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 18
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      jfr
    • Introduced In Version:
      18

      Description

      We are seeing mass failing of some JFR tests after the integration of JDK-8271949.

      Example:

      jfr/jmx/security/TestNotificationListenerPermission.java


      ----------System.err:(23/1882)----------
      WARNING: A command line option has enabled the Security Manager
      WARNING: The Security Manager is deprecated and will be removed in a future release
      java.lang.IllegalStateException: Flight Recorder is not supported on this VM
      at jdk.jfr/jdk.jfr.internal.JVMSupport.ensureWithIllegalStateException(JVMSupport.java:77)
      at jdk.jfr/jdk.jfr.FlightRecorder.getFlightRecorder(FlightRecorder.java:176)
      at jdk.management.jfr/jdk.management.jfr.FlightRecorderMXBeanImpl$3.run(FlightRecorderMXBeanImpl.java:406)
      at jdk.management.jfr/jdk.management.jfr.FlightRecorderMXBeanImpl$3.run(FlightRecorderMXBeanImpl.java:403)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:460)
      at jdk.management.jfr/jdk.management.jfr.FlightRecorderMXBeanImpl.getRecorder(FlightRecorderMXBeanImpl.java:403)
      at jdk.management.jfr/jdk.management.jfr.FlightRecorderMXBeanImpl.newRecording(FlightRecorderMXBeanImpl.java:228)
      at jdk.jfr.jmx.security.TestNotificationListenerPermission.main(TestNotificationListenerPermission.java:78)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:51)
      at java.base/java.lang.reflect.Method.invoke(Method.java:569)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: