Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 58475 invoked from network); 11 Jun 2007 04:16:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2007 04:16:37 -0000 Received: (qmail 28545 invoked by uid 500); 11 Jun 2007 04:16:40 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 28516 invoked by uid 500); 11 Jun 2007 04:16:40 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 28505 invoked by uid 99); 11 Jun 2007 04:16:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 21:16:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.27.42.35] (HELO smtp5-g19.free.fr) (212.27.42.35) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 21:16:36 -0700 Received: from [192.168.0.1] (vol75-3-82-66-216-176.fbx.proxad.net [82.66.216.176]) by smtp5-g19.free.fr (Postfix) with ESMTP id C3F373A69 for ; Mon, 11 Jun 2007 06:16:15 +0200 (CEST) Message-ID: <466CCC8F.6020805@apache.org> Date: Mon, 11 Jun 2007 06:16:15 +0200 From: Emmanuel Lecharny User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: fr, en MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [jira] Updated: (DIRSERVER-964) Binding does not return DirContext Object's when creating by doing ctx.createSubcontext("cn=test"); References: <16729092.1181497046327.JavaMail.jira@brutus> <466C8EF8.6010309@gmail.com> In-Reply-To: <466C8EF8.6010309@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Ole Ersoy a écrit : > Hmmm. I updated my test with this: > > ======================================== > Attributes attributes = > new BasicAttributes(); > Attribute attribute = > new BasicAttribute( > "objectClass", > "top"); > attribute.add("subentry"); > > directoryContextL0 = > (DirContext) > testPartitionContext. > createSubcontext(l0RDN, attributes); > > directoryContextL1 = > (DirContext) > directoryContextL0. > createSubcontext(l1RDN, attributes); > ======================================== > > I think the subentry ObjectClass is part of the RFC that allows this > ctx.createSubcontext("cn=test")....When I try running the test above I > get this: > > org.apache.directory.server.core.interceptor.InterceptorException: > Unexpected exception. [Root exception is java.lang.NullPointerException] Plain normal. Unless you put the attribute into the attributes, you will get this NPE : attributes.put( attribute ); Now, what is *not* plain normal, is that the server returns a NPE !!! Can you fill a JIRA for this nasty NPE ? Thanks !