2015-09-21 71 views
1

得到这个错误 - 在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) { 

我试图debugg应用程序,但无法找到该error.[![enter image description here][1]][1]正当理由请告诉我该认证在游戏框架,以便如何发生的我可以调试。我不明白代码流。

+0

我有点困惑。你真的在第73行的开头有'**',并且你的错误真的叫做'错误。[![enter image description here] [1]] [1]'? – Kris

+0

不,我没有这样的东西,,,,我只是想大胆它突出它作为错误....在开始时,忽略 – shrish

+0

,有“验证”作为参数在行号73,我改变它“验证”,看看它是否真的有效。但它didn – shrish

回答

0

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