I got the problem solved, I was not initializing the actor system 
correctly. thanks anyway.

On Sunday, 19 January 2014 22:37:12 UTC+5:30, Amit Mula wrote:
>
> Hello guys,
>
> I am facing a difficulty with akka + spray routing. Help me understand the 
> below log.
>
> *[INFO] [01/19/2014 22:35:18.164] 
> [F3System-akka.actor.default-dispatcher-2] [akka://F3System/deadLetters] 
> Message [akka.io.Tcp$Bound] from 
> Actor[akka://F3System/user/IO-HTTP/listener-0#1139739091] to 
> Actor[akka://F3System/deadLetters] was not delivered. [1] dead letters 
> encountered. This logging can be turned off or adjusted with configuration 
> settings 'akka.log-dead-letters' and 
> 'akka.log-dead-letters-during-shutdown'.*
>
> Is it saying that the dispatcher is a deadLetter ?
>
> I am writing the following code to program my spray can endpoint actor. I 
> am obtaining the dispatcher from the highlighted code. Is it the wrong way 
> to obtain a dispatcher from a spray can endpoint?
>
> trait EndPoint extends HttpService {
>   
>   implicit def executionContext = actorRefFactory.dispatcher
>   
>   /*
>    * Implicit timeout for ask messages
>    */
>   implicit val timeout = Timeout(1000 seconds)
>
>   val serviceRoute = {
>   import com.fw3.authz.PEP.PEP
>     //route definition for the URLs starting with '/student'
>     get {
>     path("resource" / """\S+""".r / """\S+""".r) { (id, context) =>
> complete {
> val pepActor = actorRefFactory.actorOf(Props[PEP])
> val action = new Action("READ")
> val resource = new Resource("resource1",id,context)
> val subject = new Subject(id,context)
> val request = new AuthZRequest(subject,resource,action)
> val response = (pepActor ? request)
> response.mapTo[String]
>         }
>   }
> }
>   }
>
> }
>

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

Reply via email to