[infinispan-dev] problems configuring distributed mode

Anders infinispan at mailinator.com
Sat May 21 16:22:01 EDT 2011


Hi,

Im getting the following error whenever i try to write to inifnispan 
over memcached:

     java.lang.IllegalStateException: If clustered, Version prefix 
cannot be 0. Rank calculator probably not in use.

This is my relevant inifnispan-config.xml file:

<clustering mode="distribution">
<async/>
<hash numOwners="1"/>
</clustering>

im using jgroups udp transport, but ive tried ec2 and tcp...all with the 
same result.

ive also tried different clustering modes. the only one that works is 
local...but that kind of deceives the purpose of what we need to do.

Ive downloaded the src code and found a ClusterId generator class and 
attached it (programatically) like so:

         cacheManager.addListener(new 
ClusterIdGenerator().getRankCalculatorListener());
         cacheManager.start();


any help figuring out how to get clustered mode running would be much 
appreciated.

-A





More information about the infinispan-dev mailing list