My Oracle Support Banner

Weblogic Does Not Return Correct Value for "getCallerPrincipal().getName()" When the Caller and Bean Deployed on Same Weblogic Server (Doc ID 2636873.1)

Last updated on FEBRUARY 15, 2021

Applies to:

Oracle WebLogic Server - Version to [Release 12c]
Information in this document applies to any platform.


When application 1 performs an IIOP call to Application 2 deployed on the same Webogic server as application 1, the subject becomes null and lookup is performed as anonymous user.

this.context.getCallerPrincipal().getName() returns <anonymous>

When the two applications are deployed on two different weblogic servers, everything works fine.
If t3 is used instead of IIOP, everything works good even when applications deployed on the same server.




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.