-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
9.0.1.Final
-
None
Exception is thrown during access and setting of cache in Infinispan. The error occurs not immediately.
Konfiguration des CacheContainer:
<cache-container name="customCache" default-cache="cachedb">
<transport lock-timeout="60000"/>
<replicated-cache name="cachedb" mode="SYNC">
<locking isolation="READ_COMMITTED" striping="false" acquire-timeout="60000" concurrency-level="1000"/>
<transaction mode="BATCH"/>
<expiration lifespan="15000"/>
</replicated-cache>
</cache-container>
Access of cache from Java:
@Resource(lookup = "java:jboss/infinispan/container/customCache")
private CacheContainer cc;
private Map<String, Object> cache;
public void setInInfiniSpan(String name, Object object) {
Cache<Object,Object> cache = cc.getCache();
TransactionManager tm = cache.getAdvancedCache().getTransactionManager();
try
catch (SecurityException e)
{ // TODO Auto-generated catch block logger.error("SecurityException: "+e.getMessage(), e); }catch (IllegalStateException e)
{ // TODO Auto-generated catch block logger.error("IllegalStateException: "+e.getMessage(), e); }
}
Logs: