Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Done
-
None
-
None
Description
When Exchanging with gremlin-server using the session opProcessor on a Neo4j graph (maybe this concerns all transaction enabled graphs). If you send the following request :
g.addVertex()
The server will return Error during serialization: (was java.util.NoSuchElementException) (through reference chain: java.util.HashMap["result"]->java.util.ArrayList[0])
You can find more information on this here : https://groups.google.com/forum/#!topic/gremlin-users/S4T9yOfHlV4
But the gist of it from my testing is that running a script that returns an uncommitted Vertex (possibly element) will cause this error. This means g.V or g.addVertex() or any other script likely to send this or any other uncommitted vertex back.
This lasts until the offending Vertex is committed or rolled back, which can potentially be never if the session closes without commit.