play.api.UnexpectedException:意外异常[TimeoutException:期货在[10000毫秒]后超时]

我尝试运行使用Play 2.1.0的现有项目时遇到以下错误 . 有任何想法吗?

[错误]申请[/] - ! @ 6jfa870fl - 内部服务器错误,对于(GET)[/ web / login] - > play.api.UnexpectedException:在play.core.ReloadableApplication $$ anonfun $ get的意外异常[TimeoutException:Futures timeout out [10000毫秒]]之后$ 1 $$ anonfun $ 1.apply(ApplicationProvider.scala:142)〜[play_2.10.jar:2.1.0] at play.core.ReloadableApplication $$ anonfun $ get $ 1 $$ anonfun $ 1.apply(ApplicationProvider.scala:106 )〜[play_2.10.jar:2.1.0] scala.Option.map(Option.scala:145)〜[scala-library.jar:na] at play.core.ReloadableApplication $$ anonfun $ get $ 1.apply (ApplicationProvider.scala:106)〜[play_2.10.jar:2.1.0] at play.core.ReloadableApplication $$ anonfun $ get $ 1.apply(ApplicationProvider.scala:104)〜[play_2.10.jar:2.1 . 0] at scala.util.Either $ RightProjection.flatMap(Either.scala:523)[scala-library.jar:na]引起:java.util.concurrent.TimeoutException:期货在[10000毫秒]之后在scala上超时 . concurrent.impl.Promise $ defaultPromise.ready(Promise.scala:96)〜[scala-library.jar:na] at scala.concurrent.im pl.Promise $ DefaultPromise.ready(Promise.scala:58)〜[scala-library.jar:na] scala.concurrent.Await $$ anonfun $ ready $ 1.apply(package.scala:86)〜[scala-library .jar:na] at scala.concurrent.Await $$ anonfun $ ready $ 1.apply(package.scala:86)〜[scala-library.jar:na] at scala.concurrent.BlockContext $ DefaultBlockContext $ .blockOn(BlockContext . scala:53)〜[scala-library.jar:na] at scala.concurrent.Await $ .ready(package.scala:86)〜[scala-library.jar:na]

回答(2)

2 years ago

最好的猜测:有一个数据库调用或与登录相关的webservice调用失败 .

如果您为处理(GET)[/ web / login]的控制器提供代码,我可以为您提供更多帮助

2 years ago

事实证明,应用程序未连接到API服务器 . 错误输出错误:/