2

JSON api 错误的堆栈跟踪不显示我的代码的行号。由于可能的原因,在我的所有文件中搜索非常耗时......

我也读过这个- 这很有用,但这是线程仅与行号有关。

堆栈跟踪看起来像:

play.api.Application$$anon$1: Execution exception[[JsResultException: JsResultException(errors:List((,List(ValidationError(validate.error.expected.jsarray,WrappedArray())))))]]
at play.api.Application$class.handleError(Application.scala:289) ~[play_2.10.jar:2.1.3]
at play.api.DefaultApplication.handleError(Application.scala:383) ~[play_2.10.jar:2.1.3]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$play$core$server$netty$PlayDefaultUpstreamHandler$$handle$1$1.apply(PlayDefaultUpstreamHandler.scala:143) ~[play_2.10.jar:2.1.3]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$play$core$server$netty$PlayDefaultUpstreamHandler$$handle$1$1.apply(PlayDefaultUpstreamHandler.scala:139) ~[play_2.10.jar:2.1.3]
at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) ~[play_2.10.jar:2.1.3]
at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) ~[play_2.10.jar:2.1.3]

play.api.libs.json.JsResultException:     JsResultException(errors:List((,List(ValidationError(validate.error.expected.jsarray,WrappedArray())))))
at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67) ~[play_2.10.jar:2.1.3]
at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67) ~[play_2.10.jar:2.1.3]
at play.api.libs.json.JsResult$class.fold(JsResult.scala:69) ~[play_2.10.jar:2.1.3]
at play.api.libs.json.JsError.fold(JsResult.scala:10) ~[play_2.10.jar:2.1.3]
at play.api.libs.json.JsValue$class.as(JsValue.scala:65) ~[play_2.10.jar:2.1.3]
at play.api.libs.json.JsNumber.as(JsValue.scala:108) ~[play_2.10.jar:2.1.3]
4

1 回答 1

2

我对此没有一个优雅的解决方案,但可以找到详细的堆栈跟踪logs\application.log- 在这种情况下它可以帮助我

于 2013-09-09T07:38:43.013 回答