orientdb Gremlin serialization issue

29 views
Skip to first unread message

arun s

unread,
Jan 23, 2020, 7:51:43 PM1/23/20
to OrientDB
Hi,
  I started to use orientdb-tp3-3.0.27 release and tried playing around with Apache timkerpop Java API. I end up with kryo serialization issue when I try to insert vertex into the graph. Below the initialization code I am using for adding vertex. Can some one help on the issue ?

GryoMapper.Builder kryo = GryoMapper.build().addRegistry(OrientIoRegistry.instance());

    GryoMessageSerializerV3d0 ser = new GryoMessageSerializerV3d0(kryo);

    Cluster.Builder builder = Cluster.build().addContactPoint("127.0.0.1").port(8182).serializer(ser).credentials("root", "athena");

            Cluster cluster = builder.create();

            gG = EmptyGraph.instance().traversal().withRemote(DriverRemoteConnection.using(cluster));

            gG.addV("#1:0").next(); // throws an exception like below


java.util.concurrent.CompletionException: io.netty.handler.codec.DecoderException: org.apache.tinkerpop.gremlin.driver.ser.SerializationException: org.apache.tinkerpop.shaded.kryo.KryoException: Encountered unregistered class ID: 65536

Serialization trace:

id (org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceVertex)


I am using below version of the libraries: 


compile group: 'com.orientechnologies', name: 'orientdb-core', version: '3.1.0-M3'

    compile group: 'com.tinkerpop.blueprints', name: 'blueprints-core', version: '2.6.0'

    compile group: 'com.orientechnologies', name: 'orientdb-graphdb', version: '3.1.0-M3'

    compile group: 'com.orientechnologies', name: 'orientdb-client', version: '3.1.0-M3'

compile group: 'com.orientechnologies', name: 'orientdb-enterprise', version: '2.2.0-beta'

testCompile group: 'com.tinkerpop.gremlin', name: 'gremlin-java', version: '2.6.0'

testCompile group: 'com.tinkerpop.gremlin', name: 'gremlin-groovy', version: '2.6.0'

compile group: 'com.orientechnologies', name: 'orientdb-gremlin', version: '3.0.26'

testCompile group: 'org.codehaus.groovy', name: 'groovy-all', version: '3.0.0-rc-3', ext: 'pom'

compile group:'org.apache.tinkerpop', name:'gremlin-driver', version: '3.4.0'

compile group:'org.apache.tinkerpop', name:'gremlin-core', version: '3.4.0'



regards

Arun S


Reply all
Reply to author
Forward
0 new messages