[infinispan-issues] [JBoss JIRA] (ISPN-11918) org.infinispan.jcache.embedded.JCacheManager#create always throw CacheConfigurationException if create cache with template

Sammy Chu (Jira) issues at jboss.org
Wed May 27 04:33:20 EDT 2020


Sammy Chu created ISPN-11918:
--------------------------------

             Summary: org.infinispan.jcache.embedded.JCacheManager#create always throw CacheConfigurationException if create cache with template
                 Key: ISPN-11918
                 URL: https://issues.redhat.com/browse/ISPN-11918
             Project: Infinispan
          Issue Type: Bug
          Components: JCache
    Affects Versions: 9.4.18.Final
            Reporter: Sammy Chu


Our project upgraded from Infinispan 8.2.4.Final to 9.4.18.Final and got `org.infinispan.commons.CacheConfigurationException: ISPN000453: Attempt to define configuration for cache MY_CACHE_NAME which already exists` .

We are defining the cache template and then programmatically define the JCache with jcache configuration. From the source code of 
[JCacheManager|https://github.com/infinispan/infinispan/blob/master/jcache/embedded/src/main/java/org/infinispan/jcache/embedded/JCacheManager.java#L170], it is reading the `baseConfig` as the template and then merge it with the jcache configuration, which is working in 8.2.4.Final. Now upgraded to 9.4.18.Final, it is not working due to  change of ISPN-7540.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list