Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
AskTimeoutException : Sending to terminated ref breaks promises
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nitin  
View profile  
 More options May 26 2012, 4:23 pm
From: Nitin <nitin.mo...@gmail.com>
Date: Sat, 26 May 2012 13:23:10 -0700 (PDT)
Local: Sat, May 26 2012 4:23 pm
Subject: AskTimeoutException : Sending to terminated ref breaks promises

Hi,

When I am creating an actor I keep getting this exception. This is thrown
only when I run it from command line. Through the IDE it's fine - it does
not throw an AskTimeoutException.  

akka.pattern.AskTimeoutException: sending to terminated ref breaks promises
at akka.pattern.AskSupport$class.ask(AskSupport.scala:76) at
akka.pattern.package$.ask(package.scala:43) at
akka.pattern.AskSupport$AskableActorRef.$qmark(AskSupport.scala:153) at
akka.actor.ActorSystemImpl.actorOf(ActorSystem.scala:466) at

Following is the code used for creating the actor.

ActorSystem actorSystem = ActorSystem.create("test");

ActorRef actor = null;
if(something ...) {
  actor = actorSystem.actorOf(new Props(new UntypedActorFactory() {
    @Override
    public Actor create() {
      return new MyActor("param1", "param2");
    }
  }), "first");

}

Any help in this regards would be appreciated.

Regards
Nitin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roland Kuhn  
View profile   Translate to Translated (View Original)
 More options May 26 2012, 4:27 pm
From: Roland Kuhn <goo...@rkuhn.info>
Date: Sat, 26 May 2012 22:27:41 +0200
Local: Sat, May 26 2012 4:27 pm
Subject: Re: [akka-user] AskTimeoutException : Sending to terminated ref breaks promises

Hi Nitin,

26 maj 2012 kl. 22:23 skrev Nitin:

> Hi,

> When I am creating an actor I keep getting this exception. This is thrown only when I run it from command line. Through the IDE it's fine - it does not throw an AskTimeoutException.  

> akka.pattern.AskTimeoutException: sending to terminated ref breaks promises at akka.pattern.AskSupport$class.ask(AskSupport.scala:76) at akka.pattern.package$.ask(package.scala:43) at akka.pattern.AskSupport$AskableActorRef.$qmark(AskSupport.scala:153) at akka.actor.ActorSystemImpl.actorOf(ActorSystem.scala:466) at

This means that your actorSystem is stopped already when you try to call actorOf.

> Following is the code used for creating the actor.

> ActorSystem actorSystem = ActorSystem.create("test");

> ActorRef actor = null;
> if(something ...) {
>   actor = actorSystem.actorOf(new Props(new UntypedActorFactory() {
>     @Override
>     public Actor create() {
>       return new MyActor("param1", "param2");
>     }
>   }), "first");
> }

Could it be that there are more errors printed? Either that, or you leave out too much in this code snippet.

Regards,

Roland Kuhn
Typesafe – The software stack for applications that scale.
twitter: @rolandkuhn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »