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

Cache requested but no configuration exists should not happen for hardcoded caches

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 9.4.12.Final, 10.0.0.Final
    • Configuration

      A cache defined in the XML should never result in an exception like this.

      There seems to be some race condition between cache set up on startup and a remote client requesting it:

      �[0m�[31m10:55:21,929 ERROR [org.infinispan.stats.impl.ClusterCacheStatsImpl] (HotRod-hotrod-internal-ServerIO-4-17) Could not execute cluster wide cache stats operation : java.util.concurrent.CompletionException: org.infinispan.commons.CacheException: org.infinispan.commons.CacheConfigurationException: ISPN000436: Cache 'players' has been requested, but no cache configuration exists with that name and no default cache has been set for this container
      	at java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:375) [rt.jar:1.8.0_191]
      	at java.util.concurrent.CompletableFuture.join(CompletableFuture.java:1934) [rt.jar:1.8.0_191]
      	at org.infinispan.stats.impl.ClusterCacheStatsImpl.updateStats(ClusterCacheStatsImpl.java:116) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.stats.impl.AbstractClusterStats.fetchClusterWideStatsIfNeeded(AbstractClusterStats.java:114) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.stats.impl.AbstractClusterStats.getStat(AbstractClusterStats.java:207) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.stats.impl.AbstractClusterStats.getStatAsInt(AbstractClusterStats.java:202) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.stats.impl.ClusterCacheStatsImpl.getNumberOfEntries(ClusterCacheStatsImpl.java:251) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.stats.impl.ClusterCacheStatsImpl.getCurrentNumberOfEntries(ClusterCacheStatsImpl.java:314) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.server.hotrod.Encoder2x.statsResponse(Encoder2x.java:191) [infinispan-server-hotrod-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.server.hotrod.CacheRequestProcessor.stats(CacheRequestProcessor.java:64) [infinispan-server-hotrod-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.server.hotrod.HotRodDecoder.switch1(HotRodDecoder.java:1063) [infinispan-server-hotrod-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.server.hotrod.HotRodDecoder.switch1_0(HotRodDecoder.java:154) [infinispan-server-hotrod-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.server.hotrod.HotRodDecoder.decode(HotRodDecoder.java:143) [infinispan-server-hotrod-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489) [netty-codec-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428) [netty-codec-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) [netty-codec-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86) [netty-transport-4.1.28.Final.jar:4.1.28.Final]
      	at org.infinispan.server.core.transport.StatsChannelHandler.channelRead(StatsChannelHandler.java:26) [infinispan-server-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434) [netty-transport-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965) [netty-transport-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:808) [netty-transport-native-epoll-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:417) [netty-transport-native-epoll-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:317) [netty-transport-native-epoll-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) [netty-common-4.1.28.Final.jar:4.1.28.Final]
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.28.Final.jar:4.1.28.Final]
      	at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_191]
      Caused by: org.infinispan.commons.CacheException: org.infinispan.commons.CacheConfigurationException: ISPN000436: Cache 'players' has been requested, but no cache configuration exists with that name and no default cache has been set for this container
      	at org.infinispan.stats.impl.ClusterCacheStatsImpl.lambda$updateStats$0(ClusterCacheStatsImpl.java:105) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.manager.impl.AllClusterExecutor.lambda$submitConsumer$6(AllClusterExecutor.java:193) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.manager.impl.AbstractClusterExecutor.consumeResponse(AbstractClusterExecutor.java:64) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.manager.impl.AllClusterExecutor.lambda$submitConsumer$7(AllClusterExecutor.java:192) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) [rt.jar:1.8.0_191]
      	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) [rt.jar:1.8.0_191]
      	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) [rt.jar:1.8.0_191]
      	at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962) [rt.jar:1.8.0_191]
      	at org.infinispan.remoting.transport.AbstractRequest.complete(AbstractRequest.java:67) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.remoting.transport.impl.SingleTargetRequest.receiveResponse(SingleTargetRequest.java:57) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.remoting.transport.impl.SingleTargetRequest.onResponse(SingleTargetRequest.java:35) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.remoting.transport.impl.RequestRepository.addResponse(RequestRepository.java:52) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processResponse(JGroupsTransport.java:1372) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processMessage(JGroupsTransport.java:1275) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.access$300(JGroupsTransport.java:126) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport$ChannelCallbacks.up(JGroupsTransport.java:1420) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.jgroups.JChannel.up(JChannel.java:816) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.fork.ForkProtocolStack.up(ForkProtocolStack.java:133) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.stack.Protocol.up(Protocol.java:340) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.FORK.up(FORK.java:141) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.FRAG3.up(FRAG3.java:171) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.FlowControl.up(FlowControl.java:339) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.pbcast.GMS.up(GMS.java:872) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:240) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.UNICAST3.deliverMessage(UNICAST3.java:1008) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.UNICAST3.handleDataReceived(UNICAST3.java:734) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:389) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:590) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:131) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:203) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:253) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.MERGE3.up(MERGE3.java:280) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.Discovery.up(Discovery.java:295) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.protocols.TP.passMessageUp(TP.java:1249) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at org.jgroups.util.SubmitToThreadPool$SingleMessageHandler.run(SubmitToThreadPool.java:87) [jgroups-4.0.18.Final.jar:4.0.18.Final]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_191]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_191]
      	... 1 more
      Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000436: Cache 'players' has been requested, but no cache configuration exists with that name and no default cache has been set for this container
      	at org.infinispan.configuration.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:612) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:601) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.manager.DefaultCacheManager.internalGetCache(DefaultCacheManager.java:484) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:468) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:454) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.stats.impl.ClusterCacheStatsImpl$DistributedCacheStatsCallable.apply(ClusterCacheStatsImpl.java:478) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.stats.impl.ClusterCacheStatsImpl$DistributedCacheStatsCallable.apply(ClusterCacheStatsImpl.java:465) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.manager.impl.ReplicableCommandManagerFunction.invokeAsync(ReplicableCommandManagerFunction.java:36) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.remoting.inboundhandler.GlobalInboundInvocationHandler.invokeReplicableCommand(GlobalInboundInvocationHandler.java:175) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.remoting.inboundhandler.GlobalInboundInvocationHandler.runReplicableCommand(GlobalInboundInvocationHandler.java:156) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.remoting.inboundhandler.GlobalInboundInvocationHandler.lambda$handleReplicableCommand$1(GlobalInboundInvocationHandler.java:150) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	at org.infinispan.util.concurrent.BlockingTaskAwareExecutorServiceImpl$RunnableWrapper.run(BlockingTaskAwareExecutorServiceImpl.java:212) [infinispan-core-9.4.13-SNAPSHOT.jar:9.4.13-SNAPSHOT]
      	... 3 more
      

              ttarrant@redhat.com Tristan Tarrant
              rh-ee-galder Galder Zamarreño
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: