[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
RMI Replication Error "Exception on flushing of replication queue: null. Continuing..."  XML
Forum Index -> Ehcache
Author Message
ldavis

neo

Joined: 03/23/2012 09:40:58
Messages: 2
Offline

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
ldavis

neo

Joined: 03/23/2012 09:40:58
Messages: 2
Offline

Turns out my "cacheManagerPeerProviderFactory" was not setup correctly and by not setup correctly... I mean commented out.
This is no longer an issue.
rajoshi

seraphim

Joined: 07/04/2011 04:36:10
Messages: 1491
Offline

Hi,

Issue is resolved , closing the topic.

Rakesh Joshi
Senior Consultant
Terracotta.
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team