[jboss-jira] [JBoss JIRA] (WFLY-6106) Exception is thrown during access, setting of cache in Infinispan in cluster with two nodes

Serg Jakean19019 (JIRA) issues at jboss.org
Mon Feb 1 08:53:00 EST 2016


     [ https://issues.jboss.org/browse/WFLY-6106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Serg Jakean19019 updated WFLY-6106:
-----------------------------------
    Attachment: logErrorsInfiniSpan.txt


> Exception is thrown during access, setting of cache in Infinispan in cluster with two nodes
> -------------------------------------------------------------------------------------------
>
>                 Key: WFLY-6106
>                 URL: https://issues.jboss.org/browse/WFLY-6106
>             Project: WildFly
>          Issue Type: Bug
>          Components: Clustering
>    Affects Versions: 9.0.1.Final
>            Reporter: Serg Jakean19019
>            Assignee: Paul Ferraro
>            Priority: Optional
>         Attachments: logErrorsInfiniSpan.txt
>
>
> 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 {
> 		cache.startBatch();
> 		cache.put(name, object);
> 		cache.endBatch(true);
> 	} 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:



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list