Playframework 2.4 Java - default "play-java" template takes over 1 minute to run / doesn't hot reload -


i'm using default "play-java" template play framework 2.4, , when run activator run takes 1 minute , 40 seconds load. typical? seems way slow.

additionally, if make changes controller... adding system.out.println("test") index(), update next time hit refresh in browser taking 10 seconds. if remove it, hot reloading stops working. takes forever reload , failing error:

[error] - application -  [info]  [info] ! @6mg97jmb5 - internal server error, (get) [/importplaylist?url=www.bob.com] -> [info]   [info] play.api.http.httperrorhandlerexceptions$$anon$1: execution exception[[timeoutexception: futures timed out after [300000 milliseconds]]] [info]  @ play.api.http.httperrorhandlerexceptions$.throwabletousefulexception(httperrorhandler.scala:254) ~[play_2.11-2.4.0.jar:2.4.0] [info]  @ play.api.http.defaulthttperrorhandler.onservererror(httperrorhandler.scala:180) ~[play_2.11-2.4.0.jar:2.4.0] [info]  @ play.core.server.server$class.logexceptionandgetresult$1(server.scala:50) [play-server_2.11-2.4.0.jar:2.4.0] [info]  @ play.core.server.server$$anonfun$gethandlerfor$4.apply(server.scala:59) [play-server_2.11-2.4.0.jar:2.4.0] [info]  @ play.core.server.server$$anonfun$gethandlerfor$4.apply(server.scala:57) [play-server_2.11-2.4.0.jar:2.4.0] [info]  @ scala.util.either$rightprojection.flatmap(either.scala:522) [scala-library-2.11.6.jar:na] [info]  @ play.core.server.server$class.gethandlerfor(server.scala:57) [play-server_2.11-2.4.0.jar:2.4.0] [info]  @ play.core.server.nettyserver.gethandlerfor(nettyserver.scala:33) [play-netty-server_2.11-2.4.0.jar:2.4.0] [info]  @ play.core.server.netty.playdefaultupstreamhandler$$anonfun$8.apply(playdefaultupstreamhandler.scala:139) [play-netty-server_2.11-2.4.0.jar:2.4.0] [info]  @ play.core.server.netty.playdefaultupstreamhandler$$anonfun$8.apply(playdefaultupstreamhandler.scala:139) [play-netty-server_2.11-2.4.0.jar:2.4.0] [info]  @ scala.util.either.fold(either.scala:99) [scala-library-2.11.6.jar:na] [info]  @ play.core.server.netty.playdefaultupstreamhandler.messagereceived(playdefaultupstreamhandler.scala:127) [play-netty-server_2.11-2.4.0.jar:2.4.0] [info]  @ org.jboss.netty.channel.simplechannelupstreamhandler.handleupstream(simplechannelupstreamhandler.java:70) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.defaultchannelpipeline.sendupstream(defaultchannelpipeline.java:564) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.defaultchannelpipeline$defaultchannelhandlercontext.sendupstream(defaultchannelpipeline.java:791) [netty-3.10.3.final.jar:na] [info]  @ com.typesafe.netty.http.pipelining.httppipelininghandler.messagereceived(httppipelininghandler.java:62) [netty-http-pipelining-1.1.4.jar:na] [info]  @ org.jboss.netty.channel.simplechannelhandler.handleupstream(simplechannelhandler.java:88) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.defaultchannelpipeline.sendupstream(defaultchannelpipeline.java:564) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.defaultchannelpipeline$defaultchannelhandlercontext.sendupstream(defaultchannelpipeline.java:791) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.handler.codec.http.httpcontentdecoder.messagereceived(httpcontentdecoder.java:108) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.simplechannelupstreamhandler.handleupstream(simplechannelupstreamhandler.java:70) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.defaultchannelpipeline.sendupstream(defaultchannelpipeline.java:564) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.defaultchannelpipeline$defaultchannelhandlercontext.sendupstream(defaultchannelpipeline.java:791) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.channels.firemessagereceived(channels.java:296) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.handler.codec.frame.framedecoder.unfoldandfiremessagereceived(framedecoder.java:459) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.handler.codec.replay.replayingdecoder.calldecode(replayingdecoder.java:536) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.handler.codec.replay.replayingdecoder.messagereceived(replayingdecoder.java:435) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.simplechannelupstreamhandler.handleupstream(simplechannelupstreamhandler.java:70) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.defaultchannelpipeline.sendupstream(defaultchannelpipeline.java:564) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.defaultchannelpipeline.sendupstream(defaultchannelpipeline.java:559) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.channels.firemessagereceived(channels.java:268) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.channels.firemessagereceived(channels.java:255) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.socket.nio.nioworker.read(nioworker.java:88) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.socket.nio.abstractnioworker.process(abstractnioworker.java:108) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.socket.nio.abstractnioselector.run(abstractnioselector.java:337) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.socket.nio.abstractnioworker.run(abstractnioworker.java:89) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.channel.socket.nio.nioworker.run(nioworker.java:178) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.util.threadrenamingrunnable.run(threadrenamingrunnable.java:108) [netty-3.10.3.final.jar:na] [info]  @ org.jboss.netty.util.internal.deadlockproofworker$1.run(deadlockproofworker.java:42) [netty-3.10.3.final.jar:na] [info]  @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) [na:1.8.0_60-ea] [info]  @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) [na:1.8.0_60-ea] [info]  @ java.lang.thread.run(thread.java:745) [na:1.8.0_60-ea] [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-2.11.6.jar:na] [info]  @ scala.concurrent.impl.promise$defaultpromise.result(promise.scala:223) ~[scala-library-2.11.6.jar:na] [info]  @ scala.concurrent.await$$anonfun$result$1.apply(package.scala:190) ~[scala-library-2.11.6.jar:na] [info]  @ scala.concurrent.blockcontext$defaultblockcontext$.blockon(blockcontext.scala:53) ~[scala-library-2.11.6.jar:na] [info]  @ scala.concurrent.await$.result(package.scala:190) ~[scala-library-2.11.6.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.reload(reloader.scala:305) ~[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.0.jar:2.4.0] [info]  @ play.core.server.devserverstart$$anonfun$maindev$1$$anon$1$$anonfun$get$1.apply(devserverstart.scala:111) ~[play-server_2.11-2.4.0.jar:2.4.0] [info]  @ scala.concurrent.impl.future$promisecompletingrunnable.liftedtree1$1(future.scala:24) ~[scala-library-2.11.6.jar:na] [info]  @ scala.concurrent.impl.future$promisecompletingrunnable.run(future.scala:24) ~[scala-library-2.11.6.jar:na] [info]  @ akka.dispatch.taskinvocation.run(abstractdispatcher.scala:40) ~[akka-actor_2.11-2.3.11.jar:na] [info]  @ akka.dispatch.forkjoinexecutorconfigurator$akkaforkjointask.exec(abstractdispatcher.scala:397) ~[akka-actor_2.11-2.3.11.jar:na] [info]  @ scala.concurrent.forkjoin.forkjointask.doexec(forkjointask.java:260) ~[scala-library-2.11.6.jar:na] [info]  @ scala.concurrent.forkjoin.forkjoinpool$workqueue.runtask(forkjoinpool.java:1339) ~[scala-library-2.11.6.jar:na] [info]  @ scala.concurrent.forkjoin.forkjoinpool.runworker(forkjoinpool.java:1979) ~[scala-library-2.11.6.jar:na] [info]  @ scala.concurrent.forkjoin.forkjoinworkerthread.run(forkjoinworkerthread.java:107) ~[scala-library-2.11.6.jar:na] 

this leaves me option stopping activator run , rerunning it... , waiting 1 minute , 40 seconds. makes development super slow.

i noticed same. try commenting out unused plugins , library dependencies in project/plugins.sbt , build.sbt.

try making sure java 8 version (by running java -version) stable - not access (ending in -ea) or beta.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -