WritePolicy writePolicy = new WritePolicy();
writePolicy.expiration = ttl;
Key keyObject = new Key(aerospikeNamespace, aerospikeSetName, key);
com.aerospike.client.Value value = com.aerospike.client.Value.get(sessionId);
ListPolicy listPolicy = new ListPolicy(ListOrder.UNORDERED, ListWriteFlags.ADD_UNIQUE | ListWriteFlags.NO_FAIL);
aerospikeClient.operate(writePolicy, keyObject, ListOperation.append(listPolicy, bin, value, null));
Giving Exception : com.aerospike.client.AerospikeException: Error 4,1,30000,0,0,XXXXXXXXXXX XX.XXX.XX.XXX 3000: Parameter error
Also, it is working for some of the keys and giving this exception for other keys. Using aerospike cluster and all nodes are up and connected