Recently we we upgrading our application from JDK 8 to JDK16. We encountered following exception in our application running under Tomcat 9. We were using wildfly-23 running with JDK-16 and Tomcat-9 running wih JDK-16
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.reflect.Method jdk.proxy29.$Proxy136.m0 accessible: module jdk.proxy29 does not "opens jdk.proxy29" to unnamed module @182f9a0
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357) ~[?:?]
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) ~[?:?]
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177) ~[?:?]
at java.base/java.lang.reflect.Field.setAccessible(Field.java:171) ~[?:?]
at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBProxyInformation$1.doCompute(EJBProxyInformation.java:101) ~[jboss-client.jar:24.0.0.Final]
at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBProxyInformation$1.computeValue(EJBProxyInformation.java:72) ~[jboss-client.jar:24.0.0.Final]
at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBProxyInformation$1.computeValue(EJBProxyInformation.java:66) ~[jboss-client.jar:24.0.0.Final]
at java.base/java.lang.ClassValue.getFromHashMap(ClassValue.java:228) ~[?:?]
at java.base/java.lang.ClassValue.getFromBackup(ClassValue.java:210) ~[?:?]
at java.base/java.lang.ClassValue.get(ClassValue.java:116) ~[?:?]
at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBProxyInformation.forViewType(EJBProxyInformation.java:242) ~[jboss-client.jar:24.0.0.Final]
at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBLocator.getProxyInformation(EJBLocator.java:375) ~[jboss-client.jar:24.0.0.Final]
at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBLocator.getProxyConstructor(EJBLocator.java:370) ~[jboss-client.jar:24.0.0.Final]
at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBLocator.createProxyInstance(EJBLocator.java:387) ~[jboss-client.jar:24.0.0.Final]
at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBClient.createProxy(EJBClient.java:161) ~[jboss-client.jar:24.0.0.Final]
at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBClient.createProxy(EJBClient.java:156) ~[jboss-client.jar:24.0.0.Final]
at org.jboss.as.ejb3@23.0.0.Final//org.jboss.as.ejb3.remote.RemoteViewManagedReferenceFactory.getReference(RemoteViewManagedReferenceFactory.java:105) ~[?:?]
at org.jboss.as.ejb3@23.0.0.Final//org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor$2$1.getReference(EjbJndiBindingsDeploymentUnitProcessor.java:268) ~[?:?]
at org.jboss.as.naming@23.0.0.Final//org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:143) ~[?:?]
... 14 more
We tried upgrading jboss-client.jar on Tomcat to version 24 but this did not help and we were still getting above error.
Then we tried upgrading Wildfly server also to version 24.0.0.Final, and after upgrading server to Wildfly-24 it started working.
No comments:
Post a Comment