This exception occurs many times but I don't know the reason.
I think this also happens at disconnect but not systematically.
I have turn on the pooling connection for SSL.
  -Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl"



30.04.2009 16:55:08.623 [WARN ] AbandonableRequest with messageId 2 not found 
in outstandingRequests. (LdapSession.java, line 214, class 
org.apache.directory.server.ldap.LdapSession)
30.04.2009 16:55:08.639 [WARN ] The PDU has been fully decoded but there are 
still bytes in the buffer. (Asn1Decoder.java, line 814, class 
org.apache.directory.shared.asn1.ber.Asn1Decoder)
30.04.2009 16:55:08.639 [WARN ] AbandonableRequest with messageId 2 not found 
in outstandingRequests. (LdapSession.java, line 214, class 
org.apache.directory.server.ldap.LdapSession)
30.04.2009 16:55:08.639 [WARN ] Unexpected exception forcing session to close: 
sending disconnect notice to client. (LdapProtocolHandler.java, line 215, class 
org.apache.directory.server.ldap.LdapProtocolHandler)
org.apache.mina.core.write.WriteToClosedSessionException
        at 
org.apache.mina.filter.ssl.SslFilter.exceptionCaught(SslFilter.java:495)
        at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:480)
        at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:48)
        at 
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:797)
        at 
org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:112)
        at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:480)
        at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:468)
        at 
org.apache.mina.core.polling.AbstractPollingIoProcessor.clearWriteRequestQueue(AbstractPollingIoProcessor.java:532)
        at 
org.apache.mina.core.polling.AbstractPollingIoProcessor.removeNow(AbstractPollingIoProcessor.java:479)
        at 
org.apache.mina.core.polling.AbstractPollingIoProcessor.remove(AbstractPollingIoProcessor.java:458)
        at 
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:57)
        at 
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:872)
        at 
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:65)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
30.04.2009 16:55:08.733 [WARN ] Null LdapSession given to cleanUpSession. 
(LdapProtocolHandler.java, line 108, class 
org.apache.directory.server.ldap.LdapProtocolHandler)


----- Mail Original -----
De: "Alex Karasulu" <[email protected]>
À: [email protected]
Envoyé: Jeudi 23 Avril 2009 18h32:31 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: Re: [Apache DS] Null LdapSession given to cleanUpSession

I'd have to investigate the connection handling code to say for sure but I
think this may be coming from processing an abandon request.  Let me
explain.

The client sends an abandon request just before it drops the connection
(socket).  Then the server gets the abandon message and tries to close the
socket on it's end.  But before it can do that, the MINA handler code
already cleans up the MINA session.  So when the AbandonRequest handler
picks up and looks up the LdapSession object it does not see it.  This is
the warning message you're getting.  So the message is harmless as you
observed.

HTH

On Thu, Apr 23, 2009 at 11:06 AM, <[email protected]> wrote:

>
> little more informations :
>
> SSL connections.
>
> With this sample, i have the warning message at each context.close().
>
> InitialLdapContext context = initializeLdapContext(ldapEnv);
> context.close();
>
>
> ----- Mail Original -----
> De: [email protected]
> À: [email protected]
> Envoyé: Jeudi 23 Avril 2009 16h50:57 GMT +01:00 Amsterdam / Berlin / Berne
> / Rome / Stockholm / Vienne
> Objet: [Apache DS] Null LdapSession given to cleanUpSession
>
>
> Hi
>
> I have embbeded an Apache DS : trunck revision 767919
>
> I've got a lot of warning messages when jndi clients request the server :
> connect + search + close
> It seems working despite warning messages.
>
> How can I avoid this ?
>
> 23.04.2009 16:18:11.009 [WARN ] Null LdapSession given to cleanUpSession.
> (LdapProtocolHandler.java, line 108, class
> org.apache.directory.server.ldap.LdapProtocolHandler)
>
>
>
>
>


-- 
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org

Reply via email to