The exception suggests that players.model.Player isn't loaded into the playerService -- are you sure it's loaded?
On Sun, Feb 19, 2017 at 3:27 AM, Steve Winfield < [email protected]> wrote: > Hey, > > I have a bit of a problem. I got a service that communicates with 2 > different services (nodes) in an Akka cluster. Even though the services do > not depend on each other, I get an exception, when I start a cluster > sharding proxy and a cluster router group and then send a message to the > router. > > // Start cluster sharding proxy (gets sharded on room service) > val roomRegion = ClusterSharding(system).startProxy( > typeName = RoomEngine.shardName, > role = Some("rooms"), > extractEntityId = RoomEngine.extractEntityId, > extractShardId = RoomEngine.extractShardId) > > // Start router for player service > val playerService = system.actorOf( > ClusterRouterGroup( > RoundRobinGroup(Nil), ClusterRouterGroupSettings( > totalInstances = 100, > routeesPaths = List(s"/user/PlayerService"), > allowLocalRoutees = true, > useRole = Some("players") > ) > ).props(), name = s"PlayerServiceGroup") > > playerService ! GetPlayer(1) > // Now room service throws ClassNotFoundException: ...players.model.Player > (class of player service) > > > Do you know what's wrong with it? > > Thanks! > > Cheers, > Steve Winfield > > -- > >>>>>>>>>> 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. > -- >>>>>>>>>> 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.
