Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

haol's picture
Asked 1 week 20 hours ago
Latest activity 2 days 21 hours ago

JavaSDK CouchbaseClient.incr throws 'Non-numeric server-side value for inc or decr' error

I'm using getting an error 'Non-numeric server-side value for inc or decr' while incr a counter using Java SDK 1.4.2. Here's the test code:

couchbaseClient.set("counterTest", 100);
couchbaseClient.incr("counterTest", 1, 0);

call stack:
Thread [Memcached IO...

Somu.Adireddy's picture
Asked 1 week 5 days ago

NoSuchMethodError thrown by ViewConnection, when i am trying to create a Couchbase Connection

I am using couchbase-client-1.4.1.jar to write the documents into Couchbase Server

Application thrown the following exception when i am trying to create a couchbase connection running through Websphere 8.0.0.3 application server. When i run through standalone (with main), it works fine....

yacovk's picture
Asked 2 weeks 3 days ago

Append large string to document

I am using java API for couchbase .
I am concatinating string using append method .

It seems that the append operation succeded , I got 'true' from the OperationFuture result of the append operation how ever when i am retrieving the document again it seems that the last appended...

haroonlatif's picture
Asked 3 weeks 1 day ago
Latest activity 2 weeks 3 days ago

Unable to connect to CB server from virtual linux machine

CB Server: 2.5.0 enterprise edition (build-1059)
CB Java SDK: 1.2.3
i have checked on host machine following ports are open.
8091, 8092, 11211, 11210, 11209

I am developing hadoop map reduce job and trying to insert from reducer. currently i am just trying to insert 2...

sarbogast's picture
Asked 3 weeks 1 day ago
Latest activity 3 weeks 1 day ago

Is it possible to track document changes on Sync gateway?

I would like to be able to track document changes on sync gateway in order to trigger some actions like sending an email or a push notification when documents are changed in certain ways. Is it possible to do that in Java using Ektorp or some other library or am I doomed to track the raw stream...

craig's picture
Asked 3 weeks 1 day ago
Latest activity 4 hours 43 min ago

Using "auth-less" bucket, but still see SASL related messages including AuthFailure

I'm using a bucket configured w/ a dedicated port. According to the Couchbase Server UI, this type of bucket is auth-less. However, when I turn up the log level, connect and try to execute some simple operations (GET for instance), I see SASL related log messages. Sometimes I even get...

adelavina's picture
Asked 3 weeks 2 days ago

Problem with compression client side

Hi,
I have the following problem:

I'm developping a java app that iterates over a view and evaluates every key to perform some operations with it.
Everything went smooth until the first production run where I got the follwoing:

2014-08-25 17:57:23.732 WARN net.spy....

draiwn's picture
Asked 1 month 5 days ago
Latest activity 3 weeks 1 day ago

[Solved] Jar conflict with Couchbase inside Spark Streaming job

Hi,

Couchbase Java SDK 1.4.4 uses netty 3.5.5 as dependency but Spark uses Akka Actor which uses netty with a different version.
Does anyone have an idea to solve this jar conflict issue?

Here below the stack strace inside Spark:

...
atomsymbol's picture
Asked 1 month 6 days ago
Latest activity 1 month 23 hours ago

Java - Binary keys

Hi,

keys in my database are 8-byte binary numbers. I used Couchbase C SDK to insert key-value pairs into the database. Now I would like to retrieve the inserted values by using the Java SDK, but the Java SDK only allows keys of type String. How do I create String keys from 8-byte binary...

sunchen's picture
Asked 1 month 1 week ago

Exception when using scala to call java sdk,and run with Spark

I write some very simple Scala codes followed,these codes make a Spark job,and write something into Couchbase. But when I run this job on Spark,I got an exception.I am wondeing how this happend.
Something must be pointed, if I don't use Spark , the code can work.

CODE LIST:...

Pages