crowd-ldap-server icon indicating copy to clipboard operation
crowd-ldap-server copied to clipboard

Null LdapSession given to cleanUpSession

Open Vhex opened this issue 11 years ago • 4 comments

I haven't looked into it, but my logs are showing "Null LdapSession given to cleanUpSession" fairly often.

Just me?

Vhex avatar Aug 30 '13 21:08 Vhex

I also see it:

[21:17:15] WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - Null LdapSession given to cleanUpSession.

bantunes avatar Sep 01 '13 18:09 bantunes

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....

dwimberger avatar Sep 01 '13 20:09 dwimberger

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.

charithdesilva avatar Jul 01 '14 06:07 charithdesilva

What is the Status?

Serverfrog avatar Feb 07 '15 02:02 Serverfrog