The actor itself doesn't have to be serializable, but the Props and the
parameters for the constructor must be serializable.
It might be that you are closing over something? See
http://doc.akka.io/docs/akka/2.4.1/scala/actors.html#Recommended_Practices

On Wed, Feb 3, 2016 at 10:31 PM, <[email protected]> wrote:

> Hi,
> I am trying to define a ClusterRouterPool that manages a BalancingPool of
> Actors across my cluster. The actual end Actor that does the work uses the
> Gson library which is not Serializable. When I bring up a 2nd node in the
> cluster, as it joins the primary node, I get NotSerializableException's
> thrown on the leader (where the ClusterRouterPool was initialized)
>
> How to work around this? So in order to use clustered actors, every member
> of the Actors being clustered must be serializable?
>
> Thanks
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to