EHCACHE 2.5.1
Websphere 6.1.0
Java 1.5
Everytime we try and remove something from the cache we receive this failure in an endless loop....
We are only concerned about replicating manually removed items from cache (or update which we don't actually use)
Code:
2012-Mar-23 09:30:15.861 ERROR net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator Exception on flushing of replication queue: null. Continuing...
java.lang.NullPointerException
at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.listRemoteCachePeers(RMISynchronousCacheReplicator.java:335)
at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.flushReplicationQueue(RMIAsynchronousCacheReplicator.java:299)
at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.replicationThreadMain(RMIAsynchronousCacheReplicator.java:119)
at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.access$100(RMIAsynchronousCacheReplicator.java:57)
at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator$ReplicationThread.run(RMIAsynchronousCacheReplicator.java:371)
Our configuration looks like the follow:
Code:
<cache name="UserRolesCache"
maxEntriesLocalHeap="10000"
eternal="false"
overflowToDisk="false"
timeToIdleSeconds="0"
timeToLiveSeconds="600"
memoryStoreEvictionPolicy="LRU"
transactionalMode="off">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicateAsynchronously=true,
replicatePuts=false,
replicateUpdates=true,
replicateUpdatesViaCopy=true,
replicateRemovals=true "/>
<cacheDecoratorFactory class="com.eim.prta.cache.decorator.UserRolesEhcacheDecoratorFactory"/>
Any help is much appreciated. We are losing out minds over here.
Cheers