0

我使用 CAS 对集成到 Liferay 5.2.3 中的应用程序的用户进行身份验证。CAS登录没问题!我可以登录Liferay。但是当我尝试启动应用程序时,我得到 NullPointer 异常,因为主体对象不包含用户名:

15:16:45,304 DEBUG [AuthenticationFilter] removing gateway attribute from session
15:16:45,508 ERROR [STDERR] java.lang.NullPointerException
15:16:45,509 ERROR [STDERR] at com.activitree.action.CustomIdentity.ssoLogin(CustomIdentity.java:205)

我试图让校长像这样:

return (Principal) FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal();
  • CAS 服务器版本:3.4.6
  • 接缝 2.2.0.GA
  • JBoss 4.2.3.GA

我不知道 CAS 客户端版本。

谢谢你的帮助

4

0 回答 0