TreeCache lookup returning null even when the cache is populated.
sxs3 Mar 11, 2011 4:33 PMWe are trying to upgrade to JBoss 6.0.0 GA from JBoss 5.1.0 GA. We have made the changes to move the cache from JBoss cache to Infinispan but we are not able to lookup the entries in the cache.
Here is the xml file:
<?xml version="1.0" encoding="UTF-8"?>
<infinispan xmlns="urn:infinispan:config:4.0">
<global>
<asyncListenerExecutor factory="org.infinispan.executors.DefaultExecutorFactory">
<properties>
<property name="threadNamePrefix" value="AsyncListenerThread"/>
</properties>
</asyncListenerExecutor>
<asyncTransportExecutor factory="org.infinispan.executors.DefaultExecutorFactory">
<properties>
<property name="threadNamePrefix" value="AsyncSerializationThread"/>
</properties>
</asyncTransportExecutor>
<evictionScheduledExecutor factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
<properties>
<property name="threadNamePrefix" value="EvictionThread"/>
</properties>
</evictionScheduledExecutor>
<replicationQueueScheduledExecutor factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
<properties>
<property name="threadNamePrefix" value="ReplicationQueueThread"/>
</properties>
</replicationQueueScheduledExecutor>
<globalJmxStatistics enabled="true" jmxDomain="akc.cache" mBeanServerLookup="org.infinispan.jmx.JBossMBeanServerLookup" cacheManagerName="AkcDogCacheManager"/>
<transport transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport" clusterName="AkcDogCache-Cluster" distributedSyncTimeout="20000">
<properties>
<property name="configurationFile" value="jgroups/akcdogcacheconfig.xml"/>
</properties>
</transport>
</global>
<namedCache name="eventcache">
<locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000"/>
<transaction transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup"/>
<clustering mode="replication">
<sync replTimeout="20000"/>
</clustering>
<eviction strategy="LRU" wakeUpInterval="600000" maxEntries="10000"/>
<expiration lifespan="2000000" maxIdle="1000000" />
<deadlockDetection enabled="true" spinDuration="15000"/>
<invocationBatching enabled="true"/>
<jmxStatistics enabled="true"/>
</namedCache>
and the code to create the cache and subsequently TreeCache:
EmbeddedCacheManager manager = null;
Cache defaultCache = null;
TreeCache cache = null;
try {
manager = new DefaultCacheManager( filename );
defaultCache = manager.getCache( id );
} catch( IOException e ){
s_logger.error( "Could not create manager and/or default cache using file=" + now( filename ) + " and id=" + now( id ), e );
}
cache = new TreeCacheFactory().createTreeCache( defaultCache );
cd = new CacheDetail( manager, defaultCache, cache );
Attached the debug output doing a lookup on the treecache. Please advise.
-
debug.log.zip 1.6 KB