Hello: I have an client application trying to create an Session Bean. Session Bean have security role, such that it can be created by an specific role( User) only. I am able to get the Subject for the principal whose role is User. But when i try to create the session I get exception principal is null. Can anyone please help me? What could be the reasons for this? Any help is appreciated.