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

Infinispan is registering Query interceptor when the client cache creation is invalid

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 12.0.0.Dev07
    • Remote Querying
    • None
    • Hide

      Apply the attached path and run the example.

      Show
      Apply the attached path and run the example.
    • Undefined

    Description

      Build the Infinispan and run server.sh

      Run the client. It will fail because there is a missing configuration.

      Exception in thread "main" org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for messageId=10 returned server error (status=0x85): org.infinispan.commons.CacheConfigurationException: ISPN028021: The configured indexed-entity type 'black_friday.User' must be indexed. Please annotate it with @Indexed or remove it from the configuration.
      	at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:335)
      

      Check the server console ( or the server log )

      the server is registering 
      11:46:34,952 INFO  (blocking-thread--p3-t1) [org.infinispan.CONTAINER] ISPN014003: Registering Query interceptor for cache user
      

      Stop the server with ctrl + c

      11:48:44,318 WARN  (Thread-0) [org.infinispan.CONTAINER] ISPN000189: While stopping a cache or cache manager, one of its components failed to stop java.util.concurrent.CompletionException: org.infinispan.commons.CacheConfigurationException: ISPN028021: The configured indexed-entity type 'black_friday.User' must be indexed. Please annotate it with @Indexed or remove it from the configuration.
              at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:412)
              at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2044)
              at org.infinispan.manager.DefaultCacheManager.terminate(DefaultCacheManager.java:780)
              at org.infinispan.manager.DefaultCacheManager.stopCaches(DefaultCacheManager.java:841)
              at org.infinispan.manager.DefaultCacheManager.internalStop(DefaultCacheManager.java:817)
              at org.infinispan.manager.DefaultCacheManager.stop(DefaultCacheManager.java:793)
              at org.infinispan.server.SecurityActions.lambda$stopCacheManager$2(SecurityActions.java:75)
              at org.infinispan.security.Security.doPrivileged(Security.java:45)
              at org.infinispan.server.SecurityActions.doPrivileged(SecurityActions.java:38)
              at org.infinispan.server.SecurityActions.stopCacheManager(SecurityActions.java:81)
              at java.base/java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:608)
              at org.infinispan.server.Server.localShutdown(Server.java:484)
              at org.infinispan.server.Server.lambda$run$1(Server.java:410)
              at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
              at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
              at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
              at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)
              at org.infinispan.server.DefaultExitHandler.exit(DefaultExitHandler.java:13)
              at org.infinispan.server.ShutdownHook.run(ShutdownHook.java:16)
      Caused by: org.infinispan.commons.Cac^CheManager.internalGetCache(DefaultCacheManager.java:532)
              at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:510)
              at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:26)
              at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:14)
      

      Attachments

        Activity

          People

            gfernand@redhat.com Gustavo Fernandes (Inactive)
            dlovison@redhat.com Diego Lovison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: