[INFO] [03/04/2015 19:04:34.408] [main] [Remoting] Remoting started; listening on addresses :[akka.tcp://RemoteActorSystem@127.0.0.1:2552]
[INFO] [03/04/2015 19:04:34.410] [main] [Remoting] Remoting now listens on addresses: [akka.tcp://RemoteActorSystem@127.0.0.1:2552]
Actor System instance: akka://RemoteActorSystem
props: Props(Deploy(,Config(SimpleConfigObject({})),NoRouter,NoScopeGiven,,),class akka_tests.java.actor.GreetingActor,List())
setup: end at Wed Mar 04 19:04:34 CET 2015.
Get Actor Reference to greetingActor: Actor[akka://RemoteActorSystem/user/greetingActor#-1752332594]
setup: end at Wed Mar 04 19:04:35 CET 2015.
check: start at Wed Mar 04 19:04:35 CET 2015.
Actor Reference instance is: Actor[akka://RemoteActorSystem/user/$a#-314651576]
[INFO] [03/04/2015 19:04:35.429] [RemoteActorSystem-akka.actor.default-dispatcher-6] [akka://RemoteActorSystem/user/$a] akka_tests.java.message.Greeting: Hello "Test Greeting"
[INFO] [03/04/2015 19:04:35.434] [RemoteActorSystem-akka.actor.default-dispatcher-2] [akka://RemoteActorSystem/deadLetters] Message [java.lang.String] from Actor[akka://RemoteActorSystem/user/$a#-314651576] to Actor[akka://RemoteActorSystem/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'.
[INFO] [03/04/2015 19:04:35.439] [RemoteActorSystem-akka.actor.default-dispatcher-6] [akka://RemoteActorSystem/user/$a] java.lang.String: "Test String"
[WARN] [03/04/2015 19:04:35.439] [RemoteActorSystem-akka.actor.default-dispatcher-6] [akka://RemoteActorSystem/user/$a] Unknown message type akka_tests.java.message.GenericMessage, contents: "akka_tests.java.message.GenericMessage@1837e72"
[INFO] [03/04/2015 19:04:35.442] [RemoteActorSystem-akka.actor.default-dispatcher-5] [akka://RemoteActorSystem/deadLetters] Message [java.lang.String] from Actor[akka://RemoteActorSystem/user/$a#-314651576] to Actor[akka://RemoteActorSystem/deadLetters] was not delivered. [2] dead letters encountered. This logging canbe turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.
check: end at Wed Mar 04 19:04:35 CET 2015.
check (remote): start at Wed Mar 04 19:04:35 CET 2015.
Akka Config: akka {
loglevel = "INFO"
actor.provider = "akka.remote.RemoteActorRefProvider"
remote.enabled-transports = ["akka.remote.netty.tcp"]
remote.netty.tcp.hostname="127.0.0.1"
remote.netty.tcp.port = 0
}
[INFO] [03/04/2015 19:04:35.980] [main] [Remoting] Starting remoting
[INFO] [03/04/2015 19:04:36.005] [main] [Remoting] Remoting started; listening on addresses :[akka.tcp://RemoteActorSystem-Cl...@127.0.0.1:63830]
[INFO] [03/04/2015 19:04:36.005] [main] [Remoting] Remoting now listens on addresses: [akka.tcp://RemoteActorSystem-Cli...@127.0.0.1:63830]
systemClient: akka://RemoteActorSystem-Client
Actor System instance: akka://RemoteActorSystem-Client
remote actor system base path: akka.tcp://RemoteActorSystem@127.0.0.1:2552/user/
--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Patrik Nordwall
Typesafe - Reactive apps on the JVM
Twitter: @patriknw
From the error it appears to me that:1. You are attempting to create a remote actor from a peer
2. This peer isn't able to properly interact with [akka.tcp://RemoteActorSystem-Cli...@127.0.0.1:55003]
Are you using a Remote or Clustered ActorRefProviders on both nodes?
Is your remote transport properly configured to run on those ports? Is it starting properly? Is your networking configured to allow access to those ports (software firewalls on a node have burned me in the past).
Does the RemoteActorSystem-Client AS exist on that port, or is some other AS running there?
There's a lot to look at, but it ought to work once everything is wired properly.
Maybe look for a working example (from Activator) and then adapt the working thing to your needs?
--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Hi Patrick,
thank you very much for the time you spend here ...
> I tried to run your code before my first reply here, but it was too complicated and I did not have the time to untangle it.
strange, I'm trying to create an Akka System and create an instance of
an Actor for remote usage.
I'd like to make it work in the following way (maybe it's a wrong way
with Akka):
a "server" publisher of actors available to remote consumers (like an
EJB server), and a "client" that does the lookup and consume remote
actors.
I know that the code is full of tests/commented code etc, I'll clean
up when all works as expected :-) ; because my priority here is to
migrate Java code in the Groovy version, and then use in as a sample
in my Grails-Akka Plugin (where I already have some minimal Groovy
Shell scripts as a sample, but not working with remote).
> I think it would be great if you can first try with the Activator sample Akka Remote Samples with Java and then add minimal things until it does not work as you expect.
ok, I'll try even this ... but from what I see in the code you never
lookup a remote actor directly from an Akka System,
could it be this
my pitfall ? If it is, is there a good reason for this behavior ?
Sorry but I didn't find a clear answer/example to this question, even
after reading a lot of docs and blogs on Akka ...
> system.actorSelection and context.actorSelection should both work.
the strange thing here is that using the published actor directly from
system.actorSelection (using the Java API) I get exception during
actor creation (but only when calling it via remote), but really I
don't understand what could be.
Maybe only some more info on this (in Akka documentation, really
helpful) can help me and others.
Akka is really a great framework, but it needs rethinking of some
things, thanks for the patience :-) ...
Thanks for now,
Sandro
--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.