On Thu, Jan 9, 2014 at 5:16 PM, Peter Wolf <[email protected]> wrote:
> Thanks Patrik, > > I tried this... > > -Dakka.actor.provider=akka.cluster.ClusterActorRefProvider > -Dakka.remote.netty.tcp.port=2552 > -Dakka.remote.netty.tcp.port.hostname=127.0.0.1 > ah, sorry, it should be akka.remote.netty.tcp.hostname /Patrik > and got this error... > > [INFO] [01/09/2014 11:16:28.806] [main] [Remoting] Starting remoting > [ERROR] [01/09/2014 11:16:29.227] [Ping-akka.actor.default-dispatcher-4] > [akka://Ping/system/endpointManager] Cannot instantiate transport > [akka.remote.transport.netty.NettyTransport]. Make sure it extends > [akka.remote.transport.Transport] and has constructor with > [akka.actor.ExtendedActorSystem] and [com.typesafe.config.Config] parameters > java.lang.IllegalArgumentException: Cannot instantiate transport > [akka.remote.transport.netty.NettyTransport]. Make sure it extends > [akka.remote.transport.Transport] and has constructor with > [akka.actor.ExtendedActorSystem] and [com.typesafe.config.Config] parameters > at > akka.remote.EndpointManager$$anonfun$8$$anonfun$3.applyOrElse(Remoting.scala:620) > at > akka.remote.EndpointManager$$anonfun$8$$anonfun$3.applyOrElse(Remoting.scala:618) > at > scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:33) > at scala.util.Failure$$anonfun$recover$1.apply(Try.scala:185) > ... > > BTW I am using akka-cluster 2.10:2.2.3 > > P > > > > > > > On Thursday, January 9, 2014 3:30:50 AM UTC-5, Patrik Nordwall wrote: > >> You must also specify the hostname config property that the remoting will >> bind to. >> >> akka.remote.netty.tcp.port.hostname=127.0.0.1 >> >> 127.0.0.1 or localhost will of course only work if you run all nodes on >> the same host. >> >> The default is to use `InetAddress.getLocalHost.getHostAddress` if that >> property is not specified. The value of that is very environment specific. >> In your case it resolves to 192.168.0.108 >> >> Cheers, >> Patrik >> >> >> On Thu, Jan 9, 2014 at 4:26 AM, Peter Wolf <[email protected]> wrote: >> >>> Hi, >>> >>> I am experimenting with Remote Actors, and I want to run two systems on >>> the same machine-- Ping and Pong. >>> >>> I am using these properties for Pong >>> >>> -Dakka.actor.provider=akka.cluster.ClusterActorRefProvider >>> -Dakka.remote.netty.tcp.port=2553 >>> >>> Pong wants to talk to Ping. If I use a raw IP address it works fine >>> >>> val ping = system.actorSelection("akka.tcp://[email protected]:2552/ >>> user/ping") >>> >>> But it doesn't work if I use localhost or 127.0.0.1 >>> >>> val ping = system.actorSelection("akka.tcp://Ping@localhost:2552/ >>> user/ping") >>> >>> What is the correct way to implement this so that it would run on any >>> machine? >>> >>> Thanks >>> Peter >>> >>> >>> >>> -- >>> >>>>>>>>>> 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. >>> >> >> >> >> -- >> >> Patrik Nordwall >> Typesafe <http://typesafe.com/> - Reactive apps on the JVM >> Twitter: @patriknw >> >> -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> 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.
