运行 播放 v2 应用程序时出现异常

exception when running play v2 application

我正在尝试启动 play v2 应用程序(之前由其他开发人员设置),但是当我 运行 激活器 运行(应用程序本身位于 Java):

ProvisionException: Unable to provision, see the following errors:

1) Error in custom provider, akka.ConfigurationException: Type [akka.dispatch.BoundedControlAwareMessageQueueSemantics] specified as akka.actor.mailbox.requirement [akka.actor.mailbox.bounded-control-aware-queue-based] in config can't be loaded due to [akka.dispatch.BoundedControlAwareMessageQueueSemantics]
  while locating play.api.libs.concurrent.ActorSystemProvider
  while locating akka.actor.ActorSystem
    for parameter 6 at play.api.DefaultApplication.<init>(Application.scala:241)
  at play.api.DefaultApplication.class(Application.scala:241)
  while locating play.api.DefaultApplication
  while locating play.api.Application

1 error

No source available, here is the exception stack trace:
         com.google.inject.internal.InjectorImpl.get(InjectorImpl.java:1025)
         com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
         play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:321)
         play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:316)
         play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:93)
         play.api.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.scala:21)
         play.core.server.DevServerStart$$anonfun$mainDev$$anon$$anonfun$get$$anonfun$apply$$anonfun$$anonfun.apply(DevServerStart.scala:153)
         play.core.server.DevServerStart$$anonfun$mainDev$$anon$$anonfun$get$$anonfun$apply$$anonfun$$anonfun.apply(DevServerStart.scala:150)
         play.utils.Threads$.withContextClassLoader(Threads.scala:21)
         play.core.server.DevServerStart$$anonfun$mainDev$$anon$$anonfun$get$$anonfun$apply$$anonfun.apply(DevServerStart.scala:150)
         play.core.server.DevServerStart$$anonfun$mainDev$$anon$$anonfun$get$$anonfun$apply$$anonfun.apply(DevServerStart.scala:121)
         scala.Option.map(Option.scala:146)
         play.core.server.DevServerStart$$anonfun$mainDev$$anon$$anonfun$get$$anonfun$apply.apply(DevServerStart.scala:121)
         play.core.server.DevServerStart$$anonfun$mainDev$$anon$$anonfun$get$$anonfun$apply.apply(DevServerStart.scala:119)
         scala.util.Success.flatMap(Try.scala:231)
         play.core.server.DevServerStart$$anonfun$mainDev$$anon$$anonfun$get.apply(DevServerStart.scala:119)
         play.core.server.DevServerStart$$anonfun$mainDev$$anon$$anonfun$get.apply(DevServerStart.scala:111)
         scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1(Future.scala:24)
         scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
         java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
         java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
         java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
         java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
         java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

关于我可能配置错误的任何想法?我也可以复制 application.conf 文件。

此问题是由于为生成 API 文档而配置错误的 swagger 设置引起的。一旦我按照所有步骤设置 swagger 和 swagger-ui,问题就解决了。堆栈跟踪本身对解决问题没有用。