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
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/orient-database/764e2429-e3ac-41c7-b6b7-0fac80f8eff4%40googlegroups.com.