Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-424

Debug/Trace logging fails in library mode on EAP 6

XMLWordPrintable

      In library mode (no mater if ISPN is deployed withing app or as JBoss modules), when debug/trace logging is enabled in EAP6 for org.infinispan category, logging fails exception like this:

      org.infinispan.commons.CacheException: Unable to invoke method private void org.infinispan.interceptors.impl.SequentialInterceptorChainImpl.printChainInfo() on object of type SequentialInterceptorChainImpl
              at org.infinispan.interceptors.impl.SequentialInterceptorChainImpl.printChainInfo(SequentialInterceptorChainImpl.java:68)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
              at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
              at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:864)
              at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:633)
              at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:622)
              at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:547)
              at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:238)
              at org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:890)
              at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:636)
              at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:586)
      

      The root cause is following:

      10:28:52,626 ERROR [stderr] (http-/127.0.0.1:8080-1) Caused by: java.lang.NoSuchMethodError: org.infinispan.util.logging.Log.debugf(Ljava/lang/String;I)V
      10:28:52,626 ERROR [stderr] (http-/127.0.0.1:8080-1)    at org.infinispan.interceptors.impl.SequentialInterceptorChainImpl.printChainInfo(SequentialInterceptorChainImpl.java:68)
      10:28:52,626 ERROR [stderr] (http-/127.0.0.1:8080-1)    ... 142 more
      

      In EAP7 everything works fine.

            slaskawi@redhat.com Sebastian Ɓaskawiec (Inactive)
            vjuranek@redhat.com Vojtech Juranek
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: