Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Caused by: java.lang.reflect.InaccessibleObjectException: 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 module javassist
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:198)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:192)
at javassist@3.20.0-GA/javassist.util.proxy.SecurityActions.setAccessible(SecurityActions.java:103)
at javassist@3.20.0-GA/javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:181)
at javassist@3.20.0-GA/javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164)
at javassist@3.20.0-GA/javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:507)
at javassist@3.20.0-GA/javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492)
at javassist@3.20.0-GA/javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428)
at javassist@3.20.0-GA/javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400)
at hibernate.core@5.2.11.Final/org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:72)
at hibernate.core@5.2.11.Final/org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
at hibernate.core@5.2.11.Final/org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:163)
at hibernate.core@5.2.11.Final/org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:58)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.