OK, so I am confused now. Can you post a fully functional sample with configuration which reproduces the issue as Victor suggested earlier. Oleg
On Wednesday, February 5, 2014, ccirim <[email protected]> wrote: > I use 2.2.3 > > com\typesafe\akka\akka-actor_2.10\2.2.3\akka-actor_2.10-2.2.3.jar > org\scala-lang\scala-library\2.10.1\scala-library-2.10.1.jar > com\typesafe\config\1.0.2\config-1.0.2.jar > > ciao > carlo > > Il giorno mercoledì 5 febbraio 2014 17:22:47 UTC+1, Oleg Zhurakousky ha > scritto: >> >> What version of Akka you are using? >> Looking at your stack trace I am puzzled with this: >> >> at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask. >> exec(AbstractDispatcher.scala:386) >> >> I can't seem to find method AkkaForkJoinTask.exec(..) which takes any >> input parameters. >> >> Oleg >> >> >> On Wed, Feb 5, 2014 at 9:35 AM, ccirim <[email protected]> wrote: >> >> >> >> MyServiceActor1.class = ProtestiWrapper.class >> MyServiceActor2.class = CaseWrapper.class >> MyServiceActor3.class = OfferteWrapper.class >> MyServiceActor4.class = RegaliWrapper.class >> etc etc >> >> name of ProtestiWrapper.class is ngb.ProtestiWrapper >> >> public class ProtestiWrapper extends UntypedActor >> >> >> >> >> >> >> Il giorno mercoledì 5 febbraio 2014 15:25:53 UTC+1, ccirim ha scritto: >> >> this is the original code: >> >> for(String sectionName : sectionListName){ >> >> final ActorRef sectionActor = getActor(sectionName); >> >> >> Patterns.ask(sectionActor, inputSectionMessage, >> 300s).onComplete(new OnComplete<Object>() { >> >> @Override >> public void onComplete(Throwable t, Object result) >> throws Throwable { >> >> SectionOutput<?> section = null; >> >> if(t != null){ >> String nomeWrapper = >> sectionActor.path().name(); >> section = new SectionOutput<Object>(); >> section.setName(nomeWrapper); >> section.setError(t.toString()); >> section.setExecutionTime(Conf. >> sectionTimeout.duration().toMillis()); >> } >> else{ >> section = (SectionOutput<?>) result; >> } >> >> //... send section to aggregator >> >> } >> >> }, getContext().dispatcher()); >> >> } >> >> .... >> >> private ActorRef getActor(String actorName) { >> Option<ActorRef> child = getContext().child(actorName); >> if(child.isDefined()) >> return child.get(); >> else >> //return getContext().actorOf(Props.create(MyServiceActor.class). >> withRouter(new SmallestMailboxRouter(4)), actorName); >> return getContext().actorOf(SpringExtProvider.get(getContext(). >> system()).props(nomeActor).withRouter(new SmallestMailboxRouter >> (Conf.NUMBER_ROUTERS)), nomeActor); >> >> >> Conf.NUMBER_ROUTERS = 4 >> >> >> and this the ST: >> >> "ngb.ProtestiWrapper" is one of list actor name, >> >> [ERROR] [02/05/2014 15:23:46.102] [OrchestrationApplication-akka >> .actor.default-dispatcher-12] [akka.dispatch.Dispatcher] actor name >> [ngb.ProtestiWrapper] is not unique! >> akka.actor.InvalidActorNameException: actor name [ngb.ProtestiWrapper] >> is not unique! >> at akka.actor.dungeon.ChildrenContainer$NormalChildrenContainer. >> reserve(ChildrenContainer.scala:130) >> at akka.actor.dungeon.Children$class.reserveChild(Children.scala:77) >> at akka.actor.ActorCell.reserveChild(ActorCell.scala:338) >> at akka.actor.dungeon.Children$class.makeChild(Children.scala:186) >> at akka.actor.dungeon.Children$class.actorOf(Children.scala:38) >> at akka.actor.ActorCell.actorOf(ActorCell.scala:338) >> at com.cervedgroup.orchidea.orchestrator.actor.engine.DocumentA >> ctor.getActor(DocumentActor.java:377) >> at com.cervedgroup.orchidea.orchestrator.actor.engine.DocumentA >> ctor.executeSezioni(DocumentActor.java:181) >> at com.cervedgroup.orchidea.orchestrator.actor.engine.DocumentA >> ctor.access$2(DocumentActor.java:171) >> at com.cervedgroup.orchidea.orchestrator.actor.engine.DocumentA >> ctor$1.onComplete(DocumentActor.java:149) >> at akka.dispatch.OnComplete.internal(Future.scala:247) >> at akka.dispatch.OnComplete.internal(Future.scala:244) >> at akka.dispatch.japi$CallbackBridge.apply(Future.scala:174) >> at akka.dispatch.japi$CallbackBridge.apply(Future.scala:171) >> at scala.concurrent.impl.CallbackRunnable.run(Promise.scala >> >> -- > >>>>>>>>>> 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]<javascript:_e(%7B%7D,'cvml','akka-user%[email protected]');> > . > To post to this group, send email to > [email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');> > . > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/groups/opt_out. > -- >>>>>>>>>> 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.
