Sub Graph Using Java #3147
Unanswered
amit-kumaryadav
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Serialization happens on Gremlin Server, so Gremlin Server needs to be configured to use the TinkerIoRegistryV3d0 in order to be able to serialize the TinkerGraph instance returned by subgraph(). For deserialization to succeed, your remote-object.yaml also needs the additional |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I'm using the janusgraph v0.6.2 with java application. When I'm trying the subgraph query I'm getting Error during serialization.
Java code: -
-- Object graph = g.V().hasLabel("Template").repeat(__.outE("hasDevice")
.subgraph("sg").inV()).cap("sg").next();
Error:-
org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Error during serialization: java.lang.IllegalStateException
Using below remote-objects.yaml file configuration.
hosts: [localhost]
port: 8182
serializer: {
className: org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1,
config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] },
}
Beta Was this translation helpful? Give feedback.
All reactions