Hi Viktor,
I've been constructing the paths on-the-fly in the following manner:
context.actorSelection("akka://system/user/myApp/myActor_"+instance+"_"+symbol)
! aMessage
where instance is an Int and symbol is a String, and both change as I
iterate. To date, I haven't had any issues with this approach.
Cheers,
Bruce
On Wednesday, 12 February 2014 17:09:02 UTC-5, √ wrote:
>
> Hi Bruce,
>
> Looks to be some weird use of actorSelection:
> https://github.com/akka/akka/blob/v2.2.3/akka-actor/src/main/scala/akka/actor/ActorCell.scala#L493
>
>
> On Wed, Feb 12, 2014 at 11:03 PM, Bruce <[email protected] <javascript:>>wrote:
>
>> Hi all,
>>
>> I'm hoping that someone will be able point me in the right direction,
>> given their experience on what usually causes the following error.
>> *Note*: due to a confidentiality agreement, I'm unable to post the code
>> that causes it. There doesn't seem to be any direct information in the
>> stack trace that would identify my offending code. I've gone as far as
>> testing each individual message for null prior to sending, and nothing
>> shows up. I've also tried to trap the exception with fine-grained
>> try-catch blocks, and again nothing shows up. Any ideas?
>>
>> Thanks in advance,
>> Bruce
>>
>> 2014-02-12 16:55:24,372 ERROR [system-akka.actor.default-dispatcher-16]
>> a.a.OneForOneStrategy [Slf4jLogger.scala:66] Message is null
>> akka.actor.InvalidMessageException: Message is null
>> at akka.dispatch.Envelope$.apply(AbstractDispatcher.scala:29)
>> ~[akka-actor_2.10-2.2.3.jar:2.2.3]
>> at akka.actor.Cell$class.sendMessage(ActorCell.scala:259)
>> ~[akka-actor_2.10-2.2.3.jar:2.2.3]
>> at akka.actor.ActorCell.sendMessage(ActorCell.scala:338)
>> ~[akka-actor_2.10-2.2.3.jar:2.2.3]
>> at akka.actor.LocalActorRef.$bang(ActorRef.scala:389)
>> ~[akka-actor_2.10-2.2.3.jar:2.2.3]
>> at akka.actor.ActorRef.tell(ActorRef.scala:125)
>> ~[akka-actor_2.10-2.2.3.jar:2.2.3]
>> at
>> akka.actor.ActorCell$$anonfun$autoReceiveMessage$2.apply(ActorCell.scala:493)
>>
>> ~[akka-actor_2.10-2.2.3.jar:2.2.3]
>> at
>> akka.actor.ActorCell$$anonfun$autoReceiveMessage$2.apply(ActorCell.scala:493)
>>
>> ~[akka-actor_2.10-2.2.3.jar:2.2.3]
>> at
>> scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
>>
>> ~[scala-library.jar:na]
>> at scala.collection.Iterator$class.foreach(Iterator.scala:727)
>> ~[scala-library.jar:na]
>> at
>> akka.util.Collections$PartialImmutableValuesIterable$$anon$1.foreach(Collections.scala:27)
>>
>> ~[akka-actor_2.10-2.2.3.jar:2.2.3]
>> at
>> akka.util.Collections$PartialImmutableValuesIterable.foreach(Collections.scala:52)
>>
>> ~[akka-actor_2.10-2.2.3.jar:2.2.3]
>> at
>> scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
>>
>> ~[scala-library.jar:na]
>> at akka.actor.ActorCell.autoReceiveMessage(ActorCell.scala:493)
>> ~[akka-actor_2.10-2.2.3.jar:2.2.3]
>> at akka.actor.ActorCell.invoke(ActorCell.scala:455)
>> ~[akka-actor_2.10-2.2.3.jar:2.2.3]
>> at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237)
>> [akka-actor_2.10-2.2.3.jar:2.2.3]
>> at akka.dispatch.Mailbox.run(Mailbox.scala:219)
>> [akka-actor_2.10-2.2.3.jar:2.2.3]
>> at
>> akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)
>>
>> [akka-actor_2.10-2.2.3.jar:2.2.3]
>> at
>> scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
>> [scala-library.jar:na]
>> at
>> scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
>>
>> [scala-library.jar:na]
>> at
>> scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
>> [scala-library.jar:na]
>> at
>> scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
>>
>> [scala-library.jar:na]
>>
>> --
>> >>>>>>>>>> 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:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> 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*
> *Chief Architect - **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.