I have a small test Akka cluster setup with 2 nodes.

On node1 I have an actor @ /user/myactor1 (myactor1 is a BalancedPool 
router wrapped in a ClusterRouterPool pointing to N actors). 

Node1 and Node2 are properly clustered as I see the heartbeat log info 
between the two nodes.

>From node2 I do this, trying 

ActorSelection s = 
node2system.actorSelection("akka.tcp://mysystem@node1:2552/user/myactor1");

Future<ActorRef> resolvedRef = s.resolveOne(Timeout.apply(30, TimeUnit.
SECONDS));

ActorRef myActor1Ref = Await.result(resolvedRef, Duration.create(30, 
TimeUnit.SECONDS));


EchoMsg msg = new EchoMsg("echo back")

Future<Object> result = ask(myActor1Ref, msg, this.timeout);

EchoResult resultMsg = (EchoResult)Await.result(result, this.timeoutDuration
);



The errors I get below. Any help appreciated


a) On node2 I get a timeout, as no response is returned


b) On node1 (where myactor1 is), I see this in the logs



DEBUG [ClusterRouterPoolActor] received AutoReceiveMessage 
Envelope(Identify(None),Actor[akka.tcp://mysystem@node2:2552/temp/$a]) 


DEBUG [Serialization(akka://mysystem)] Using 
serializer[akka.serialization.JavaSerializer] for message 
[akka.actor.ActorIdentity] 


INFO [RemoteActorRefProvider$RemoteDeadLetterActorRef] Message 
[my.test.EchoMsg] from Actor[akka.tcp://mysystem@node2:2552/temp/$b] to 
Actor[akka://mysystem/deadLetters] was not delivered. [1] dead letters 
encountered. This logging can be turned off or adjusted with configuration 
settings 'akka.log-dead-letters' and 
'akka.log-dead-letters-during-shutdown'. 



-- 
>>>>>>>>>>      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