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 over {MemcachedConnection to localhost/127.0.0.1:11210}] (Suspended (breakpoint at line 1761 in MemcachedClient$11))
owns: MutatorOperationImpl (id=52)
MemcachedClient$11.receivedStatus(OperationStatus) line: 1761
MutatorOperationImpl(OperationImpl).finishedPayload(byte[]) line: 212
MutatorOperationImpl(OperationImpl).readPayloadFromBuffer(ByteBuffer) line: 196
MutatorOperationImpl(OperationImpl).readFromBuffer(ByteBuffer) line: 139
CouchbaseConnection(MemcachedConnection).readBufferAndLogMetrics(Operation, ByteBuffer, MemcachedNode) line: 860
CouchbaseConnection(MemcachedConnection).handleReads(MemcachedNode) line: 839
CouchbaseConnection(MemcachedConnection).handleReadsAndWrites(SelectionKey, MemcachedNode) line: 719
CouchbaseConnection(MemcachedConnection).handleIO(SelectionKey) line: 682
CouchbaseConnection(MemcachedConnection).handleIO() line: 436
CouchbaseConnection.run() line: 321
What’s wrong with the code? Is it an encoding issue?
Thanks,
Hao