java.lang.IllegalAccessException when using OWNER with Java 17
pat-sch opened this issue · comments
pat-sch commented
We are currently trying to upgrade our Spring MVC web application from Java 8 to Java 17. During deployment, the following exception occurs when initialising the config instance via ConfigFactory.create(AppConfiguration.class):
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.reflect.Method jdk.proxy3.$Proxy9.m0 accessible: module jdk.proxy3 does not "opens jdk.proxy3" to unnamed module @1d9604cd
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
at org.springframework.util.ReflectionUtils.makeAccessible(ReflectionUtils.java:791)
... 81 common frames omitted
Does anyone have the same problem?
uchagani commented
i'm using Owner with java 17 and creating a config via ConfigCache and don't have this issue.