在设置promise.akka.actor.typed.timeout之后,播放2.0.3仍然让期货在[5000]之后超时

时间:2012-08-14 09:08:07

标签: playframework akka

即使我将以下超时值设置为10秒,我仍然会收到此错误。该系统是Play 2.0.3。

2012-08-14T08:52:20+00:00 app[web.1]: play.core.ActionInvoker$$anonfun$receive$1$$anon$1: Execution exception [[TimeoutException: Futures timed out after [5000] milliseconds]]
2012-08-14T08:52:20+00:00 app[web.1]:   at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:134) [play_2.9.1-2.0.3.jar:2.0.3]
2012-08-14T08:52:20+00:00 app[web.1]:   at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:115) [play_2.9.1-2.0.3.jar:2.0.3]
2012-08-14T08:52:20+00:00 app[web.1]:   at akka.actor.Actor$class.apply(Actor.scala:318) [akka-actor-2.0.2.jar:2.0.2]
2012-08-14T08:52:20+00:00 app[web.1]:   at play.core.ActionInvoker.apply(Invoker.scala:113) [play_2.9.1-2.0.3.jar:2.0.3]
2012-08-14T08:52:20+00:00 app[web.1]:   at akka.actor.ActorCell.invoke(ActorCell.scala:626) [akka-actor-2.0.2.jar:2.0.2]
2012-08-14T08:52:20+00:00 app[web.1]:   at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:197) [akka-actor-2.0.2.jar:2.0.2]
2012-08-14T08:52:20+00:00 app[web.1]: Caused by: java.util.concurrent.TimeoutException: Futures timed out after [5000] milliseconds
2012-08-14T08:52:20+00:00 app[web.1]:   at akka.dispatch.DefaultPromise.ready(Future.scala:870) ~[akka-actor-2.0.2.jar:2.0.2]
2012-08-14T08:52:20+00:00 app[web.1]:   at akka.dispatch.DefaultPromise.result(Future.scala:874) ~[akka-actor-2.0.2.jar:2.0.2]
2012-08-14T08:52:20+00:00 app[web.1]:   at akka.dispatch.Await$.result(Future.scala:74) ~[akka-actor-2.0.2.jar:2.0.2]
2012-08-14T08:52:20+00:00 app[web.1]:   at play.api.libs.concurrent.AkkaPromise.await(Akka.scala:43) ~[play_2.9.1-2.0.3.jar:2.0.3]
2012-08-14T08:52:20+00:00 app[web.1]:   at play.api.libs.concurrent.Promise$class.await(Promise.scala:55) ~[play_2.9.1-2.0.3.jar:2.0.3]
2012-08-14T08:52:20+00:00 app[web.1]:   at play.api.libs.concurrent.AkkaPromise.await(Akka.scala:28) ~[play_2.9.1-2.0.3.jar:2.0.3]



$ tail -1 conf/application.conf 
promise.akka.actor.typed.timeout=10s

1 个答案:

答案 0 :(得分:0)

尝试:

play.akka.actor.typed.timeout=10s