播放验证错误

时间:2015-09-21 07:29:23

标签: playframework

收到此错误 - 第73行

In {module:secure}/app/controllers/Secure.java (around line 73)

69:
         // Check tokens
70:
         Boolean allowed = false;
71:
         try {
72:
             // This is the deprecated method name
73:
             **allowed = (Boolean)Security.invoke("authenticate", username, password);**
74:
            // allowed = true;
75:
         } catch (UnsupportedOperationException e ) {
76:
             // This is the official method name
77:
             allowed = (Boolean)Security.invoke("authenticate", username, password);
78:
         }
79:
         if(validation.hasErrors() || !allowed) {

我试图调试应用程序,但找不到error.[![enter image description here][1]][1]的正确理由请告诉我这个认证是如何在play框架中发生的,这样我就可以调试了。我不明白代码流。

1 个答案:

答案 0 :(得分:0)

Java版本不匹配是个问题。应用程序需要1.6,我的是java 1.8