java.lang.reflect.InaccessibleObjectException: Unable to make member of class com.sun.management.internal.OperatingSystemImpl accessible: module jdk.management does not export com.sun.management.internal to unnamed module @41e68d87 at sun.reflect.Reflection.throwInaccessibleObjectException(java.base@9-internal/Reflection.java:420) at java.lang.reflect.AccessibleObject.checkCanSetAccessible(java.base@9-internal/AccessibleObject.java:174) at java.lang.reflect.Method.checkCanSetAccessible(java.base@9-internal/Method.java:189) at java.lang.reflect.Method.setAccessible(java.base@9-internal/Method.java:183)

Stack Overflow | kwoxer | 5 months ago
  1. 0

    isAuthorized() Exception: Can not close file with id 0 because it is still in use

    Stack Overflow | 5 months ago | kwoxer
    java.lang.reflect.InaccessibleObjectException: Unable to make member of class com.sun.management.internal.OperatingSystemImpl accessible: module jdk.management does not export com.sun.management.internal to unnamed module @41e68d87 at sun.reflect.Reflection.throwInaccessibleObjectException(java.base@9-internal/Reflection.java:420) at java.lang.reflect.AccessibleObject.checkCanSetAccessible(java.base@9-internal/AccessibleObject.java:174) at java.lang.reflect.Method.checkCanSetAccessible(java.base@9-internal/Method.java:189) at java.lang.reflect.Method.setAccessible(java.base@9-internal/Method.java:183)
  2. 0

    GitHub comment 217#237365999

    GitHub | 4 months ago | jfly
    java.lang.reflect.InaccessibleObjectException: Unable to make member of class sun.security.provider.Sun accessible: module java.base does not export sun.security.provider to unnamed module @45b9a632 at sun.reflect.Reflection.throwInaccessibleObjectException(java.base@9-internal/Reflection.java:420) at java.lang.reflect.AccessibleObject.checkCanSetAccessible(java.base@9-internal/AccessibleObject.java:174) at java.lang.reflect.Constructor.checkCanSetAccessible(java.base@9-internal/Constructor.java:183) at java.lang.reflect.Constructor.setAccessible(java.base@9-internal/Constructor.java:176)
  3. 0

    How can I use reflection with Java 9 on the Java internals?

    Stack Overflow | 5 months ago | Horcrux7
    java.lang.reflect.InaccessibleObjectException: Unable to make member of class jdk.internal.loader.ClassLoaders$AppClassLoader accessible: module java.base does not export jdk.internal.loader to unnamed module @9f73a2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.reflect.InaccessibleObjectException

      Unable to make member of class com.sun.management.internal.OperatingSystemImpl accessible: module jdk.management does not export com.sun.management.internal to unnamed module @41e68d87 at sun.reflect.Reflection.throwInaccessibleObjectException(java.base@9-internal/Reflection.java:420) at java.lang.reflect.AccessibleObject.checkCanSetAccessible(java.base@9-internal/AccessibleObject.java:174) at java.lang.reflect.Method.checkCanSetAccessible(java.base@9-internal/Method.java:189) at java.lang.reflect.Method.setAccessible(java.base@9-internal/Method.java:183)

      at com.orientechnologies.common.util.OMemory.getPhysicalMemorySize()
    2. OrientDB Core
      ODatabaseDocumentTx.<init>
      1. com.orientechnologies.common.util.OMemory.getPhysicalMemorySize(OMemory.java:65)
      2. com.orientechnologies.orient.core.engine.OMemoryAndLocalPaginatedEnginesInitializer.configureDefaultDiskCacheSize(OMemoryAndLocalPaginatedEnginesInitializer.java:80)
      3. com.orientechnologies.orient.core.engine.OMemoryAndLocalPaginatedEnginesInitializer.configureDefaults(OMemoryAndLocalPaginatedEnginesInitializer.java:63)
      4. com.orientechnologies.orient.core.engine.OMemoryAndLocalPaginatedEnginesInitializer.initialize(OMemoryAndLocalPaginatedEnginesInitializer.java:52)
      5. com.orientechnologies.orient.core.engine.local.OEngineLocalPaginated.startup(OEngineLocalPaginated.java:56)
      6. com.orientechnologies.orient.core.Orient.startEngine(Orient.java:872)
      7. com.orientechnologies.orient.core.Orient.loadStorage(Orient.java:480)
      8. com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.<init>(ODatabaseDocumentTx.java:167)
      9. com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.<init>(ODatabaseDocumentTx.java:148)
      9 frames
    3. OrientDB Server
      OServerMain.main
      1. com.orientechnologies.orient.server.OSystemDatabase.init(OSystemDatabase.java:151)
      2. com.orientechnologies.orient.server.OSystemDatabase.<init>(OSystemDatabase.java:44)
      3. com.orientechnologies.orient.server.OServer.initSystemDatabase(OServer.java:1227)
      4. com.orientechnologies.orient.server.OServer.activate(OServer.java:342)
      5. com.orientechnologies.orient.server.OServerMain.main(OServerMain.java:41)
      5 frames