com.aerospike.client.AerospikeException: java.lang.NullPointerException
at com.aerospike.client.async.SelectorManager.registerCommands(SelectorManager.java:131) [ssp.jar:na]
at com.aerospike.client.async.SelectorManager.runCommands(SelectorManager.java:84) [ssp.jar:na]
at com.aerospike.client.async.SelectorManager.run(SelectorManager.java:68) [ssp.jar:na]
Caused by: java.lang.NullPointerException: null
Exception happens may be couple of time per hour. Looks like error need to be clarified. No additional stack trace in logs.
com.aerospike.client.AerospikeException: java.lang.NullPointerException
at com.aerospike.client.async.SelectorManager.registerCommands(SelectorManager.java:131)
at com.aerospike.client.async.SelectorManager.runCommands(SelectorManager.java:84)
at com.aerospike.client.async.SelectorManager.run(SelectorManager.java:68)
Caused by: java.lang.NullPointerException
at com.aerospike.client.async.AsyncConnection.interestOps(AsyncConnection.java:163)
at com.aerospike.client.async.AsyncCommand.checkTimeout(AsyncCommand.java:237)
at com.aerospike.client.async.SelectorManager.registerCommands(SelectorManager.java:121)
... 2 more
Thanks, that identified the problem. The command timed out before the SelectionKey was even registered, resulting in a NullPointerException. It’s relatively benign because the command was failing anyhow from a timeout.