I have some test code written using Scalatest which among things runs 
akka-http client code to make requests against an HTTP service.

To test some error scenarios I use a URL that is incorrect, i.e. does not 
offer the resource I expect to access. If the URL contains a hostname that 
is unresolvable I get the failure shown below in initiating an Actor that 
is apparently part of SimpleDnsManager.

If I provide a URL that is resolvable the failure does not occur.

I have checked the config for the ActorSystem that my test code is using 
and it does seem to include an entry for akka.actor.deployment.router.

Anybody else seen this?  I think I can boil this down to an easily 
reproducible case and will do so if it helps fix a problem.

akka.actor.ActorInitializationException: exception during creation
    at akka.actor.ActorInitializationException$.apply(Actor.scala:172) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.actor.ActorCell.create(ActorCell.scala:605) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:460) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.actor.ActorCell.systemInvoke(ActorCell.scala:482) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:282) 
[akka-actor_2.11-2.4.0.jar:na]
    at akka.dispatch.Mailbox.run(Mailbox.scala:223) 
[akka-actor_2.11-2.4.0.jar:na]
    at akka.dispatch.Mailbox.exec(Mailbox.scala:234) 
[akka-actor_2.11-2.4.0.jar:na]
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) 
[na:na]
    at 
scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
 
[na:na]
    at 
scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) 
[na:na]
    at 
scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
 
[na:na]
Caused by: java.lang.reflect.InvocationTargetException: null
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method) ~[na:1.8.0_60]
    at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 
~[na:1.8.0_60]
    at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 
~[na:1.8.0_60]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422) 
~[na:1.8.0_60]
    at akka.util.Reflect$.instantiate(Reflect.scala:65) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.actor.ArgsReflectConstructor.produce(Props.scala:348) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.actor.Props.newActor(Props.scala:259) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.actor.ActorCell.newActor(ActorCell.scala:561) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.actor.ActorCell.create(ActorCell.scala:587) 
~[akka-actor_2.11-2.4.0.jar:na]
    ... 9 common frames omitted
Caused by: akka.ConfigurationException: configuration problem while 
creating [akka://QueueActivationFailureSpec/system/IO-DNS/inet-address] 
with router dispatcher [akka.actor.default-dispatcher] and mailbox 
[akka.actor.default-mailbox] and routee dispatcher 
[akka.actor.default-dispatcher] and mailbox [akka.actor.default-mailbox]
    at akka.actor.LocalActorRefProvider.actorOf(ActorRefProvider.scala:795) 
~[akka-actor_2.11-2.4.0.jar:na]
    at 
akka.remote.RemoteActorRefProvider.actorOf(RemoteActorRefProvider.scala:297) 
~[akka-remote_2.11-2.4.0.jar:na]
    at akka.actor.dungeon.Children$class.makeChild(Children.scala:220) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.actor.dungeon.Children$class.actorOf(Children.scala:38) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.actor.ActorCell.actorOf(ActorCell.scala:373) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.io.SimpleDnsManager.<init>(SimpleDnsManager.scala:15) 
~[akka-actor_2.11-2.4.0.jar:na]
    ... 18 common frames omitted
*Caused by: akka.ConfigurationException: Configuration missing for router 
[akka://QueueActivationFailureSpec/system/IO-DNS/inet-address] in 
'akka.actor.deployment' section.*
    at akka.routing.FromConfig.verifyConfig(RouterConfig.scala:311) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.routing.RoutedActorRef.<init>(RoutedActorRef.scala:40) 
~[akka-actor_2.11-2.4.0.jar:na]
    at akka.actor.LocalActorRefProvider.actorOf(ActorRefProvider.scala:793) 
~[akka-actor_2.11-2.4.0.jar:na]
    ... 23 common frames omitted

-- 
>>>>>>>>>>      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 [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/d/optout.

Reply via email to