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
  • Seam 2.2.0.GA
  • JBoss 4.2.3.GA

CAS クライアントのバージョンがわかりません。

助けてくれてありがとう

4

0 に答える 0