Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

bdw429s's picture
Asked 9 months 3 weeks ago
Latest activity 9 months 2 weeks ago

SDK throws unhelpful NPE when server is unreachable

When trying to create the client via the Java SDK, let's assume I'm connecting to a single node to make it simple. If that node is offline (say I forgot to start the Windows service on my dev machine :), instead of getting a useful error message that describes the issue in a way that allows me...

kaz's picture
Asked 9 months 3 weeks ago
Latest activity 9 months 3 weeks ago

time to live

Is there a way to make an update to an object in couchbase db which was originally set with some time to live without resetting/refreshing the original time to live?

Thanks.

bdw429s's picture
Asked 9 months 3 weeks ago
Latest activity 9 months 3 weeks ago

New views are immediately available

Following the directions here http://tugdualgrall.blogspot.com/2012/12/couchbase-101-create-views-mapr... I have set up some code that pulls a list of IDs from the cache by creaing a view on the fly...

bdw429s's picture
Asked 9 months 3 weeks ago
Latest activity 8 months 4 weeks ago

Key timeout expiration behavior and stats

Hello, I'm using the Java Client and CouchBase 2.0.1 community edition (build-185)
I'm writing a provider to allow CFML developers to use CouchBase inside a cache aggregator called CacheBox (part of the ColdBox platform). I'm trying to get the correct metadata from the CouchBase keys for...

fitz's picture
Asked 9 months 3 weeks ago

Assert failure in ringbuffer_consumed in C API 2.0.3.

I'm using the C API 2.0.3 in a loaded system talking to single none clustered Couchbase (1.8), we're occasionally getting crashes within the API. like the one below. There can be a few different flavours of the crash but most are similar. Also the application multi threaded and is waiting for...

coder_lol's picture
Asked 9 months 3 weeks ago
Latest activity 9 months 3 weeks ago

get versus getAndTouch

Couchbase 2.0.1 Java client 1.1.7
We have noticed that, at times, getAndTouch, would not return our object even though we can confirm the object exists using the built-in Web Console.
By definition, getAndTouch may not return the object, perhaps, due to, among many reasons,...

coder_lol's picture
Asked 10 months 9 min ago
Latest activity 7 months 1 week ago

Couchbase 2.0.1 Mapping of Plain Java String

Couchbase Enterprise / Community 2.0.1
Java SDK 1.1.5 / 1.1.7
client.add("myKey", "34.0");
The Couchbase console "Documents" view showed the value as "34". This case perplexes me. Why? Compare to another case below...
client.add("myKey", "6S.0");
The Couchbase...

cadams's picture
Asked 10 months 4 days ago
Latest activity 10 months 2 days ago

Return CASValue on initial set Java SDK 1.1.5 (updated question)

Is there a way to do an initial set with CAS and return a CASValue without having to do an add or set followed by a gets()?

Perhaps there is a util to generate an initial long unique cas id?

coder_lol's picture
Asked 10 months 1 week ago
Latest activity 10 months 4 days ago

Couchbase 2.0.1 and Java 1.1.7 rangeStart Bug?

Couchbase Enterprise / Community 2.0.1
Java SDK 1.1.5 / 1.1.7

There seems to be a problem setting rangeStart, rangeEnd using ComplexKey or JSON string directly.

Here is the output from ComplexKey.of(startKey)

ComplexKey.of(startKey)="5yc38"

Here is the debug...

rkb's picture
Asked 1 year 1 day ago
Latest activity 12 months 9 min ago

Query options

In Java there are methods for setting the start and end document ID key (setStartkeyDocID() setEndkeyDocID()) and there are methods to set the key (setKey() and setKeys()) and key range (setRange(), setRangeStart(), setRangeEnd(), etc.). I am unclear as to the difference? When I setup a view the...

Pages