sophie
April 9, 2017, 6:21pm
1
I am getting some error while fetching data from Aerospike, the error code is in undocumented range, eg: error 187, 174
error result ErrorWithException [code=500, message=Error Code 187: , className=com.aerospike.client.AerospikeException, stackTrace=\ncom.aerospike.client.AerospikeException: Error Code 187: \n\tat com.aerospike.client.command.ReadCommand.parseResult(ReadCommand.java:121)\n\tat com.aerospike.client.command.SyncCommand.execute(SyncCommand.java:56)\
I have looked through java aerospike-client project but I couldn’t find any place where the error code is set in message header: aerospike-client-java/Command.java at master · aerospike/aerospike-client-java · GitHub
seems like the data stored in aerospike is having problem itself which leads to this.
Is there any explanation for these strange error codes?
Albot
April 9, 2017, 6:38pm
2
That’s a new one for me. Are you printing the message with the stack trace? Also which version of client and server are you using
sophie
April 10, 2017, 6:36am
3
Hi Albot,
Thank for your replying. I am using client 3.1.7 and aerospike 3.8.x
Albot
April 10, 2017, 9:34pm
4
So nothing in the exception message? What about aerospike server logs?
Additionally we can try subscribing to the aerospike log to see if that shows anything https://www.aerospike.com/docs/client/java/usage/logging.html
wchu
April 11, 2017, 5:14pm
5
Neither 174 nor 187 are error codes that are generated by the server (see below). So agree with @Albot that some server log will help.
/*
* proto.h
*
* Copyright (C) 2008-2022 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see http://www.gnu.org/licenses/
This file has been truncated. show original