Getting timeout exception when requesting to remote actor
<p>I am using below code for requesting and getting response from remote actor.  But sometime Iam getting right response but sometime getting timeout exception. Testing both the actor on the same machine. Don't know what I am doing wrong</p>

<pre><code>final Timeout timeout = new Timeout(15, TimeUnit.SECONDS);
final Future&lt;Object&gt; future = Patterns.ask(remoteControllerActor, com, timeout);
final String result = (String) Await.result(future, timeout.duration());
</code></pre>

<p>Below Exception:</p>

<pre><code>java.util.concurrent.TimeoutException: Futures timed out after [15 seconds]
at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:219)
at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:223)
at scala.concurrent.Await$$anonfun$result$1.apply(package.scala:116)
at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53)
at scala.concurrent.Await$.result(package.scala:116)
at scala.concurrent.Await.result(package.scala)
</code></pre>