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

JMap timeout after java.lang.reflect.InaccessibleObjectException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: