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

Duplicate MBean / nstanceAlreadyExistsException: org.infinispan:type=HotRodClient

XMLWordPrintable

    • Hide
      1. Run with the default configuration that has JMX enabled
      2. Create a cache via 
        remoteCacheManager.administration().getOrCreateCache()
      3. Remove the cache via 
        remoteCacheManager.administration().removeCache()
      4. In a another JUnit run (or same), create the same cache again with remoteCacheManager.administration().getOrCreateCache() -> exception thrown
      Show
      Run with the default configuration that has JMX enabled Create a cache via  remoteCacheManager.administration().getOrCreateCache() Remove the cache via  remoteCacheManager.administration().removeCache() In a another JUnit run (or same), create the same cache again with remoteCacheManager.administration().getOrCreateCache() -> exception thrown

      When removing a cache via 

      remoteCacheManager.administration().removeCache(cache) 

      the MBean for the HotRodClient is not removed.

      Creating the same cache again will lead to an exception: 

      org.infinispan.client.hotrod.exceptions.HotRodClientException:: ISPN004091: MBean registration failed
      ...
      Caused by: javax.management.InstanceAlreadyExistsException: org.infinispan:type=HotRodClient,name=Default,cache=sessions
      

              aschwart@redhat.com Alexander Schwartz
              aschwart@redhat.com Alexander Schwartz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: