Java CAS JBoss Steam Liferay

Java CAS JBoss Steam Liferay,jboss,liferay,cas,steam,Jboss,Liferay,Cas,Steam,我使用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:1

我使用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客户端的版本


感谢您的帮助

,例外情况是?15:16:45304调试[AuthenticationFilter]从会话中删除网关属性15:16:45508错误[STDERR]java.lang.NullPointerException 15:16:45509错误[STDERR]位于com.activitree.action.CustomIdentity.ssLogin(CustomIdentity.java:205)我进行了调试,因此用户名不在主体对象中。