Why does "request.getUserPrincipal().getName()" sometimes return a blank string?

Posted by Marcus on Stack Overflow See other posts from Stack Overflow or by Marcus
Published on 2010-03-23T13:00:00Z Indexed on 2010/03/23 13:03 UTC
Read the original article Hit count: 322

Has somebody an idea, why the getName method of the requests getUserPrincipal Method sometimes provides an empty String? Most of the time it returns the correct user name but not every time.

This behaviour does occur randonmly. I can start the application, run the command and it works. The next time I start the application and run the command (exactly the same way as before!) it does not work...

Any ideas?

© Stack Overflow or respective owner

Related posts about java

Related posts about userprincipal