Reputation: 1034
am getting a serialisation issue when using explain() step for traversals
Server could not serialize the result requested. Server error - Error during serialization: Class is not registered: org.apache.tinkerpop.gremlin.process.traversal.util.TraversalExplanation Note: To register this class use: kryo.register(org.apache.tinkerpop.gremlin.process.traversal.util.TraversalExplanation.class);. Note that the class must be serializable by the client and server for proper operation.
what are the steps to register a class in gremlin
Upvotes: 0
Views: 278
Reputation: 46226
I'm guessing that you might be using an older version of TinkerPop. There was a time when that class was not registered with Gryo and it would lead to errors like this. I assume you just want the output of the TraversalExplanation
and not the object itself so a simple workaround would be to simply toString()
your result.
g.V().out().explain().toString()
Upvotes: 2