Skip to main content

Posts

Showing posts from March, 2016

WARN AEROSPIKE_ERR_CLIENT Socket write error: 111

If you are just typing aql on terminal and following error throwing while your aerospike server has been started successfully. WARN AEROSPIKE_ERR_CLIENT Socket write error: 111 It may happen because you had connected some other server before, Now you are trying to connect to your localhost or different server. To remove the above error just type full command: aql -h 127.0.0.1 -p 3000                           ( put server ip in case of other server rather than localhost) instead of jus aql.

com.aerospike.client.AerospikeException$Serialize: Error Code -1:

If you are trying to save a  whole simple java object into Aerospike database and your are getting the following annoying errors. com.aerospike.client.AerospikeException$Serialize: Error Code -1: java.io.NotSerializableException: com.sangnak-science. Person at com.aerospike.client.Value$BlobValue.estimateSize(Value.java:977) at com.aerospike.client.command.Command.estimateOperationSize(Command.java:767) at com.aerospike.client.command.Command.setWrite(Command.java:76) at com.aerospike.client.command.WriteCommand.writeBuffer(WriteCommand.java:56) at com.aerospike.client.command.SyncCommand.execute(SyncCommand.java:47) at com.aerospike.client.AerospikeClient.put(AerospikeClient.java:339) at com.yatra.Aerospike.main(Aerospike.java:57) Caused by: java.io.NotSerializableException: com.yatra.Person at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at com.aerospike.client.