Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

[Java 1.0.3] getting java.lang.NoSuchMethodError: com.couchbase.client.CouchbaseClient.asyncGetBulk(Ljava/util/Collection;)Ljava

4 replies [Last post]
  • Login or register to post comments
Fri, 11/23/2012 - 04:28
cmkpl
Offline
Joined: 11/23/2012
Groups: None

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?

Top
  • Login or register to post comments
Sat, 11/24/2012 - 00:46
daschl
Offline
Joined: 05/19/2012
Groups: None

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.

Top
  • Login or register to post comments
Mon, 11/26/2012 - 01:34
cmkpl
Offline
Joined: 11/23/2012
Groups: None

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);

Top
  • Login or register to post comments
Mon, 11/26/2012 - 02:04
cmkpl
Offline
Joined: 11/23/2012
Groups: None

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

Top
  • Login or register to post comments
Mon, 11/26/2012 - 02:19
cmkpl
Offline
Joined: 11/23/2012
Groups: None

cmkpl wrote:
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);

Sorry for posting the corrupted code:

Future<Map<String,Object>> f = client.asyncGetBulk(key);

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker