[
https://issues.apache.org/jira/browse/TINKERPOP-2291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stephen mallette updated TINKERPOP-2291:
----------------------------------------
Issue Type: Bug (was: Improvement)
> TraversalExplanation deserialization in GraphSON
> ------------------------------------------------
>
> Key: TINKERPOP-2291
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2291
> Project: TinkerPop
> Issue Type: Bug
> Components: io
> Affects Versions: 3.3.8
> Reporter: stephen mallette
> Assignee: stephen mallette
> Priority: Major
>
> We currently coerce {{TraversalExplanation}} to {{Map}} which works well for
> GLVs but doesn't work so well for Java itself where GraphSON deserialization
> requires a symmetrical derser operation.
> Leads to errors like:
> {code}
> org.apache.tinkerpop.shaded.jackson.databind.JsonMappingException: Could not
> deserialize the JSON value as required. Nested exception:
> org.apache.tinkerpop.shaded.jackson.databind.JsonMappingException: Could not
> deserialize the JSON value as required. Nested exception:
> org.apache.tinkerpop.shaded.jackson.databind.exc.UnrecognizedPropertyException:
> Unrecognized field "@type" (class
> org.apache.tinkerpop.gremlin.process.traversal.util.TraversalExplanation),
> not marked as ignorable (one known property: "strategyTraversals"])
> at [Source:
> (byte[])"{"requestId":"0bcc54dc-87a0-408b-abe0-35678333827e","status":{"message":"","code":200,"attributes":{"@type":"g:Map","@value":["host","/127.0.0.1:50299"]}},"result":{"data":{"@type":"g:List","@value":[{"@type":"g:TraversalExplanation","@value":{"@type":"g:Map","@value":["original",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"intermediate",{"@type":"g:List","@value":[{"@type":"g:Map","@value":["traversal",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"strategy","ConnectiveStrategy""[truncated
> 2707 bytes]; line: 1, column: 254] (through reference chain:
> org.apache.tinkerpop.gremlin.process.traversal.util.TraversalExplanation["@type"])
> at [Source:
> (byte[])"{"requestId":"0bcc54dc-87a0-408b-abe0-35678333827e","status":{"message":"","code":200,"attributes":{"@type":"g:Map","@value":["host","/127.0.0.1:50299"]}},"result":{"data":{"@type":"g:List","@value":[{"@type":"g:TraversalExplanation","@value":{"@type":"g:Map","@value":["original",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"intermediate",{"@type":"g:List","@value":[{"@type":"g:Map","@value":["traversal",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"strategy","ConnectiveStrategy""[truncated
> 2707 bytes]; line: 1, column: 253]
> at [Source:
> (byte[])"{"requestId":"0bcc54dc-87a0-408b-abe0-35678333827e","status":{"message":"","code":200,"attributes":{"@type":"g:Map","@value":["host","/127.0.0.1:50299"]}},"result":{"data":{"@type":"g:List","@value":[{"@type":"g:TraversalExplanation","@value":{"@type":"g:Map","@value":["original",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"intermediate",{"@type":"g:List","@value":[{"@type":"g:Map","@value":["traversal",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"strategy","ConnectiveStrategy""[truncated
> 2707 bytes]; line: 1, column: 253] (through reference chain:
> java.util.LinkedHashMap["result"]->java.util.LinkedHashMap["data"])
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)