Hi Chanan,

your exception log is missing the important part: which exception caused
this configuration problem?

Regards,

Roland



On Fri, May 9, 2014 at 1:38 PM, Chanan Braunstein <
[email protected]> wrote:

> Hello,
>
> I am sure I am missing something obvious, but I don't see it. I created a
> simple priority mailbox similar to the one in the doc:
>
> package services;
> ...
> public class PriorityMailbox extends UnboundedPriorityMailbox {
>
>     public PriorityMailbox(ActorSystem.Settings settings, Config config) {
>         // Create a new PriorityGenerator, lower prio means more important
>         super(new PriorityGenerator() {
>             @Override
>             public int gen(Object message) {
>                 if (message instanceof Queries.CourseAverageRequest)
>                     return 0; // 'highpriority messages should be treated
> first if possible
>                 else if (message instanceof Queries.GroupAverageRequest)
>                     return 1; // 'lowpriority messages should be treated
> last if possible
>                 else if (message.equals(PoisonPill.getInstance()))
>                     return 4; // PoisonPill when no other left
>                 else
>                     return 2; // By default they go between high and low
> prio
>             }
>         });
>     }
> }
>
> priority-dispatcher {
>   mailbox-type = "services.PriorityMailbox"
> }
>
> and create the actor (CoursesActor.java:30):
> return
> getContext().actorOf(Props.create(CourseActor.class).withDispatcher("priority-dispatcher"),
> name);
>
> And at runtime I get:
>
> [ERROR] [05/09/2014 07:24:24.417]
> [application-akka.actor.default-dispatcher-12]
> [akka://application/user/gradebook/courses] configuration problem while
> creating [akka://application/user/gradebook/courses/C0] with dispatcher
> [priority-dispatcher] and mailbox [akka.actor.default-mailbox]
> akka.ConfigurationException: configuration problem while creating
> [akka://application/user/gradebook/courses/C0] with dispatcher
> [priority-dispatcher] and mailbox [akka.actor.default-mailbox]
> at akka.actor.LocalActorRefProvider.actorOf(ActorRefProvider.scala:722)
>  at akka.actor.dungeon.Children$class.makeChild(Children.scala:207)
> at akka.actor.dungeon.Children$class.actorOf(Children.scala:38)
>  at akka.actor.ActorCell.actorOf(ActorCell.scala:369)
> at services.CoursesActor.getCourse(CoursesActor.java:30)
>
> Where am I going wrong?
>
>  --
> >>>>>>>>>> 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.
>



-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      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