[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
Wed Feb 17 06:55:00 EST 2016


    [ https://issues.jboss.org/browse/WFLY-6106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164189#comment-13164189 ] 

Serg Jakean19019 commented on WFLY-6106:
----------------------------------------

thanks. 
such answer oft - could You try-reproduce in new version is no used. earlier version 9.01.Final was adviced. 


> 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
>         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