Closed
Description
I'm experiencing a bit of an odd behavior.
The following error is being thrown sporadically (about every 20-50th query):
com.arangodb.ArangoDBException: Response: 400, Error: 1551 - AQL: no value specified for declared bind parameter 'client' (while parsing)
at com.arangodb.internal.util.ResponseUtils.checkError(ResponseUtils.java:53)
at com.arangodb.internal.velocystream.VstCommunication.checkError(VstCommunication.java:116)
at com.arangodb.internal.velocystream.VstCommunicationSync.execute(VstCommunicationSync.java:143)
at com.arangodb.internal.velocystream.VstCommunicationSync.execute(VstCommunicationSync.java:48)
at com.arangodb.internal.velocystream.VstCommunication.execute(VstCommunication.java:100)
at com.arangodb.internal.velocystream.VstProtocol.execute(VstProtocol.java:47)
at com.arangodb.internal.ArangoExecutorSync.execute(ArangoExecutorSync.java:71)
at com.arangodb.internal.ArangoExecutorSync.execute(ArangoExecutorSync.java:53)
at com.arangodb.internal.ArangoExecutorSync.execute(ArangoExecutorSync.java:49)
at com.arangodb.ArangoDatabase.query(ArangoDatabase.java:358)
at com.inceptionnotes.sync.store.NoteStore.updateRelationshipsForNoteProp(NoteStore.java:201)
The query is:
private static final String AQL_UPDATE_RELATIONSHIPS_INSERT_STEP = "FOR target IN @value\n" +
" UPSERT { _from: @note, _to: target, kind: @prop }\n" +
" INSERT { _from: @note, _to: target, kind: @prop }\n" +
" UPDATE {}\n" +
" IN relationships";
As you can observe, there is no @client
binding in this query.
Note #1 This is in a multi-threaded websocket environment (running on Tomcat.)
Note #2 Other queries using the same ArangoDatabase
object do use@client
and it is very likely for those queries to execute close in time to the one throwing the error above.