|

楼主 |
发表于 2017-9-20 15:32:10
|
显示全部楼层
根据错误应该是login.j里报错, 代码段如下:
- private JSONObject getLayout(String useName, String bsessionID) throws JSONException{
- Action layoutAction = new Action();
- layoutAction.setProcess("/portal2/process/portal/portalProcess");
- layoutAction.setActivity("index");
- layoutAction.setName("selectPortal3ProfilesAction");
- layoutAction.setParameter("personID", useName);
- ActionResult result = ActionEngine.invokeAction(layoutAction, ActionUtils.JSON_CONTENT_TYPE, bsessionID, null, null);
-
- JSONObject temp = (JSONObject)result.getContent();
- temp = (JSONObject)temp.get("data");
- temp = (JSONObject)temp.get("value");
-
- String[] relations = new String[]{"sFunctree", "sPortal", "sOther"};
- for(String rel : relations){
- Object s = temp.get(rel);
- if( (s instanceof String && ((String)s).equals(""))) //s == JSONObject.NULL ||
- s = "{}";
- temp.remove(rel);
- temp.put(rel.substring(1).toLowerCase(), JSON.parse((String)s));
- }
-
- return temp;
- }
复制代码
在model里未找到有portal2模块, 另外就是下面的JSONObject的转换出错。
初步怀疑之前提供的与CAS集成的NTLoginFilter的代码已经不应用于现在的版本了。
还请尽快给予回答 |
|