crowd-ldap-server
crowd-ldap-server copied to clipboard
Null LdapSession given to cleanUpSession
I haven't looked into it, but my logs are showing "Null LdapSession given to cleanUpSession" fairly often.
Just me?
I also see it:
[21:17:15] WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - Null LdapSession given to cleanUpSession.
Likely something related to the Apache Directory Server:
https://issues.apache.org/jira/browse/DIRSERVER-1404 https://issues.apache.org/jira/browse/DIRSERVER-1432
Given the amount of API changes between Apache Directory Server versions, it will require quite some work to upgrade....
Guys this is what I did. Went on to source of the version used by Spring (i.e http://svn.apache.org/viewvc/directory/apacheds/tags/1.5.5/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/LdapRequestHandler.java?view=co) and got the LdapRequestHandler.java class source added to my project. Add on same package path (org.apache.directory.server.ldap.handlers). Then just add following null check on handleMessage method just after LdapSession is loaded.
if( ldapSession == null )
{
LOG.info( "ignoring the message {} received from null session", message );
return;
}
This is same fix given by for the next version of ADS.
What is the Status?