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?
Unfortunately it seems you're using an old unmaintained Infinispan 7. I advice you to migrate your application to Infinispan 8 or 9.