java - Play Framework Hanging when hitting app in browser -
i running app in play using activator run
, , maybe 3 out of 5 times, hang, when go http://localhost:9000/
, sits there spinning forever.
i'm seeing lot of promise timed out
errors also.
where should issue?
i turned logging loglevel := level.debug
, see nothing amiss. while app spinning, see no logging @ all.
if let sit , spin long time (~5 min) give error:
[info] play.api.http.httperrorhandlerexceptions$$anon$1: execution exception[[privilegedactionexception: null]] [info] @ play.api.http.httperrorhandlerexceptions$.throwabletousefulexception(httperrorhandler.scala:265) ~[play_2.11-2.4.3.jar:2.4.3] [info] @ play.api.http.defaulthttperrorhandler.onservererror(httperrorhandler.scala:191) ~[play_2.11-2.4.3.jar:2.4.3] [info] @ play.core.server.server$class.logexceptionandgetresult$1(server.scala:50) [play-server_2.11-2.4.3.jar:2.4.3] [info] @ play.core.server.server$$anonfun$gethandlerfor$4.apply(server.scala:59) [play-server_2.11-2.4.3.jar:2.4.3] [info] @ play.core.server.server$$anonfun$gethandlerfor$4.apply(server.scala:57) [play-server_2.11-2.4.3.jar:2.4.3] [info] @ scala.util.either$rightprojection.flatmap(either.scala:522) [scala-library.jar:na] [info] @ play.core.server.server$class.gethandlerfor(server.scala:57) [play-server_2.11-2.4.3.jar:2.4.3] [info] @ play.core.server.nettyserver.gethandlerfor(nettyserver.scala:33) [play-netty-server_2.11-2.4.3.jar:2.4.3] [info] @ play.core.server.netty.playdefaultupstreamhandler$$anonfun$8.apply(playdefaultupstreamhandler.scala:139) [play-netty-server_2.11-2.4.3.jar:2.4.3] [info] @ play.core.server.netty.playdefaultupstreamhandler$$anonfun$8.apply(playdefaultupstreamhandler.scala:139) [play-netty-server_2.11-2.4.3.jar:2.4.3] [info] caused by: java.security.privilegedactionexception: null [info] @ java.security.accesscontroller.doprivileged(native method) ~[na:1.8.0_20] [info] @ play.runsupport.reloader$.play$runsupport$reloader$$withreloadercontextclassloader(reloader.scala:39) ~[na:na] [info] @ play.runsupport.reloader.reload(reloader.scala:321) ~[na:na] [info] @ play.core.server.devserverstart$$anonfun$maindev$1$$anon$1$$anonfun$get$1.apply(devserverstart.scala:113) ~[play-server_2.11-2.4.3.jar:2.4.3] [info] @ play.core.server.devserverstart$$anonfun$maindev$1$$anon$1$$anonfun$get$1.apply(devserverstart.scala:111) ~[play-server_2.11-2.4.3.jar:2.4.3] [info] @ scala.concurrent.impl.future$promisecompletingrunnable.liftedtree1$1(future.scala:24) ~[scala-library.jar:na] [info] @ scala.concurrent.impl.future$promisecompletingrunnable.run(future.scala:24) ~[scala-library.jar:na] [info] @ java.util.concurrent.forkjointask$runnableexecuteaction.exec(forkjointask.java:1423) ~[na:1.8.0_20] [info] @ java.util.concurrent.forkjointask.doexec(forkjointask.java:289) ~[na:1.8.0_20] [info] @ java.util.concurrent.forkjoinpool$workqueue.runtask(forkjoinpool.java:902) ~[na:1.8.0_20] [info] caused by: java.util.concurrent.timeoutexception: futures timed out after [300000 milliseconds] [info] @ scala.concurrent.impl.promise$defaultpromise.ready(promise.scala:219) ~[scala-library.jar:na] [info] @ scala.concurrent.impl.promise$defaultpromise.result(promise.scala:223) ~[scala-library.jar:na] [info] @ scala.concurrent.await$$anonfun$result$1.apply(package.scala:190) ~[scala-library.jar:na] [info] @ scala.concurrent.blockcontext$defaultblockcontext$.blockon(blockcontext.scala:53) ~[scala-library.jar:na] [info] @ scala.concurrent.await$.result(package.scala:190) ~[scala-library.jar:na] [info] @ play.forkrun.forkrun$$anonfun$askforreload$1.apply(forkrun.scala:127) ~[na:na] [info] @ play.forkrun.forkrun$$anonfun$askforreload$1.apply(forkrun.scala:125) ~[na:na] [info] @ play.runsupport.reloader$$anonfun$reload$1.apply(reloader.scala:323) ~[na:na] [info] @ play.runsupport.reloader$$anon$3.run(reloader.scala:43) ~[na:na] [info] @ java.security.accesscontroller.doprivileged(native method) ~[na:1.8.0_20]
i should mention very simple app. doing nothing rendering html far.
its bad, because seems there lot of in framework, slow , terribly unreliable.
fork in run := true
added when starting app activators ui (for spawning processes) stop using ui given app (maybe add startup config in ide) or remember clear/comment/set false.
Comments
Post a Comment