users@glassfish.java.net

Issue with LDAP (User=null)

From: <glassfish_at_javadesktop.org>
Date: Tue, 04 Mar 2008 07:10:45 PST

I have some issue with SUN AS.
 
In short, we have AS configured to work with LDAP. AS was able to properly make the user authorization and normally worked.
[#|2008-02-26T16:01:16.644-0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/WebCM]User=gvl_aems3:

At some point of time the following information is found in the logs:
 
[#|2008-02-27T09:18:20.842-0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/WebCM]User=null
 
So I am wondering how it possible that from one hand ,AS let the user in, but prints out the username as 'null'. Later we have some code that relies on the username. That code fails because of AS does not properly recognize the user which runs the application. LDAP probably has been restarted at some point of time.
 
What could be a reason that AS prints user as 'User=null'?
[Message sent by forum member 'azbelv' (azbelv)]

http://forums.java.net/jive/thread.jspa?messageID=262183