Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 96224 invoked from network); 3 Oct 2007 22:07:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2007 22:07:22 -0000 Received: (qmail 46879 invoked by uid 500); 3 Oct 2007 22:07:12 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 46852 invoked by uid 500); 3 Oct 2007 22:07:12 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Delivered-To: moderator for users@directory.apache.org Received: (qmail 36984 invoked by uid 99); 3 Oct 2007 17:56:18 -0000 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=HTML_MESSAGE,SPF_PASS,SUBJECT_FUZZY_TION X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fitzbew@gmail.com designates 209.85.162.183 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=1sr6E1gIhkT48FSNa57kZu8bcFb9GaGSovI+tApRtOo=; b=e4mNjYcXSCcMZarQZISJoivkGZV9ASe9o0JBGxnd5jYbAI3ONHe4P7or4eKhvb8Xy9niQTctk8mqYusekWgixLTszzzqf6e5Rs1g6bG0wJt0y/3C1Bt6hbyEbMsXa5tz188uINpYvo6rn+2Kt37fZbygGe8iFrZG+xqzXRP7BqA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Y4d4gKx/gU5mS/18yxlJLFic7DB+Mg6j8grdlXpPcBDjMwLw1ioiK9d0bW/m09wifAiC6x5Y03rVCFB8ZWSrqUF8jha6mAYgfDZko3Qn9hWT56vW+AAmH6RcHFWbtC5EhfpYbCVG4RLdQwVH6/FzcKMNIoKaPBWqS3R4rLWeVhQ= Message-ID: <4a65319c0710031055q25066e90l82420d3bf54bcff9@mail.gmail.com> Date: Wed, 3 Oct 2007 10:55:57 -0700 From: "B G" To: users@directory.apache.org Subject: JIRA entered - DIRSERVER-1082: ServerLdapContext.ldapUnbind not using normalized LdapDN when calling DefaultPartitionNexus.getPartition causing exception when closing InitialDirContext MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3164_28193304.1191434157361" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3164_28193304.1191434157361 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Just upgraded from using embedded 1.5.0 directory to 1.5.1 and found the issue mentioned in the subject. This is causing a lot of exceptions to be logged in the console for our app which is a drag. The following is the description from the JIRA: Run the following code against a non-altered running fresh install of the 1.5.1 standalone server: public static void main(String[] args) { Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, " com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "ldap://localhost:10389"); env.put(Context.SECURITY_AUTHENTICATION, "simple"); env.put(Context.SECURITY_PRINCIPAL, "uid=admin,ou=system"); env.put(Context.SECURITY_CREDENTIALS, "secret"); try { InitialDirContext ctx = new InitialDirContext(env); ctx.close(); } catch (NamingException e) { e.printStackTrace(); } } And you will see the following exception: ERROR [UnbindHandler]: failed to unbind session properly org.apache.directory.shared.ldap.exception.LdapNameNotFoundException: uid=admin,ou=system at org.apache.directory.server.core.partition.DefaultPartitionNexus.getPartition (DefaultPartitionNexus.java:1114) at org.apache.directory.server.core.partition.DefaultPartitionNexus.unbind( DefaultPartitionNexus.java:773) at org.apache.directory.server.core.interceptor.InterceptorChain$1.unbind( InterceptorChain.java:210) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind (InterceptorChain.java:1412) at org.apache.directory.server.core.interceptor.BaseInterceptor.unbind( BaseInterceptor.java:229) at org.apache.directory.server.core.interceptor.InterceptorChain.unbind( InterceptorChain.java:794) at org.apache.directory.server.core.partition.PartitionNexusProxy.unbind( PartitionNexusProxy.java:684) at org.apache.directory.server.core.partition.PartitionNexusProxy.unbind( PartitionNexusProxy.java:701) at org.apache.directory.server.core.jndi.ServerLdapContext.ldapUnbind( ServerLdapContext.java:210) at org.apache.directory.server.ldap.support.UnbindHandler.messageReceived( UnbindHandler.java:58) at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived( DemuxingIoHandler.java:141) at org.apache.directory.server.ldap.LdapProtocolProvider$LdapProtocolHandler.messageReceived (LdapProtocolProvider.java:428) at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived (AbstractIoFilterChain.java:570) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived (AbstractIoFilterChain.java:299) at org.apache.mina.common.support.AbstractIoFilterChain.access$1100( AbstractIoFilterChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived (AbstractIoFilterChain.java:648) at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush( SimpleProtocolDecoderOutput.java:58) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived( ProtocolCodecFilter.java:176) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived (AbstractIoFilterChain.java:299) at org.apache.mina.common.support.AbstractIoFilterChain.access$1100( AbstractIoFilterChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived (AbstractIoFilterChain.java:648) at org.apache.mina.filter.executor.ExecutorFilter.processEvent( ExecutorFilter.java:220) at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run( ExecutorFilter.java:264) 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) This worked fine in 1.5.0 Does anyone have an idea how to work around this except not calling close on the InitialDirContext? ------=_Part_3164_28193304.1191434157361--