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

Java SDK Problems

2 replies [Last post]
  • Login or register to post comments
Mon, 08/01/2011 - 09:29
amlaugen
Offline
Joined: 06/23/2011
Groups: None

I've run into a few problems, specifically with the query class.

This is the code I'm using for reference:

Query q = new Query();
		q.setLimit(10);
		q.setSkip(0);
		q.setGroup(true);
		//q.setGroup(true, 5);
		//q.setGroup(true,4);
		//q.setStale(Stale.OK);

If I call the setGroup(boolean), it works fine. However, if I am to call the setGroup(boolean, int), it sends the boolean to couchdb in quotes which errors out. Also, setStale is sending the stale value to couch in quotes, which is also causing an error.

If you want more details I can provide them, but it seems pretty simple. The boolean from setGroup with two parameters needs the quotes removed, and the stale type also needs the quotes removed. It may apply for others as well, but these are the few I've tried in initial testing.

Thanks!

Top
  • Login or register to post comments
Tue, 08/02/2011 - 10:19
mikew
Offline
Joined: 03/14/2011
Groups:

Thanks for the feedback. You are correct about these issue and I have filed a bug for this issue (http://www.couchbase.org/issues/browse/SPY-17). I will fix it later today and will notify you in this thread when the code has made it through review.

Top
  • Login or register to post comments
Fri, 08/05/2011 - 18:25
mikew
Offline
Joined: 03/14/2011
Groups:

The fix for this issue has just been merged into our latest code base. You can check it out from github at http://www.github.com/dustin/java-memcached-client or if you would like I can build a jar for you and email it to you. If you would like it emailed to you then you can either post you email address on this thread or email info@couchbase.com asking for the latest java jar. Also add a line that says to forward the email to Mike Wiederhold.

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