Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

witbrock's picture
Asked 1 month 1 week ago
Latest activity 1 month 1 week ago

Maven Dependency with Netbeans 8 doesn't construct correct run classpath

I'm trying the HelloWorld file, and it fails to run
because
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/jettison/json/JSONException

Looking at the IDE's classpath for the HelloWorld class and comparing it with the explicit path in the tutorial, I...

isanfulia's picture
Asked 1 month 2 weeks ago

Querying Views using a POST request instead of GET (key limit)

Hi all,

I was trying to query view with many keys(around 20K) using the Java api but this results in exception. The reason I think is because the query is fired as a GET request which has the limit on the number of characters in the URL. Is there a way to do a POST request on view using...

sivailango.s's picture
Asked 1 month 2 weeks ago

Sort by particular field rather than key

Hi,

- I have the documents which has 'order' field. I have to get all records sort by order field.
- User id 3 has more document like below, each has 'order'. Now i want to get all documents by the userId with sort by order. Now i could get all documents of userId is 3....

avinash786's picture
Asked 1 month 3 weeks ago

Java sdk apis

I need to get all the buckets through java sdk but there is no way to get it.
I know there are ways to get all the buckets through rest APIs.
I just wanted to know , is there any specific reason for not providing the apis for it?
Same applies to get the design document as well...

avinash786's picture
Asked 1 month 3 weeks ago
Latest activity 1 month 3 weeks ago

Couchbase java sdk 2.0.0

Hi Folks,

What is the tentative date to release/beta java sdk 2.0.0. I am eagerly waiting for it.

Regards,
Avinash

taraka's picture
Asked 1 month 3 weeks ago
Latest activity 1 month 3 weeks ago

com.couchbase.client.vbucket.BucketUpdateResponseHandler exceptionCaught: Connection reset by peer

Hello,

I have a "connection reset" problem after connecting to couchbase through Java Couchbase client.

Our production configuration :
Tomcat server connecting to couchbase cluster (2 nodes) over firewall. All are hosted in rackspace.

First time it connects fine !!...

sumit_jain's picture
Asked 1 month 3 weeks ago
Latest activity 1 month 3 weeks ago

Update Design Document Java SDK

There are methods to create, get and delete design documents, but there is no update. How can I add new views to an existing design document.

array's picture
Asked 2 months 2 days ago
Latest activity 2 months 1 day ago

Bulk Upload using Java API In couchbase server

We have requirement to load 240K data using Java API during server startup. If we use set method then I am facing data loss as async process.Total records it shows 15K only. If I put one milli sec sleep after each insert then it working fine but take huge amount of time. If i use set(key,value)....

Hao Liu's picture
Asked 2 months 3 days ago
Latest activity 1 month 3 weeks ago

Does CouchbaseClient.Query take a snapshot of the data?

Say I have a view with a reduce function that gives count of documents, and I get a ViewResponse by calling client.Query() with includeDocs set to true. Then I iterate the ViewResponse and use the count got from the view. Can I iterate the same ViewResponse object again sometime later to stamp a...

skyblue789's picture
Asked 2 months 4 days ago
Latest activity 3 weeks 23 hours ago

Query based on a variable

I want to query couchbase on value of particular field. So, We have json documents called User in couchbase, and we want to get all User objects having name like "Smith". The value "Smith" is a variable and injected by the user at run time. How can I send this variable to couchbase Map function...

Pages