-
1. Re: java.lang.IllegalStateException: If clustered, Version prefix cannot be 0. Rank calculator probably not in use.
galder.zamarreno May 27, 2011 11:53 AM (in response to andersb)1 of 1 people found this helpfulHmmmm, that's weird.
How are you starting the memcached server? Programmatically? Via the given startup script (http://community.jboss.org/docs/DOC-14644)?
-
2. Re: java.lang.IllegalStateException: If clustered, Version prefix cannot be 0. Rank calculator probably not in use.
andersb May 31, 2011 1:29 AM (in response to galder.zamarreno)It's started programatically.
This is how the code looks like:
cacheManager = new DefaultCacheManager("infinispan-config.xml"); cacheManager.addListener(new ClusterIdGenerator().getRankCalculatorListener()); cacheManager.getGlobalConfiguration().fluent().serialization().addAdvancedExternalizer(ExternalizerIds.MEMCACHED_CACHE_VALUE(), new MemcachedValue.Externalizer()); cacheManager.start(); cache = cacheManager.getCache(); cache.start(); memcacheServer = new MemcachedServer(); Properties properties = new Properties(); properties.setProperty("infinispan.server.port","11311"); memcacheServer.start(properties, cacheManager); Ive tried with 2 different clients in 2 different languages (spymemchaced (java) and memcacheclient (ruby)), both with the same result
-
3. Re: java.lang.IllegalStateException: If clustered, Version prefix cannot be 0. Rank calculator probably not in use.
galder.zamarreno Jun 1, 2011 1:25 PM (in response to andersb)1 of 1 people found this helpfulYou shouldn't need to instantiate the ClusterIdGenerator cos the MemcachedServer already does it when you call start, and already associates it with the CacheManager.
How many nodes are you running here? If you're running two or more, maybe the problem is that the cluster is not forming in the first place because the version is only updated upon a view change.
Check the logs to see if the cluster is forming.
What Infinispan version are you using?