Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2291

TraversalExplanation deserialization in GraphSON

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.8
    • Fix Version/s: 3.3.9, 3.4.4, 3.5.0
    • Component/s: io
    • Labels:
      None

      Description

      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:

      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"])
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                spmallette Stephen Mallette
                Reporter:
                spmallette Stephen Mallette
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: