2 Replies Latest reply on Sep 16, 2011 5:04 AM by sannegrinovero

    NamedCacheNotFoundException dynamically creating named cache

    mackerman

      Hi, I have a use case where a coordinator node starts up and loads data into named cache "A".  That all works fine.  Subsequently, a second node starts up, get's "A", and also gets a number of other named caches.  That all appears to work fine also.  However, when I attempt to use one of those other named caches I get the following exception:

       

      org.infinispan.manager.NamedCacheNotFoundException: Cannot process command ClusteredGetCommand{key=NWQ1ZmNhOGIyY2NmYTQ2ZmViOThmOWJlODc4MmM4OTA., flags=null} on node CSFTPHN-DT-38263 Cache: CollectionBacker

      org.infinispan.CacheException: org.infinispan.manager.NamedCacheNotFoundException: Cannot process command ClusteredGetCommand{key=NWQ1ZmNhOGIyY2NmYTQ2ZmViOThmOWJlODc4MmM4OTA., flags=null} on node CSFTPHN-DT-38263 Cache: CollectionBacker

       

      note that CSFTPHN-DT-38263 is the coordinator node that started first. CollectionBacker is one of the named caches created by the second node.  Examining the applications using JConsole shows that the coordinator node only shows the DefaultCacheManager, whereas the second node shows all the named caches.

       

      The named caches are not declared in the infinispan config.xml file, the are all dynamically created with the expectation that they will inherit the default cache settings.

       

      Does anyone have any insight as to why the coordinator node does not 'see' the additional named caches, and how to fix the problem?

       

      thanks, Mitchell