Skip to content

Instantly share code, notes, and snippets.

@okram
Last active August 29, 2015 14:01
Show Gist options
  • Save okram/b7a633ae337d0cf98bda to your computer and use it in GitHub Desktop.
Save okram/b7a633ae337d0cf98bda to your computer and use it in GitHub Desktop.
System.out.println("READING:" + this.getId().get() + "!!!!!" + this.getValue().getLength() + "!!!!" + new String(this.getValue().getBytes(), 0, 3));
final ByteArrayInputStream bis = new ByteArrayInputStream(this.getValue().getBytes());
final KryoReader reader = KryoReader.create().build();
this.gremlinGraph = TinkerGraph.open();
reader.readGraph(bis, this.gremlinGraph);
bis.close();
this.gremlinVertex = this.gremlinGraph.v(this.getId().get());
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Buffer underflow.
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:206)
at org.apache.giraph.utils.ProgressableUtils$FutureWaitable.waitFor(ProgressableUtils.java:271)
at org.apache.giraph.utils.ProgressableUtils.waitFor(ProgressableUtils.java:143)
... 13 more
Caused by: java.lang.IllegalStateException: Buffer underflow.
at com.tinkerpop.gremlin.giraph.structure.GiraphVertex.inflateGiraphVertex(GiraphVertex.java:102)
at com.tinkerpop.gremlin.giraph.structure.GiraphVertex.compute(GiraphVertex.java:72)
at org.apache.giraph.graph.ComputeCallable.computePartition(ComputeCallable.java:234)
at org.apache.giraph.graph.ComputeCallable.call(ComputeCallable.java:162)
at org.apache.giraph.graph.ComputeCallable.call(ComputeCallable.java:70)
at org.apache.giraph.utils.LogStacktraceCallable.call(LogStacktraceCallable.java:51)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:744)
Caused by: com.esotericsoftware.kryo.KryoException: Buffer underflow.
at com.esotericsoftware.kryo.io.Input.require(Input.java:181)
at com.esotericsoftware.kryo.io.Input.readAscii_slow(Input.java:598)
at com.esotericsoftware.kryo.io.Input.readAscii(Input.java:576)
at com.esotericsoftware.kryo.io.Input.readString(Input.java:454)
at com.tinkerpop.gremlin.structure.io.kryo.KryoReader.readGraph(KryoReader.java:175)
at com.tinkerpop.gremlin.giraph.structure.GiraphVertex.inflateGiraphVertex(GiraphVertex.java:97)
... 9 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment