-
Notifications
You must be signed in to change notification settings - Fork 76
Description
I'm using gremlin-scala to talk to a Neptune instance.
Trying to use WithSack in a traversal I kept getting the error
Caused by: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: An error occurred during serialization of this request [RequestMessage{, requestId=f2258d63-4265-499e-9684-dde9b007e0d1, op='bytecode', processor='traversal', args={gremlin=[[withSack(gremlin.scala.package$$anon$1@19e943ef)], [V(), limit(5)]], aliases={g=g}}}] - it could not be sent to the server - Reason: org.apache.tinkerpop.gremlin.driver.ser.SerializationException: java.lang.IllegalArgumentException: Class is not registered: gremlin.scala.package$$anon$1
I attempted multiple variations on syntax to get it to work.
traversalSource.withSack(1.0)
is my intended usage.
In the end I can get it working by emulating the underlying call but without using a lambda. That is:
TraversalSource(traversalSource.underlying.withSack[Double](1.0))
but if I try this with a lambda that returns a double it doesn't work and the libraries implementation of the constant version falls back on the lambda version.