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)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by kwoxer
, 1 year ago
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
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(OMemory.java:65)
at com.orientechnologies.orient.core.engine.OMemoryAndLocalPaginatedEnginesInitializer.configureDefaultDiskCacheSize(OMemoryAndLocalPaginatedEnginesInitializer.java:80)
at com.orientechnologies.orient.core.engine.OMemoryAndLocalPaginatedEnginesInitializer.configureDefaults(OMemoryAndLocalPaginatedEnginesInitializer.java:63)
at com.orientechnologies.orient.core.engine.OMemoryAndLocalPaginatedEnginesInitializer.initialize(OMemoryAndLocalPaginatedEnginesInitializer.java:52)
at com.orientechnologies.orient.core.engine.local.OEngineLocalPaginated.startup(OEngineLocalPaginated.java:56)
at com.orientechnologies.orient.core.Orient.startEngine(Orient.java:872)
at com.orientechnologies.orient.core.Orient.loadStorage(Orient.java:480)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.(ODatabaseDocumentTx.java:167)
at com.orientechnologies.orient.server.OSystemDatabase.init(OSystemDatabase.java:151)
at com.orientechnologies.orient.server.OSystemDatabase.(OSystemDatabase.java:44)
at com.orientechnologies.orient.server.OServer.initSystemDatabase(OServer.java:1227)
at com.orientechnologies.orient.server.OServer.activate(OServer.java:342)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.