Impersonate error

Hello guys:

I’ve attached 2 files, initialize method and impersonar method from my portlet. When I execute impersonar() by an action from a command button works fine, and when is executed from initialize I get the message:

[POP.003.0025] guest cannot view the content of lookupprincipalbyid.

Please, I need help.

Best regards.
initialize.txt (916 Bytes)
impersonate.txt (1.09 KB)

Thanks for attaching the samples. Could you please explain what you are trying to accomplish with the initialize routine? The code modifying the AuthInfo isn’t very valid after the login process.