[ERROR] [02/03/2014 18:40:19.248] [OrchestrationApplication-akka.actor.default-dispatcher-2] [akka.dispatch.Dispatcher] actor name [actorName1] is not unique!
akka.actor.InvalidActorNameException: actor name [actorName1] is not
unique!    Â
at akka.actor.dungeon.ChildrenContainer$NormalChildrenContainer.reserve(ChildrenContainer.scala:130)
...[ERROR] [02/03/2014 18:40:19.248] [OrchestrationApplication-akka.actor.default-dispatcher-2] [akka.dispatch.Dispatcher] actor name [actorName2] is not unique!
akka.actor.InvalidActorNameException: actor name [actorName2] is not
unique!    Â
--
>>>>>>>>>> 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 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/groups/opt_out.
      for(String nomeName : listActorName){
           Â
            final ActorRef actor = getActor(actorName);        Â
                 Â
            Patterns.ask(actor, inputMessage, Conf.sectionTimeout).
onComplete(new OnComplete<Object>() {
               @Override
               public void onComplete(Throwable t, Object result) throws Throwable {
                Â
                  if(t != null){
                     do something!....
                  }
                  else{
                     do something else!....
                  }
                 Â
               }
            }, getContext().dispatcher());
           Â
         }
................      return getContext().actorOf(Props.create(MyServiceActor.class).withRouter(new SmallestMailboxRouter(5)), actorName);
private ActorRef getActor(String actorName) {
   Option<ActorRef> child = getContext().child(actorName);
   if(child.isDefined())
      return child.get();
   else
On Wed, Feb 5, 2014 at 1:22 PM, ccirim <carlo.c...@gmail.com> wrote:
      for(String nomeName : listActorName){What is a listActorName and what does it contain?
ÂÂ Â Â Â Â Â Â Â Â Â Â Â
            final ActorRef actor = getActor(actorName);        Â
                 Â
            Patterns.ask(actor, inputMessage, Conf.sectionTimeout).What is an inputMessage and how long is a sectionTimeout?
ÂonComplete(new OnComplete<Object>() {
               @Override
               public void onComplete(Throwable t, Object result) throws Throwable {
                Â
                  if(t != null){
                     do something!....
                  }
                  else{
                     do something else!....
                  }
Why does this section need to do an if-check on the "t" for this problem to manifest?
ÂÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
               }
            }, getContext().dispatcher());
           Â
         }
................      return getContext().actorOf(Props.create(MyServiceActor.class).withRouter(new SmallestMailboxRouter(5)), actorName);
private ActorRef getActor(String actorName) {
   Option<ActorRef> child = getContext().child(actorName);
   if(child.isDefined())
      return child.get();
   elseDoes this require a MyServiceActor for the problem to manifest and what does a MyServiceActor do?Does this also require a SmallestMailboxRouter or even a Router at all to manifest?
Please just send a minimized (no code that isn't absolutely required to reproduce) and self-contained, context-free example to reproduce.
--
Patrik Nordwall
Typesafe -Â Â Reactive apps on the JVM
Twitter: @patriknw
Hi All,ÂÂ I got the same problem while reusing the akka actors by their names, you have mentioned accessing of Future object returned by using getSender.tell() method. I understood the cause of problem, but you have not mentioned solution for this problem.Â
1. What configuration should be used to avoid this problem?
2. Is there any other way to avoid this problem?
Thanks & RegardsKrishna Kadam
--
>>>>>>>>>> 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.