Java 小精灵驱动程序无法从titandb获得响应

Java 小精灵驱动程序无法从titandb获得响应,java,titan,gremlin,Java,Titan,Gremlin,我正在尝试使用gremlin驱动程序通过WebSocket查询服务器titan实例。 所以我有下一个依赖项: <dependency> <groupId>org.apache.tinkerpop</groupId> <artifactId>gremlin-driver</artifactId> <version>3.1.1-incubating</version&

我正在尝试使用gremlin驱动程序通过WebSocket查询服务器titan实例。 所以我有下一个依赖项:

    <dependency>
        <groupId>org.apache.tinkerpop</groupId>
        <artifactId>gremlin-driver</artifactId>
        <version>3.1.1-incubating</version>
    </dependency>
没有在网上找到一个关于使用gremlin驱动程序执行CRUD操作的可行示例。 有人知道怎么处理吗

编辑1: 使用titan-1.0.0-hadoop1
在驱动程序版本3.0.1-Cubining中也进行了尝试,获得了几乎相同的IndexOutOfBoundsException。

试试这个:可能会有帮助

List<Result> some = null; 
some = client.submit("g.V()
                 .has(T.label,marketplace)
                 .has('marketplace_product_id', marketplace_product_id)")
             .stream()**
             .map(r -> r.get(Vertex.class))**
             .collect(Collectors.toList());
List some=null;
some=client.submit(“g.V()
.has(T.标签、市场)
.has('marketplace\u product\u id',marketplace\u product\u id'))
.stream()**
.map(r->r.get(Vertex.class))**
.collect(Collectors.toList());

您使用的是Titan的哪个版本?如果您使用的是Titan 1.0版,可能需要使用版本为
3.0.1-Cubating的gremlin驱动程序
 WARN  o.a.t.g.driver.MessageSerializer - Response [PooledUnsafeDirectByteBuf(ridx: 136, widx: 136, cap: 136)] could not be deserialized by org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0.
13:41:36.879 [gremlin-driver-loop-1] ERROR o.a.t.g.d.Handler$GremlinResponseHandler - Could not process the response
io.netty.handler.codec.DecoderException: org.apache.tinkerpop.gremlin.driver.ser.SerializationException: java.lang.IndexOutOfBoundsException: Index: 121, Size: 0
List<Result> some = null; 
some = client.submit("g.V()
                 .has(T.label,marketplace)
                 .has('marketplace_product_id', marketplace_product_id)")
             .stream()**
             .map(r -> r.get(Vertex.class))**
             .collect(Collectors.toList());