java.lang.reflect.InaccessibleObjectException

Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @490ab905 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:207) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:192) at java.base/java.lang.reflect.Method.setAccessible(Method.java:186)


Solutions on the web32

Solution icon of stackexchange-askubuntu
Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @490ab905 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible

Solution icon of stackexchange-askubuntu
Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @402a079c at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java

Solution icon of web
via askubuntu.com by Unknown author, 3 months ago
Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @402a079c at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java

Solution icon of stackexchange-askubuntu
Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @5700d6b1 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java

Solution icon of github
Unable to make protected final void java.lang.Enum.finalize() accessible: module java.base does not "opens java.lang" to unnamed module @1356d4d4 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:207) at

Solution icon of github
via GitHub by rschmitt
, 7 months ago
Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @72f926e6 at java.base

Solution icon of github
via GitHub by johnpoth
, 3 months ago
Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed

Solution icon of github
via GitHub by csoroiu
, 7 months ago
Unable to make native jdk.internal.reflect.ConstantPool java.lang.Class.getConstantPool() accessible: module java.base does not "opens java.lang" to unnamed module @6fc6f14e at java.base

Solution icon of stackexchange-askubuntu
via Ask Ubuntu by phpNoob
, 3 months ago
Unable to make private jdk.internal.reflect.ConstructorAccessor java.lang.reflect.Constructor.acquireConstructorAccessor() accessible: module java.base does not "opens java.lang.reflect" to unnamed module @7c29daf3 at java.base

Solution icon of stackoverflow
Unable to make private jdk.internal.reflect.ConstructorAccessor java.lang.reflect.Constructor.acquireConstructorAccessor() accessible: module java.base does not "opens java.lang.reflect" to unnamed module @3712b94 at java.base

Stack trace

  • java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @490ab905 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:207) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:192) at java.base/java.lang.reflect.Method.setAccessible(Method.java:186) at org.eclipse.osgi.internal.baseadaptor.BaseStorage.findMethod(BaseStorage.java:174) at org.eclipse.osgi.internal.baseadaptor.BaseStorage.findMethod(BaseStorage.java:181) at org.eclipse.osgi.internal.baseadaptor.BaseStorage.findAddURLMethod(BaseStorage.java:165) at org.eclipse.osgi.internal.baseadaptor.BaseStorage.<init>(BaseStorage.java:135) at org.eclipse.osgi.internal.baseadaptor.BaseHookConfigurator.addHooks(BaseHookConfigurator.java:24) at org.eclipse.osgi.baseadaptor.HookRegistry.loadConfigurators(HookRegistry.java:178) at org.eclipse.osgi.baseadaptor.HookRegistry.initialize(HookRegistry.java:100) at org.eclipse.osgi.baseadaptor.BaseAdaptor.<init>(BaseAdaptor.java:98)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

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.