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

JMap timeout after java.lang.reflect.InaccessibleObjectException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • 10
    • hotspot

      Test: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java

      Got this on all platforms in the nightlies:

      Exception in thread "main" java.lang.reflect.InaccessibleObjectException: Unable to make field private final sun.management.VMManagement sun.management.RuntimeImpl.jvm accessible: module java.management does not "opens sun.management" to unnamed module @23faf8f2
      at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:207)
      at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:171)
      at java.base/java.lang.reflect.Field.setAccessible(Field.java:165)
      at JMapHProfLargeHeapProc.getProcessId(JMapHProfLargeHeapProc.java:59)
      at JMapHProfLargeHeapProc.main(JMapHProfLargeHeapProc.java:41)

            gtriantafill George Triantafillou (Inactive)
            jwilhelm Jesper Wilhelmsson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: