[Java 1.0.3] getting java.lang.NoSuchMethodError: com.couchbase.client.CouchbaseClient.asyncGetBulk(Ljava/util/Collection;)Ljava
The problem occurs only when asyncGetBulk is called. Would you tell what the minimum version of this function call? Or any hints for the reason?
Thanks or your help. But I have checked that the versions are correct on the server. Does it matter if I put the library in the WEB-INF/lib instead of server shared lib?
For the collection, this should be correct, right?
Future> f = client.asyncGetBulk(Set key);
From the log by -verbose:class , I can see the file is correctly loaded, but it seems that it does not work.
[Loaded net.spy.memcached.ops.VBucketAware from file:/.../apache-tomcat-5.5.30/webapps/.../WEB-INF/lib/spymemcached-2.8.2.jar]
[Loaded net.spy.memcached.protocol.binary.SingleKeyOperationImpl from file:/.../apache-tomcat-5.5.30/webapps/.../WEB-INF/lib/spymemcached-2.8.2.jar]
[Loaded net.spy.memcached.protocol.binary.GetOperationImpl from file:/.../apache-tomcat-5.5.30/webapps/.../WEB-INF/lib/spymemcached-2.8.2.jar]
Exception in thread "Thread-2139" java.lang.NoSuchMethodError: com.couchbase.client.CouchbaseClient.asyncGetBulk(Ljava/util/Collection;)Ljava/util/concurrent/Future
For the collection, this should be correct, right?
Future> f = client.asyncGetBulk(Set key);
Sorry for posting the corrupted code:
Future<Map<String,Object>> f = client.asyncGetBulk(key);
1.0.3 depends on spymemcache 2.8.2 which contains the asyncGetBulk methods. Can you make sure that all your dependencies are correctly loaded? Also, make sure to use a Collection.