[infinispan-issues] [JBoss JIRA] (ISPN-6201) Exception in JCache interface when xml file contains <local-cache-configuration> tag

Dan Berindei (Jira) issues at jboss.org
Fri Mar 13 06:33:05 EDT 2020


     [ https://issues.redhat.com/browse/ISPN-6201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Berindei closed ISPN-6201.
------------------------------
    Fix Version/s: 8.2.0.Final
       Resolution: Done


Fixed with ISPN-6259

> Exception in JCache interface when xml file contains <local-cache-configuration> tag
> ------------------------------------------------------------------------------------
>
>                 Key: ISPN-6201
>                 URL: https://issues.redhat.com/browse/ISPN-6201
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Configuration, JCache
>    Affects Versions: 8.1.1.Final
>            Reporter: Sergey Sigelman
>            Assignee: Galder ZamarreƱo
>            Priority: Major
>             Fix For: 8.2.0.Final
>
>
> Configure infinispan XML with a <local-cache-configuration> tag.
> {code:xml}
> <cache-container default-cache="">
>     <local-cache-configuration name="defaultCacheConfig"/>
>     <local-cache name="testCache1" />
>     <local-cache name="testCache2" />
>   </cache-container>
> {code}
> Then load the configuration using JCache:
> {code:java}
> CacheManager cacheManager = Caching.getCachingProvider().getCacheManager(
>       URI.create("infinispan.xml"), getClass().getClassLoader());
> {code}
> An Exception is thrown:
> {code:java}
> org.infinispan.commons.CacheConfigurationException: ISPN000373: Attempted to start a cache using configuration template 'defaultCacheConfig'
> 	at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:602)
> 	at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:572)
> 	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:440)
> 	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:426)
> 	at org.infinispan.jcache.embedded.JCacheManager.registerPredefinedCaches(JCacheManager.java:88)
> 	at org.infinispan.jcache.embedded.JCacheManager.<init>(JCacheManager.java:71)
> 	at org.infinispan.jcache.embedded.JCachingProvider.createCacheManager(JCachingProvider.java:46)
> 	at org.infinispan.jcache.AbstractJCachingProvider.getCacheManager(AbstractJCachingProvider.java:67)
> 	at org.infinispan.jcache.AbstractJCachingProvider.getCacheManager(AbstractJCachingProvider.java:80)
> ...
> {code}
> This bug is caused by org.infinispan.jcache.embedded.JCacheManager#registerPredefinedCaches not skipping over confuguration XML elements and treating them as real caches.



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



More information about the infinispan-issues mailing list