1 Reply Latest reply on Feb 21, 2017 6:54 AM by Sebastian Łaskawiec

    What could be the cause of DefaultCacheManager.getCache(CACHENAME, true) returning null?

    Fei Chen Newbie

      In our production, we're calling DefaultCacheManager.getCache(CACHENAME, true)  to get a cache or create if not exists.   But sometimes this method returns null.  Looks like it fails to create cache, but we don't see any exception.  In my opinion, as the parameter "createIfAbsent" is set to true,  this method should never return null.


      The issue happens intermittently, and it's not always reproducable.   Anybody know the possible cause of this method returning null / failing to create cache?