Java Play Framework 2.7神秘的akka异常
我们使用的是Play Framework的2.7版,日志中出现了一个看似随机的异常(见下文),但我们似乎无法将其追溯到我们的代码。以下是堆栈跟踪:Java Play Framework 2.7神秘的akka异常,java,scala,playframework,akka,akka-http,Java,Scala,Playframework,Akka,Akka Http,我们使用的是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.u
[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相关的问题而导致的类似问题外,Google并没有提供太多的见解。我们确实使用kamon版本1。是什么导致了这种异常?任何帮助都将不胜感激看起来这是由以下问题引起的:
这意味着您的配置格式不正确(无法解析)。点击
ctrl+c
至少会显示另一条错误消息,其中包含有关错误位置的更多信息。看起来这是由以下问题引起的:
这意味着您的配置格式不正确(无法解析)。点击
ctrl+c
至少会显示另一条错误消息,其中包含有关错误位置的更多信息。您是否尝试过此操作?是的,我看到那个问题了。不是那样的,你试过这个吗?是的,我看到那个问题了。不是那样的,不,这不是问题所在。配置文件没有格式错误,我的应用程序运行正常(除了日志中的随机异常),不,这不是问题所在。配置文件没有格式错误,我的应用程序运行正常(除了日志中的随机异常)