My answer doesn't change.
On Wed, Jan 15, 2014 at 2:45 PM, Jatin Puri <[email protected]> wrote: > I am sorry but it is a typo in my code (It is Node1-J and not Node1-Jatin): > > val _arbiter = system.actorSelection("akka.tcp://[email protected]. > 169:30002/user/arbiter<http://[email protected]:30002/user/arbiter> > ").resolveOne()(Timeout(10000)) //line-a > > Moreover, the message Iam getting is at aws which means the message is > indeed coming at right ActorSystem > > > On Wednesday, 15 January 2014 19:09:37 UTC+5:30, √ wrote: > >> Hi Jatin, >> >> The target address doesn't match the bound address, which is what the log >> message tells you. >> >> From the documentation: >> >> " >> >> - Add host name - the machine you want to run the actor system on; >> this host name is exactly what is passed to remote systems in order to >> identify this system and consequently used for connecting back to this >> system if need be, hence set it to a reachable IP address or resolvable >> name in case you want to communicate across the network. >> >> " >> >> http://doc.akka.io/docs/akka/2.2.3/scala/remoting.html# >> Preparing_your_ActorSystem_for_Remoting >> >> This means: >> >> val _arbiter = system.actorSelection("akka.tcp://[email protected]. >> 169:30002/user/arbiter").resolveOne()(Timeout(10000)) //line-a >> >> must be >> >> val _arbiter = system.actorSelection("akka.tcp://[email protected]: >> 30002//user/arbiter<http://[email protected]:30002/user/arbiter> >> ").resolveOne()(Timeout(10000)) //line-a >> >> >> Cheers, >> √ >> >> >> >> >> >> On Wed, Jan 15, 2014 at 2:34 PM, Jatin Puri <[email protected]> wrote: >> >>> Hello. >>> >>> I have spent quite some time on this but do not understand the reason on >>> why it is not working remotely when it works locally. >>> >>> This is the actor which is running on aws: >>> >>> object HelloWorld extends Bootable { >>> >>> val system = ActorSystem("Node1-J", ConfigFactory.parseString(""" >>> akka{ >>> actor { >>> provider = "akka.remote.RemoteActorRefProvider" >>> } >>> >>> remote { >>> netty.tcp { >>> hostname = "" >>> port = 30004 >>> } >>> } >>> } >>> """)) >>> def main(args: Array[String]) { >>> val arbiter = system.actorOf(Props[Arbiter], "arbiter") >>> } >>> >>> def startup() { >>> } >>> >>> def shutdown() { >>> system.shutdown() >>> } >>> >>> } >>> >>> >>> And then a simple actor on my computer: >>> val system = ActorSystem("Node2-J", ConfigFactory.parseString(""" >>> akka{ >>> actor { >>> provider = "akka.remote.RemoteActorRefProvider" >>> } >>> >>> remote { >>> netty.tcp { >>> hostname = "" >>> port = 30010 >>> } >>> } >>> } >>> """)) >>> val _arbiter = system.actorSelection("akka.tcp:// >>> [email protected]:30002/user/arbiter").resolveOne()(Timeout(10000)) >>> //line-a >>> >>> As soon as line-a is executed, I get the below error on my aws console: >>> >>> [ERROR] [01/15/2014 13:18:36.808] [Node1-J-akka.actor.default-dispatcher-2] >>> [akka://Node1-J/system/endpointManager/reliableEndpointWriter-akka. >>> tcp%3A%2F%2FNode2-J%40127.0.1.1%3A30010-0/endpointWriter] dropping >>> message [class akka.actor.SelectChildName] for non-local recipient >>> [Actor[akka.tcp://[email protected]:30002/]] arriving at >>> [akka.tcp://[email protected]:30002] inbound addresses are >>> [akka.tcp://[email protected]:30002] >>> >>> What is going wring here? I am using akka-2.2.3 >>> >>> >>> >>> -- >>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>> >>>>>>>>>> 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 http://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> >> >> -- >> Cheers, >> √ >> >> * Viktor Klang* >> *Director of Engineering* >> Typesafe <http://www.typesafe.com/> >> >> Twitter: @viktorklang >> > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: http://akka.io/faq/ > >>>>>>>>>> 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 http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/groups/opt_out. > -- Cheers, √ *Viktor Klang* *Director of Engineering* Typesafe <http://www.typesafe.com/> Twitter: @viktorklang -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> 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 http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
