Questions tagged [couchbase-java-client]
9 questions
2
votes
1 answer
openBucket("bucketName", "bucketPassword") Migrating Couchbase java client from SDK 2 to SDK 3
We used Couchbase java-client version 2.7.20 in our project, now as a part of migration of JDK11 -> JDK17, we want to migrate Couchbase client also to the latest version, which is 3.3.2
But I could not figure it out how to deal with openBucket…

Komiljon Aliyev
- 89
- 1
- 7
2
votes
1 answer
How to store null value document in couchbase with java client v3?
I have a java couchbase client v2 that saves documents to database
JsonObject content = ...
JsonDocument newDocument = JsonDocument.create(key, expiration, content);
bucket.upsert(newDocument);
When content is null it saves a 'null-value' document…

Vitalii
- 10,091
- 18
- 83
- 151
1
vote
0 answers
Couchbase view pagination with java client
I am trying to pull records from a view which emits in following way
DefaultViewRow{id=0329a6ac-84cb-403e-9d1d, key=[“X”,“Y”,“0329a6ac-84cb-403e-9d1d”,“31816552700”], value=1}
As we have millions of record, we are trying to implement pagination to…

deewreck
- 113
- 7
1
vote
1 answer
NullPointerException when bucket.defaultCollection() is called Couchbase SDK3
Getting NullPointerException when trying the below code
public class SalesCouchbaseDao {
@Resource
private Cluster cluster;
@Autowired
@Qualifier("salesBucket")
private Bucket bucket;
private final Logger LOG =…

rishabh katyal
- 23
- 3
1
vote
0 answers
Stream N1QL query results in couchbase
My N1QL query returns around 3.5 million documents. Is there a way in which I can stream those documents to the client?
I see there is a kafka connector available in couchbase but seems like it works on DCP wherein all the mutations to the documents…

Maninder Chhabra
- 103
- 2
- 11
1
vote
0 answers
Out of memory error on initializing Couchbase java Client
Facing out of memory error on initializing Couchbase Java Client. The issue happens in the context of running Test cases in the Gradle build. It doesn't seem to be happening when running individual test cases. It seems to be happening on running all…

Vishal
- 31
- 6
1
vote
2 answers
Couchbase APIs, libraries or curl commands to copy data from one cluster to another
I want to copy my data from one cluster of Couchbase to another cluster either via curl commands or using SDK libraries. Could someone please let me know if is there any libraries/APIs available by which I can be do this.
We need to copy the data…

sagar verma
- 404
- 4
- 10
1
vote
1 answer
Getting Documents in CouchBase cluster without DocumentID or N1QL
I am trying to get a single document from a couchbase cluster. However, N1QL is disabled in the cluster.
I wanted to know if there is any way to get the document from the bucket without a N1QL query.
I do not know the document ID's as well.
I simply…

Shraman Das
- 11
- 1
0
votes
1 answer
how to use JsonDocument in Scala with Couchbase Java SDK 3.x?
I am trying to migrate from Couchbase Java-sdk 2.7.23 to 3.x. Can't resolve flatMap with the below in Scala.
Unable to resolve flatMap() while fetching multiple documents from Couchbase
val reactiveCollection =…

S K
- 1
- 1