]
Nistor Adrian updated ISPN-10863:
---------------------------------
Git Pull Request:
java.lang.IllegalAccessException logged by PropertyFormatter
-------------------------------------------------------------
Key: ISPN-10863
URL:
https://issues.jboss.org/browse/ISPN-10863
Project: Infinispan
Issue Type: Bug
Components: Configuration
Affects Versions: 10.0.0.Final
Reporter: Nistor Adrian
Assignee: Nistor Adrian
Priority: Major
Fix For: 10.1.0.Beta1
This is a benign issue being logged by AccessibleObject when PropertyFormatter attempts
to accesses via reflection some config methods that are not accessible.
JmxStatsFunctionalTest is one good example, and it's not failing because of this.
{code}
java.lang.IllegalAccessException: class
org.infinispan.configuration.format.PropertyFormatter cannot access a member of class
org.infinispan.configuration.cache.AuthorizationConfiguration with modifiers "static
final"
at
java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
at
java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
at java.base/java.lang.reflect.Method.invoke(Method.java:558)
at
org.infinispan.configuration.format.PropertyFormatter.reflect(PropertyFormatter.java:101)
at
org.infinispan.configuration.format.PropertyFormatter.reflect(PropertyFormatter.java:110)
at
org.infinispan.configuration.format.PropertyFormatter.reflect(PropertyFormatter.java:101)
at
org.infinispan.configuration.format.PropertyFormatter.reflect(PropertyFormatter.java:101)
at
org.infinispan.configuration.format.PropertyFormatter.format(PropertyFormatter.java:131)
at
org.infinispan.cache.impl.AbstractDelegatingCache.getConfigurationAsProperties(AbstractDelegatingCache.java:616)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.infinispan.jmx.ResourceDMBean$InvokableSetterBasedMBeanAttributeInfo.invoke(ResourceDMBean.java:378)
at org.infinispan.jmx.ResourceDMBean.getNamedAttribute(ResourceDMBean.java:289)
at org.infinispan.jmx.ResourceDMBean.getAttribute(ResourceDMBean.java:172)
at
java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:641)
at
java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)
at
org.infinispan.jmx.JmxStatsFunctionalTest.testConfigurationProperties(JmxStatsFunctionalTest.java:307)
{code}