ArrayIndexOutOfBoundsException

We are experiencing the following exception every few hours in our two node cluster with the Java client 3.1.7:

Node FA12C4D454AC40C 5.196.**.***:3000 refresh failed: java.lang.ArrayIndexOutOfBoundsException: 1
	at com.aerospike.client.cluster.Node.addFriends(Node.java:156)
	at com.aerospike.client.cluster.Node.refresh(Node.java:95)
	at com.aerospike.client.cluster.Cluster.tend(Cluster.java:284)
	at com.aerospike.client.cluster.Cluster.run(Cluster.java:250)
	at java.lang.Thread.run(Thread.java:745)

in the tend-Thread with the stack:

com.aerospike.client.Log.log(Log.java:151)
com.aerospike.client.Log.info(Log.java:131)
com.aerospike.client.cluster.Cluster.tend(Cluster.java:292)
com.aerospike.client.cluster.Cluster.run(Cluster.java:250)
java.lang.Thread.run(Thread.java:745)

I think the new servers may have modified the “services” return value which the client is not parsing. Which server version are you using?

Also, what is the result of this command (indicate if there are any leading trailing spaces as well)?

asinfo -v services

We are using Aerospike EE build 3.6.3 in a two node cluster. The asinfo -v services output is “5.196..*:3000” (no leading or trailing white spaces), the address is the one of the other node in the cluster.

That is the correct output, but the “services” request is performed once a second, so most are still succeeding.

Aerospike 3.6.3 has a bug which is causing this occasional random byte insertion into info responses. A bug has been filed on the server side.

This issue is being tracked through the following Jira: AER-5204