ExecutionException while using CopyClient

16 views
Skip to first unread message

Raghav Babu

unread,
Aug 2, 2016, 10:26:36 AM8/2/16
to raft-dev
I am getting an ExecutionException while i do CompletableFuture.get()... I submitted a write which is implementing Command to CopycatClient and trying to get back CallableFuture.. But  am getting an exception.
Exception stack flow is..
 java.lang.RuntimeException: java.util.concurrent.ExecutionException: io.atomix.catalyst.serializer.SerializationException: failed to instantiate reference: must provide a single argument constructor
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at com.cinchapi.ensemble.cohort.Cohort.write(Cohort.java:301)
at com.cinchapi.ensemble.cohort.CohortTest.testWrite(CohortTest.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.util.concurrent.ExecutionException: io.atomix.catalyst.serializer.SerializationException: failed to instantiate reference: must provide a single argument constructor
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2237)
at io.atomix.catalyst.concurrent.BlockingFuture.get(BlockingFuture.java:40)
at com.cinchapi.ensemble.cohort.Cohort.write(Cohort.java:298)


Am I missing something.. Can some guide me to sort this out??

Thanks,
Raghav.

jordan.h...@gmail.com

unread,
Aug 2, 2016, 1:13:12 PM8/2/16
to raft...@googlegroups.com
I responded to this in Copycat/Atomix chat. We should discuss it there if possible.
--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages