NotSerializable error when using Remote Typed Actors & Java API
*Akka Version*: TRUNK from 05/011/2010
*Problem*:
I have a remote Typed actor that I access from a client actor using
the following code:
After the call to the remote actor I get this exception:
Here is the full exception: http://pastebin.com/BEhi644W
*Possible fix*:
Annotating the class "akka.dispatch.DefaultCompletableFuture" with
fixes the problem.
*Problem*:
I have a remote Typed actor that I access from a client actor using
the following code:
CustomerService c = (CustomerService) TypedActor.newRemoteInstance(CustomerService.class, CustomerServiceImpl.class, 7000, "localhost", 9919);
Future<String> future = c.getCustomer("123");
After the call to the remote actor I get this exception:
java.io.NotSerializableException: akka.dispatch.DefaultCompletableFuture
Here is the full exception: http://pastebin.com/BEhi644W
*Possible fix*:
Annotating the class "akka.dispatch.DefaultCompletableFuture" with
@serializable
fixes the problem.
Leave a comment
on 2010-11-10 05:14 *
By Luciano Fiandesio
Description changed from *Akka Version*: TRUNK from ... to *Akka Version*: TRUNK from ...
Fixed in master