我正在使用Play 2.1.3,由于一些奇怪的原因,我似乎无法使用Java 7 multi-catch构造。我可以在开关中使用钻石或字符串,因此Play肯定会使用Java 7.
这是我在加载使用multi-catch的控制器时获得的异常。有什么想法吗?
(堆栈跟踪中引用的controllers.PurchasesController.submitData
方法是包含多重捕获的方法。
! Internal server error, for (GET) [/es/purchase] ->
java.lang.VerifyError: Stack map does not match the one at exception handler 307 in method controllers.PurchasesController.submitData(Lplay/i18n/Lang;)Lplay/mvc/Result; at offset 293
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.7.0_15]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2451) ~[na:1.7.0_15]
at java.lang.Class.getMethod0(Class.java:2694) ~[na:1.7.0_15]
at java.lang.Class.getMethod(Class.java:1622) ~[na:1.7.0_15]
at org.apache.commons.lang3.reflect.MethodUtils.getMatchingAccessibleMethod(MethodUtils.java:511) ~[commons-lang3.jar:3.1]
[error] application - Error while rendering default error page
scala.MatchError: java.lang.VerifyError: Stack map does not match the one at exception handler 307 in method controllers.PurchasesController.submitData(Lplay/i18n/Lang;)Lplay/mvc/Result; at offset 293 (of class java.lang.VerifyError)
at play.api.GlobalSettings$class.onError(GlobalSettings.scala:103) ~[play_2.10.jar:2.1.3]
at play.api.DefaultGlobal$.onError(GlobalSettings.scala:161) [play_2.10.jar:2.1.3]
at play.core.server.Server$class.logExceptionAndGetResult$1(Server.scala:79) [play_2.10.jar:2.1.3]
at play.core.server.Server$$anonfun$getHandlerFor$4$$anonfun$apply$4.apply(Server.scala:88) [play_2.10.jar:2.1.3]
at play.core.server.Server$$anonfun$getHandlerFor$4$$anonfun$apply$4.apply(Server.scala:88) [play_2.10.jar:2.1.3]