Skip to content

Instantly share code, notes, and snippets.

@gunnarmorling
Created October 31, 2017 22:09
Show Gist options
  • Save gunnarmorling/926442782ba6b9c15d4309e9129838ad to your computer and use it in GitHub Desktop.
Save gunnarmorling/926442782ba6b9c15d4309e9129838ad to your computer and use it in GitHub Desktop.
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 [email protected]/javassist.util.proxy.SecurityActions.setAccessible(SecurityActions.java:103)
at [email protected]/javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:181)
at [email protected]/javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164)
at [email protected]/javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:507)
at [email protected]/javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492)
at [email protected]/javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428)
at [email protected]/javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400)
at [email protected]/org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:72)
at [email protected]/org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
at [email protected]/org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:163)
at [email protected]/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