Hi, I am trying out Couchbase SDK 2.0.0-dp2 to familiarize with N1QL.
I have a CouchbaseCluster bean defined like this.
@Configuration
public class CouchbaseConfiguration {
public @Bean CouchbaseCluster couchbaseCluster() throws
DataServiceException {
System.setProperty("com.couchbase.client.queryEnabled", "true");
return new CouchbaseCluster();
}
}
Now I am autowiring this bean and using it as follows.
Bucket bucket = couchbaseCluster.openBucket().toBlocking().single();
Iterator<QueryResult> resultIterator = bucket.query(
Select
.select("*")
.from("B2B")
.where(expression)
.limit(Integer.valueOf(limit)))
.toBlocking()
.getIterator();
I am able to retrieve the results.
Here are the questions I have.
1. Is there anything wrong in the way I have used the new SDK?
2. I am occasionally getting the error below and then the server stops
responding to requests.
Jul 24, 2014 6:31:04 PM com.lmax.disruptor.FatalExceptionHandler
handleEventException
SEVERE: Exception processing: 124
com.couchbase.client.core.ResponseEvent@47db8a20
rx.exceptions.OnErrorNotImplementedException: Could not parse configuration
at rx.Observable$26.onError(Observable.java:6677)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:135)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:103)
at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:118)
at rx.observers.SerializedObserver.onNext(SerializedObserver.java:157)
at
rx.observers.SerializedSubscriber.onNext(SerializedSubscriber.java:56)
at
rx.internal.operators.OperatorMerge$InnerSubscriber.onNext(OperatorMerge.java:110)
at
rx.subjects.SubjectSubscriptionManager$SubjectObserver.onNext(SubjectSubscriptionManager.java:224)
at rx.subjects.AsyncSubject.onCompleted(AsyncSubject.java:96)
at
com.couchbase.client.core.ResponseHandler.onEvent(ResponseHandler.java:77)
at
com.couchbase.client.core.ResponseHandler.onEvent(ResponseHandler.java:22)
at
com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.couchbase.client.core.CouchbaseException: Could not parse
configuration
at
com.couchbase.client.core.config.parser.BucketConfigParser.parse(BucketConfigParser.java:30)
at
com.couchbase.client.core.config.DefaultConfigurationProvider.proposeBucketConfig(DefaultConfigurationProvider.java:269)
at
com.couchbase.client.core.config.refresher.CarrierRefresher$2.call(CarrierRefresher.java:122)
at
com.couchbase.client.core.config.refresher.CarrierRefresher$2.call(CarrierRefresher.java:119)
at rx.Observable$26.onNext(Observable.java:6682)
at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:111)
... 11 more
Caused by: com.fasterxml.jackson.databind.JsonMappingException: No content
to map due to end-of-input
at [Source: java.io.StringReader@1d3b9447; line: 1, column: 1]
at
com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164)
at
com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:2931)
at
com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2873)
at
com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034)
at
com.couchbase.client.core.config.parser.BucketConfigParser.parse(BucketConfigParser.java:28)
... 16 more
3. JVM crashes sometimes. I have attached the logs. Is there anything weird
going on here?
Any help would be appreciated.
Thanks,
Ali
It will be really great if you can
--
You received this message because you are subscribed to the Google Groups
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
hs_err_pid29825.log
Description: Binary data
