Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-17557

Clustering TS: TopologyChangeListener can fail with CNFE: org.infinispan.commons.util.concurrent.CompletableFutures

XMLWordPrintable

      This is because we only add/set test module dependencies on org.infinispan while the org.infinispan.commons.util.concurrent.CompletableFutures is from the org.infinispan.commons module.

      Rather than change the dependencies we can just inline the null CF.

      &amp#27;[0mnode-1 &amp#27;[31m16:41:23,732 ERROR [org.infinispan.topology.LocalTopologyManagerImpl] (non-blocking-thread--p5-t2) ISPN000452: Failed to update topology for cache default: java.util.concurrent.CompletionException: org.infinispan.commons.CacheListenerException: ISPN000280: Caught exception [java.lang.NoClassDefFoundError] while invoking method [public java.util.concurrent.CompletionStage org.jboss.as.test.clustering.TopologyChangeListenerBean.topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent)] on listener instance: org.jboss.as.test.clustering.TopologyChangeListenerBean@47160064
      	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
      	at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1113)
      	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235)
      	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:143)
      	at org.infinispan@14.0.6.Final//org.infinispan.statetransfer.StateTransferManagerImpl.doTopologyUpdate(StateTransferManagerImpl.java:185)
      	at org.infinispan@14.0.6.Final//org.infinispan.statetransfer.StateTransferManagerImpl$1.updateConsistentHash(StateTransferManagerImpl.java:114)
      	at org.infinispan@14.0.6.Final//org.infinispan.topology.LocalTopologyManagerImpl.lambda$doHandleTopologyUpdate$12(LocalTopologyManagerImpl.java:414)
      	at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106)
      	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235)
      	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:143)
      	at org.infinispan@14.0.6.Final//org.infinispan.topology.LocalTopologyManagerImpl.doHandleTopologyUpdate(LocalTopologyManagerImpl.java:403)
      	at org.infinispan@14.0.6.Final//org.infinispan.topology.LocalTopologyManagerImpl.lambda$handleTopologyUpdate$8(LocalTopologyManagerImpl.java:327)
      	at org.infinispan@14.0.6.Final//org.infinispan.topology.LocalTopologyManagerImpl.lambda$orderOnCache$24(LocalTopologyManagerImpl.java:770)
      	at org.infinispan@14.0.6.Final//org.infinispan.util.concurrent.ActionSequencer.safeNonBlockingCall(ActionSequencer.java:58)
      	at org.infinispan@14.0.6.Final//org.infinispan.util.concurrent.ActionSequencer$SequenceEntry.run(ActionSequencer.java:227)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at org.wildfly.clustering.context@28.0.0.Beta1-SNAPSHOT//org.wildfly.clustering.context.ContextReferenceExecutor.execute(ContextReferenceExecutor.java:49)
      	at org.wildfly.clustering.context@28.0.0.Beta1-SNAPSHOT//org.wildfly.clustering.context.ContextualExecutor$1.run(ContextualExecutor.java:78)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: org.infinispan.commons.CacheListenerException: ISPN000280: Caught exception [java.lang.NoClassDefFoundError] while invoking method [public java.util.concurrent.CompletionStage org.jboss.as.test.clustering.TopologyChangeListenerBean.topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent)] on listener instance: org.jboss.as.test.clustering.TopologyChangeListenerBean@47160064
      	at org.infinispan@14.0.6.Final//org.infinispan.notifications.impl.AbstractListenerImpl$ListenerInvocationImpl.lambda$invoke$1(AbstractListenerImpl.java:459)
      	at org.infinispan@14.0.6.Final//org.infinispan.notifications.impl.AbstractListenerImpl$ListenerInvocationImpl.invoke(AbstractListenerImpl.java:479)
      	at org.infinispan@14.0.6.Final//org.infinispan.notifications.cachelistener.CacheNotifierImpl$BaseCacheEntryListenerInvocation.doRealInvocation(CacheNotifierImpl.java:1793)
      	at org.infinispan@14.0.6.Final//org.infinispan.notifications.cachelistener.CacheNotifierImpl$BaseCacheEntryListenerInvocation.invoke(CacheNotifierImpl.java:1740)
      	at org.infinispan@14.0.6.Final//org.infinispan.notifications.cachelistener.CacheNotifierImpl$BaseCacheEntryListenerInvocation.invoke(CacheNotifierImpl.java:1691)
      	at org.infinispan@14.0.6.Final//org.infinispan.notifications.cachelistener.CacheNotifierImpl.doNotifyTopologyChanged(CacheNotifierImpl.java:867)
      	at org.infinispan@14.0.6.Final//org.infinispan.notifications.cachelistener.CacheNotifierImpl.notifyTopologyChanged(CacheNotifierImpl.java:849)
      	at org.infinispan@14.0.6.Final//org.infinispan.statetransfer.StateTransferManagerImpl.lambda$doTopologyUpdate$1(StateTransferManagerImpl.java:186)
      	at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106)
      	... 18 more
      Caused by: java.lang.NoClassDefFoundError: org/infinispan/commons/util/concurrent/CompletableFutures
      	at deployment.SingletonPartitionTestCase.war//org.jboss.as.test.clustering.TopologyChangeListenerBean.topologyChanged(TopologyChangeListenerBean.java:114)
      	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@14.0.6.Final//org.infinispan.notifications.impl.AbstractListenerImpl$ListenerInvocationImpl.lambda$invoke$1(AbstractListenerImpl.java:453)
      	... 26 more
      Caused by: java.lang.ClassNotFoundException: org.infinispan.commons.util.concurrent.CompletableFutures from [Module "deployment.SingletonPartitionTestCase.war" from Service Module Loader]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:200)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      	... 32 more
      

            rhn-engineering-rhusar Radoslav Husar
            rhn-engineering-rhusar Radoslav Husar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: