[jira] [Commented] (TINKERPOP-1509) Failing test case for tree serialization

2018-03-02 Thread stephen mallette (JIRA)

[ 
https://issues.apache.org/jira/browse/TINKERPOP-1509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16384109#comment-16384109
 ] 

stephen mallette commented on TINKERPOP-1509:
-

The GraphSON 2.0 test for tree now works. GraphSON 3.0 however is failing and 
the tree test in {{GraphSONMessageSerializerV3d0Test}} remains disabled - error 
is:

{code}
[WARN] 
org.apache.tinkerpop.gremlin.driver.ser.AbstractGraphSONMessageSerializerV2d0 - 
Response 
[UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeNoCleanerDirectByteBuf(ridx:
 2240, widx: 2240, cap: 2240)] could not be deserialized by 
org.apache.tinkerpop.gremlin.driver.ser.AbstractGraphSONMessageSerializerV2d0.
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.JsonMappingException: Could not 
deserialize the JSON value as required. Nested exception: 
org.apache.tinkerpop.shaded.jackson.databind.JsonMappingException: Can not 
deserialize instance of java.lang.Object out of END_ARRAY token
 at [Source: [B@6a28ffa4; line: 1, column: 1119]
 at [Source: [B@6a28ffa4; line: 1, column: 1119] (through reference chain: 
java.util.LinkedHashMap["value"])
 at [Source: [B@6a28ffa4; line: 1, column: 1119] (through reference chain: 
java.util.LinkedHashMap["value"])
 at [Source: [B@6a28ffa4; line: 1, column: 1119] (through reference chain: 
java.util.LinkedHashMap["result"]->java.util.LinkedHashMap["data"])
at 
org.apache.tinkerpop.shaded.jackson.databind.JsonMappingException.from(JsonMappingException.java:270)
at 
org.apache.tinkerpop.shaded.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:1313)
at 
org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONTypeDeserializer.deserialize(GraphSONTypeDeserializer.java:194)
at 
org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONTypeDeserializer.deserializeTypedFromAny(GraphSONTypeDeserializer.java:101)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.std.UntypedObjectDeserializer.deserializeWithType(UntypedObjectDeserializer.java:290)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:519)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:362)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:27)
at 
org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONTypeDeserializer.deserialize(GraphSONTypeDeserializer.java:219)
at 
org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONTypeDeserializer.deserializeTypedFromAny(GraphSONTypeDeserializer.java:101)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.std.UntypedObjectDeserializer.deserializeWithType(UntypedObjectDeserializer.java:290)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:519)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:362)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:27)
at 
org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONTypeDeserializer.deserialize(GraphSONTypeDeserializer.java:212)
at 
org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONTypeDeserializer.deserializeTypedFromObject(GraphSONTypeDeserializer.java:86)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.std.MapDeserializer.deserializeWithType(MapDeserializer.java:397)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:63)
at 
org.apache.tinkerpop.shaded.jackson.databind.DeserializationContext.readValue(DeserializationContext.java:770)
at 
org.apache.tinkerpop.shaded.jackson.databind.DeserializationContext.readValue(DeserializationContext.java:758)
at 
org.apache.tinkerpop.gremlin.structure.io.graphson.AbstractObjectDeserializer.deserialize(AbstractObjectDeserializer.java:48)
at 
org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONTypeDeserializer.deserialize(GraphSONTypeDeserializer.java:212)
at 
org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONTypeDeserializer.deserializeTypedFromAny(GraphSONTypeDeserializer.java:101)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.std.StdDeserializer.deserializeWithType(StdDeserializer.java:120)
at 
org.apache.tinkerpop.shaded.jackson.databind.deser.impl.T

[jira] [Commented] (TINKERPOP-1509) Failing test case for tree serialization

2017-07-24 Thread stephen mallette (JIRA)

[ 
https://issues.apache.org/jira/browse/TINKERPOP-1509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16099042#comment-16099042
 ] 

stephen mallette commented on TINKERPOP-1509:
-

it's possible that this issue will resolve itself with Jackson 2.8.10 which has 
not yet released. [~newkek] was good enough to provide repo steps on our issue 
with tree for the devs on jackson here:

https://github.com/FasterXML/jackson-databind/issues/1658

and they produced a fix. Obviously still needs to be tested on our end.

> Failing test case for tree serialization
> 
>
> Key: TINKERPOP-1509
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1509
> Project: TinkerPop
>  Issue Type: Bug
>  Components: io
>Affects Versions: 3.2.2
>Reporter: stephen mallette
>
> The failure only seems to happen in some environments. I've ignored the test 
> for now:
> {code}
> org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV2d0Test
> shouldSerializeToTreeJson
> org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraphGraphSONSerializerV2d0Test.deserializersTestsTree
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (TINKERPOP-1509) Failing test case for tree serialization

2017-06-28 Thread Marko A. Rodriguez (JIRA)

[ 
https://issues.apache.org/jira/browse/TINKERPOP-1509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16066569#comment-16066569
 ] 

Marko A. Rodriguez commented on TINKERPOP-1509:
---

I suspect this is related to {{Tree}} extending {{Map}} (which was a bad idea). 
I just noted a bug in {{JavaTranslator}} where I don't check to see if a 
{{Map}} is a {{Tree}} and as such, may turn {{Tree}}s to {{Map}}s inadvertently.

> Failing test case for tree serialization
> 
>
> Key: TINKERPOP-1509
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1509
> Project: TinkerPop
>  Issue Type: Bug
>  Components: io
>Affects Versions: 3.2.2
>Reporter: stephen mallette
>
> The failure only seems to happen in some environments. I've ignored the test 
> for now:
> {code}
> org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV2d0Test
> shouldSerializeToTreeJson
> org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraphGraphSONSerializerV2d0Test.deserializersTestsTree
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)