3 Replies Latest reply on Jun 1, 2011 1:25 PM by Galder Zamarreño

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

    Anders Bohersson Newbie

      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.

       

      im getting this error in distributed mode on 4.2.1, 5.0.0.cr2 and 5.0.0.cr3. 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