Has somebody an idea, why the getName()
method of the UserPrincipal
sometimes provides an empty String? Most of the time it returns the correct user name but not every time.
This behaviour does occur randomly. 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?