Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

parjog's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 1 week ago

documents not available for Views immediately after insert

I insert documents into the buckets and on running views immediately after insertion, I get a RuntimeException: Timed out waiting for operation.
When I stop my program and run the operation, I immediately get the results.
Any way to get it to work in the same run?

MikeOliverAZ's picture
Asked 5 months 2 weeks ago
Latest activity 3 months 6 days ago

is port 9091 fixed?

I have two applications that seem to have port 9091 fixed, Torch Torents and Couchbase server.

Can I configure Couchbase on a port other than 9091?

MikeOliverAZ's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 1 week ago

storing document with key string but not finding it

Ok I am using the couchbase client in a couchbase bucket.

I have a pojo that is serializable. Everything is working fine, the document is stored but not where I thought it would.

client is initialized to localhost default bucket.

...
Andreas Kündig's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 2 weeks ago

Can a row returned by a view be null? Can its document?

I have a NullPointerException that happens sometimes on the first line of this loop,

    ViewResponse rows = this
...
couchbase-user's picture
Asked 5 months 2 weeks ago

Using Couchbaseclient.getstats(statsname) to get specific statistics only

Hi there,

I'm trying to collect specific statistics about the execution of couchbase operations and times but yet struggling to find the right function to do this.

The latest thing I tried was Couchbaseclient.getstats() that returns about two pages for every server in my cluster...

tamazero's picture
Asked 5 months 3 weeks ago
Latest activity 5 months 3 weeks ago

Storing pdf documents inside couchbase

Hi all, I'd like to integrate an open source ERP system (Adempiere ERP) with couchbase storing invoice informations inside the db and also the corrisponding pdf files.
The pdf files are quite small (about 100kb) and I 'd want to store also the document information (docno, date,...

MikeOliverAZ's picture
Asked 5 months 3 weeks ago
Latest activity 5 months 3 weeks ago

connection pool or singleton

I am using a java compute node in websphere message broker.

Each message flowing through the broker gets a new thread. The java compute node executes in its own thread and cannot share anything outside that thread. Even JDBC must go through a configurable service to get a connection to...

MikeOliverAZ's picture
Asked 5 months 3 weeks ago
Latest activity 5 months 2 weeks ago

too many files open exception

I was using spymemcached client, and since our application uses Websphere MessageBroker where we access the cache, each request is a new thread, so we ran into trouble. The spymemcached client does not do connection pooling so we ran out of connections. Upping the open file count for user and...

MikeOliverAZ's picture
Asked 5 months 3 weeks ago
Latest activity 5 months 2 weeks ago

I want to replace the javax.persistence.EntityManager implementation

I want to move my applications to couchbase.

Many of those applications use jpa/Hibernate and implement the javax.persistence.EntityManager Interface.

I have started work and the following class is my implementation so far.

My question is, do you have an example of another...

MikeOliverAZ's picture
Asked 5 months 3 weeks ago
Latest activity 5 months 3 weeks ago

Query Example fetching multiple documents matching a attribute value

I have a java application and want to store some pojos in Couchbase and retrieve all the pojos of a certain class by one of the fields in the pojo.

The java class is something like this:

public
...

Pages