You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setAsync's onResponse is called but before the callback can be run the following Exception is thrown:
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.Void
at $sess.cmd9$$anon$1.onResponse(cmd9.sc:1)
at com.hazelcast.util.executor.DelegatingFuture$DelegatingExecutionCallback.onResponse(DelegatingFuture.java:172)
at com.hazelcast.spi.impl.AbstractInvocationFuture$1.run(AbstractInvocationFuture.java:251)
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:745)
at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)
at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)
However, the set did succeed and I can see my values inside the map.
The text was updated successfully, but these errors were encountered:
@pveentjer There isn't really a way to do that as the return type of setAsync is the parameterized over Void. I can use putAsync for now. Thanks for your quick response and identifying the offending code!
the putAsync will be a bit more expensive than the set because the put will return the old value. So there is more network traffic + deserialization involved.
I'm going to close this ticket since the fix will be in the latest maintenance release which should be released one of these days.
We are using Hazeclast version 3.7.4.
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
We use Hazelcast with Scala, but I don't believe the issue has anything to do with that. Here is a simple bit of code to replicate the problem.
setAsync's onResponse is called but before the callback can be run the following Exception is thrown:
However, the set did succeed and I can see my values inside the map.
The text was updated successfully, but these errors were encountered: