io.netty.handler.codec.DecoderException While adding an Edge
Getting io.netty.handler.codec.DecoderException while adding an edge between two vertices.
Vertex vx1 = g.V().has("name","Vertex1").next();
Vertex vx2 = g.V().has("name","Vertext2").next();
Edge newEdge = g.V(vx1).addE("connected").to(vx2).next()
Below is the detailed error message
io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(162) + length(615279) exceeds writerIndex(210): CompositeByteBuf(ridx: 162, widx: 210, cap: 210, components=1)
8 Replies
Can you please share more information about this? For example:
How are you executing this code? Gremlin Console or from your application? Which serializer is used? Also please share the stack trace
I am using GraphBinaryMessageSerializerV1 in my java application
What are the versions of JanusGraph Server and janusgraph-driver?
Using server version --> janusgraph-0.6.3 , pom.xml --> <janusgraph.version>1.0.0-20230428-082704.5159135</janusgraph.version> , gremline -- > 3.6.2
Not sure if this leads to your problem, but could you please try with JanusGraph Server also on a pre-release version of 1.0.0, or also use 0.6.3 in your application?
Glad that it helped 🙂