[ 
https://issues.apache.org/jira/browse/TINKERPOP-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette closed TINKERPOP-2609.
---------------------------------------
    Fix Version/s: 3.5.2
                   3.4.13
                   3.6.0
         Assignee: Stephen Mallette
       Resolution: Fixed

Fixed by improving the error message via CTR on 
dac32de04a7cc40acade1b56ef909892b2aff386

> HTTP returns serialization exceptions for the GraphTraversalSource
> ------------------------------------------------------------------
>
>                 Key: TINKERPOP-2609
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2609
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.4.12
>            Reporter: Stephen Mallette
>            Assignee: Stephen Mallette
>            Priority: Major
>             Fix For: 3.6.0, 3.4.13, 3.5.2
>
>
> {{g}} is a valid script and should probably return some representation of the 
> {{GraphTraversalSource}}. Currently it returns an error:
> {code}
> $ curl "http://localhost:8182?gremlin=g";
> {"message":"Could not find a type identifier for the class : class 
> org.apache.tinkerpop.gremlin.tinkergraph.process.traversal.strategy.optimization.TinkerGraphCountStrategy.
>  Make sure the value to serialize has a type identifier registered for its 
> class.","Exception-Class":"java.lang.IllegalArgumentException","exceptions":["java.lang.IllegalArgumentException"],"stackTrace":"java.lang.IllegalArgumentException:
>  Could not find a type identifier for the class : class 
> org.apache.tinkerpop.gremlin.tinkergraph.process.traversal.strategy.optimization.TinkerGraphCountStrategy.
>  Make sure the value to serialize has a type identifier registered for its 
> class.\n\tat 
> org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONTypeIdResolver.idFromValueAndType(GraphSONTypeIdResolver.java:82)\n\tat
>  
> org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONTypeSerializerV3d0.writeTypePrefix(GraphSONTypeSerializerV3d0.java:83)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.std.StdScalarSerializer.serializeWithType(StdScalarSerializer.java:44)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.std.IterableSerializer.serializeContents(IterableSerializer.java:109)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.std.IterableSerializer.serializeContents(IterableSerializer.java:12)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.std.AsArraySerializerBase.serializeWithType(AsArraySerializerBase.java:260)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:730)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:755)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.std.BeanSerializerBase.serializeWithType(BeanSerializerBase.java:640)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.impl.TypeWrappedSerializer.serialize(TypeWrappedSerializer.java:32)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:3058)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.core.base.GeneratorBase.writeObject(GeneratorBase.java:388)\n\tat
>  
> org.apache.tinkerpop.gremlin.structure.io.graphson.JavaUtilSerializersV3d0$ListJacksonSerializer.serialize(JavaUtilSerializersV3d0.java:127)\n\tat
>  
> org.apache.tinkerpop.gremlin.structure.io.graphson.JavaUtilSerializersV3d0$ListJacksonSerializer.serializeWithType(JavaUtilSerializersV3d0.java:135)\n\tat
>  
> org.apache.tinkerpop.gremlin.structure.io.graphson.JavaUtilSerializersV3d0$ListJacksonSerializer.serializeWithType(JavaUtilSerializersV3d0.java:118)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.impl.TypeWrappedSerializer.serialize(TypeWrappedSerializer.java:32)\n\tat
>  
> org.apache.tinkerpop.gremlin.driver.ser.AbstractGraphSONMessageSerializerV2d0$ResponseMessageSerializer.ser(AbstractGraphSONMessageSerializerV2d0.java:281)\n\tat
>  
> org.apache.tinkerpop.gremlin.driver.ser.AbstractGraphSONMessageSerializerV2d0$ResponseMessageSerializer.serializeWithType(AbstractGraphSONMessageSerializerV2d0.java:255)\n\tat
>  
> org.apache.tinkerpop.gremlin.driver.ser.AbstractGraphSONMessageSerializerV2d0$ResponseMessageSerializer.serializeWithType(AbstractGraphSONMessageSerializerV2d0.java:240)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.impl.TypeWrappedSerializer.serialize(TypeWrappedSerializer.java:32)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper._writeValueAndClose(ObjectMapper.java:4409)\n\tat
>  
> org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3663)\n\tat
>  
> org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0.serializeResponseAsString(GraphSONMessageSerializerV3d0.java:111)\n\tat
>  
> org.apache.tinkerpop.gremlin.server.handler.HttpGremlinEndpointHandler.lambda$channelRead$1(HttpGremlinEndpointHandler.java:230)\n\tat
>  
> org.apache.tinkerpop.gremlin.util.function.FunctionUtils.lambda$wrapFunction$0(FunctionUtils.java:36)\n\tat
>  
> org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.lambda$eval$0(GremlinExecutor.java:278)\n\tat
>  java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\n\tat
>  java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat
>  
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat
>  java.base/java.lang.Thread.run(Thread.java:829)\n"}
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to