【问题标题】:Play Framework 2.7 cryptic akka exceptionPlay Framework 2.7 神秘的 akka 异常
【发布时间】:2020-11-05 05:19:37
【问题描述】:

我们使用的是 Play Framework 2.7 版,并且我们在日志中发现了一个看似随机的异常(见下文),但我们似乎无法将其追溯到我们的代码。这是堆栈跟踪:

[2020-07-15 14:02:36,294] - [ERROR] - from akka.actor.ActorSystemImpl at [akka.actor.ActorSystemImpl(application)] 
Internal server error, sending 500 response
akka.http.impl.util.One2OneBidiFlow$OutputTruncationException: Inner flow was completed without producing result elements for 1 outstanding elements
    at akka.http.impl.util.One2OneBidiFlow$OutputTruncationException$.apply(One2OneBidiFlow.scala:22)
    at akka.http.impl.util.One2OneBidiFlow$OutputTruncationException$.apply(One2OneBidiFlow.scala:22)
    at akka.http.impl.util.One2OneBidiFlow$One2OneBidi$$anon$1$$anon$4.onUpstreamFinish(One2OneBidiFlow.scala:97)
    at akka.stream.impl.fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:506)
    at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:376)
    at akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:606)
    at akka.stream.impl.fusing.GraphInterpreterShell$AsyncInput.execute(ActorGraphInterpreter.scala:485)
    at akka.stream.impl.fusing.GraphInterpreterShell.processEvent(ActorGraphInterpreter.scala:581)
    at akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:749)
    at akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:764)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:539)
    at akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:671)
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:614)
    at akka.actor.ActorCell.invoke(ActorCell.scala:583)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:268)
    at akka.dispatch.Mailbox.run(Mailbox.scala:229)
    at akka.dispatch.Mailbox.exec(Mailbox.scala:241)
    at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

如您所见,没有对任何非播放代码的引用。 Play 应用程序运行正常,但存在明显的功能问题。除了由于格式错误的配置文件(导致相同的堆栈跟踪但在不同的条件下)以及可能与 Kamon 相关的问题,谷歌搜索并没有产生太多的见解。我们确实使用 kamon 版本 1 。什么可能导致此异常?任何帮助将不胜感激

【问题讨论】:

标签: java scala playframework akka akka-http


【解决方案1】:

看起来这是由这个问题引起的:

https://github.com/playframework/playframework/issues/9020

意味着您的配置格式错误(无法解析)。点击ctrl+c 至少应该显示另一条错误消息,其中包含有关错误位置的更多信息。

【讨论】:

  • 不,这不是问题。配置文件没有格式错误,我的应用程序运行正常(除了日志中的随机异常)
猜你喜欢
  • 1970-01-01
  • 2012-12-27
  • 1970-01-01
  • 2013-04-16
  • 1970-01-01
  • 2018-02-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多