runtime error - akka.dispatch.Dispatcher IllegalStateException in scala.concurrent internal callback -
i'm trying use akka 2.4.12 play 2.5.4 (scala 2.11.7). i'm injecting actorsystem using
guiceapplicationbuilder().injector()
with
system = injector.instanceof[actorsystem]
or
@inject()(implicit val system: actorsystem)
to instance of actorsystem. i'm using these 2 mechanisms (the first 1 in scala objects
, second 1 in controllers
) substitute deprecated default akka actor system (akka.system
). can't understand why error:
[info] a.e.s.slf4jlogger - slf4jlogger started [debug] p.a.l.c.actorsystemprovider - starting application default akka system: application [debug] a.e.eventstream - logger log1-slf4jlogger started [debug] a.e.eventstream - default loggers started [info] play.api.play - application started (dev) [info] application - resolving database... [debug] [11/09/2016 12:30:22.182] [netty-event-loop-4] [eventstream(akka://reactivemongo)] logger log1-logging$defaultlogger started [debug] [11/09/2016 12:30:22.182] [netty-event-loop-4] [eventstream(akka://reactivemongo)] default loggers started [info] application - reactivemongoapi configured db 'test'! servers: [localhost:27017] [info] application - resolving database... [info] application - resolving database... [error] a.d.dispatcher - problem in scala.concurrent internal callback java.lang.illegalstateexception: problem in scala.concurrent internal callback @ scala.concurrent.future$internalcallbackexecutor$.reportfailure(future.scala:601) @ scala.concurrent.impl.callbackrunnable.executewithvalue(promise.scala:40) @ scala.concurrent.impl.promise$defaultpromise.trycomplete(promise.scala:248) @ scala.concurrent.promise$class.complete(promise.scala:55) @ scala.concurrent.impl.promise$defaultpromise.complete(promise.scala:153) caused by: java.lang.illegalargumentexception: requirement failed @ scala.predef$.require(predef.scala:207) @ scala.concurrent.batchingexecutor$batch.run(batchingexecutor.scala:51) @ scala.concurrent.future$internalcallbackexecutor$.unbatchedexecute(future.scala:599) @ scala.concurrent.batchingexecutor$batch$$anonfun$run$1.processbatch$1(batchingexecutor.scala:72) @ scala.concurrent.batchingexecutor$batch$$anonfun$run$1.apply$mcv$sp(batchingexecutor.scala:78)
maybe there errors in code initialize main actors can't figure out where:
object actorutils{ val injector = new guiceapplicationbuilder().injector() val configuration = injector.instanceof[configuration] val messagesapi = injector.instanceof[messagesapi] val messages = messagesapi.preferred(seq(lang.defaultlang)) // val injectorguice = guice.createinjector( // new configmodule(), // new akkamodule() // ) // import net.codingwell.scalaguice.injectorextensions._ implicit val system = injector.instanceof[actorsystem] val adminaddress = configuration.getstring("emailer.adminaddress").get // ----- top-level actors 1 incarnation ----- val userdao = injector.instanceof[userdao] val supervisor = system.actorof(supervisoractor.props(), "supervisor-actor") val taskdispatcher = system.actorof(taskdispatcher.props(supervisor), "task-dispatcher") val responsehandler = system.actorof(responsehandler.props(supervisor, taskdispatcher), "response-handler") val taskstateactor = system.actorof(taskstateactor.props(supervisor, responsehandler, taskdispatcher), "task-state-actor") }
i attached application log.
2016-11-09 12:30:15,936 [info] play.core.server.nettyserver in pool-4-thread-4 - listening http on /0:0:0:0:0:0:0:0:9000 2016-11-09 12:30:15,939 [info] play.core.server.nettyserver in pool-4-thread-4 - listening https on /0:0:0:0:0:0:0:0:9443 2016-11-09 12:30:22,123 + [info] - akka.event.slf4j.slf4jlogger in application-akka.actor.default-dispatcher-2 slf4jlogger started 2016-11-09 12:30:22,126 + [debug] - play.api.libs.concurrent.actorsystemprovider in forkjoinpool-1-worker-1 starting application default akka system: application 2016-11-09 12:30:22,126 + [debug] - akka.event.eventstream in application-akka.actor.default-dispatcher-2 logger log1-slf4jlogger started 2016-11-09 12:30:22,129 + [debug] - akka.event.eventstream in application-akka.actor.default-dispatcher-2 default loggers started 2016-11-09 12:30:22,133 + [info] - play.api.play in forkjoinpool-1-worker-1 application started (dev) 2016-11-09 12:30:22,165 + [info] - application in netty-event-loop-4 resolving database... 2016-11-09 12:30:22,215 + [info] - application in netty-event-loop-4 reactivemongoapi configured db 'test'! servers: [localhost:27017] 2016-11-09 12:30:22,270 + [info] - application in netty-event-loop-4 resolving database... 2016-11-09 12:30:22,271 + [info] - application in netty-event-loop-4 resolving database... 2016-11-09 12:30:22,487 + [error] - akka.dispatch.dispatcher in application-akka.actor.default-dispatcher-6 problem in scala.concurrent internal callback java.lang.illegalstateexception: problem in scala.concurrent internal callback @ scala.concurrent.future$internalcallbackexecutor$.reportfailure(future.scala:601) @ scala.concurrent.impl.callbackrunnable.executewithvalue(promise.scala:40) @ scala.concurrent.impl.promise$defaultpromise.trycomplete(promise.scala:248) @ scala.concurrent.promise$class.complete(promise.scala:55) @ scala.concurrent.impl.promise$defaultpromise.complete(promise.scala:153) @ scala.concurrent.future$$anonfun$map$1.apply(future.scala:235) @ scala.concurrent.future$$anonfun$map$1.apply(future.scala:235) @ scala.concurrent.impl.callbackrunnable.run(promise.scala:32) @ akka.dispatch.batchingexecutor$abstractbatch.processbatch(batchingexecutor.scala:55) @ akka.dispatch.batchingexecutor$blockablebatch$$anonfun$run$1.apply$mcv$sp(batchingexecutor.scala:91) @ akka.dispatch.batchingexecutor$blockablebatch$$anonfun$run$1.apply(batchingexecutor.scala:91) @ akka.dispatch.batchingexecutor$blockablebatch$$anonfun$run$1.apply(batchingexecutor.scala:91) @ scala.concurrent.blockcontext$.withblockcontext(blockcontext.scala:72) @ akka.dispatch.batchingexecutor$blockablebatch.run(batchingexecutor.scala:90) @ akka.dispatch.taskinvocation.run(abstractdispatcher.scala:39) @ akka.dispatch.forkjoinexecutorconfigurator$akkaforkjointask.exec(abstractdispatcher.scala:405) @ scala.concurrent.forkjoin.forkjointask.doexec(forkjointask.java:260) @ scala.concurrent.forkjoin.forkjoinpool$workqueue.runtask(forkjoinpool.java:1339) @ scala.concurrent.forkjoin.forkjoinpool.runworker(forkjoinpool.java:1979) @ scala.concurrent.forkjoin.forkjoinworkerthread.run(forkjoinworkerthread.java:107) caused by: java.lang.illegalargumentexception: requirement failed @ scala.predef$.require(predef.scala:207) @ scala.concurrent.batchingexecutor$batch.run(batchingexecutor.scala:51) @ scala.concurrent.future$internalcallbackexecutor$.unbatchedexecute(future.scala:599) @ scala.concurrent.batchingexecutor$batch$$anonfun$run$1.processbatch$1(batchingexecutor.scala:72) @ scala.concurrent.batchingexecutor$batch$$anonfun$run$1.apply$mcv$sp(batchingexecutor.scala:78) @ scala.concurrent.batchingexecutor$batch$$anonfun$run$1.apply(batchingexecutor.scala:55) @ scala.concurrent.batchingexecutor$batch$$anonfun$run$1.apply(batchingexecutor.scala:55) @ scala.concurrent.blockcontext$.withblockcontext(blockcontext.scala:72) @ scala.concurrent.batchingexecutor$batch.run(batchingexecutor.scala:54) @ scala.concurrent.future$internalcallbackexecutor$.unbatchedexecute(future.scala:599) @ scala.concurrent.batchingexecutor$class.execute(batchingexecutor.scala:106) @ scala.concurrent.future$internalcallbackexecutor$.execute(future.scala:597) ... 19 common frames omitted
thank you.
Comments
Post a Comment