Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10863

java.lang.IllegalAccessException logged by PropertyFormatter

    Details

      Description

      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.

      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)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                anistor Nistor Adrian
                Reporter:
                anistor Nistor Adrian
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: