Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 11928 invoked from network); 18 Jun 2007 19:00:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jun 2007 19:00:10 -0000 Received: (qmail 51378 invoked by uid 500); 18 Jun 2007 19:00:12 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 51340 invoked by uid 500); 18 Jun 2007 19:00:12 -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 51249 invoked by uid 99); 18 Jun 2007 19:00:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2007 12:00:12 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of elecharny@gmail.com designates 64.233.184.234 as permitted sender) Received: from [64.233.184.234] (HELO wr-out-0506.google.com) (64.233.184.234) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2007 12:00:07 -0700 Received: by wr-out-0506.google.com with SMTP id 76so1104139wra for ; Mon, 18 Jun 2007 11:59:46 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LG4hwyomVWy1Q2SH1B34EJGOb7X1Afu1XgOW63uysKOG5LuWQD0C1ce9vMNHNzMigsFE/KFmuD1bwzuA0cTjbh9/E9EnintaqWURz4eoDs7lsF7fgjwzhgUm7d5lgaV7sI7RzHoY/zufGwtHQapOobRi8UR2jD+TEoHHawE9Ha4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pvI8QJ06/Gxp/R0jv2aqDbDemIn5JBPtjtJBQpURuV2lSK9AnwwK1g1uYO5oSIJ/Eb7amKHADwYMry0HhtMXrSDOCEgWygwfKZj2um1fzWo8x1YXHC4RvEFCvjLPVTex3lgM+OkXT5G0fSRxe0ncCAtRiJStpCt9Ix1veu+5xNY= Received: by 10.78.137.7 with SMTP id k7mr2477634hud.1182193185657; Mon, 18 Jun 2007 11:59:45 -0700 (PDT) Received: by 10.78.42.11 with HTTP; Mon, 18 Jun 2007 11:59:45 -0700 (PDT) Message-ID: Date: Mon, 18 Jun 2007 20:59:45 +0200 From: "Emmanuel Lecharny" Reply-To: elecharny@iktek.com To: "Apache Directory Developers List" Subject: Re: [jira] Commented: (DIRSERVER-973) NPE while adding an entry in schema without an ObjectClass attribute In-Reply-To: <4676D489.8060304@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <33095995.1182188186058.JavaMail.jira@brutus> <4676D489.8060304@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hmmm... Can't be... i'm also quoting oids, and it workjs like a charm : public void testCreateObjectClassWithInvalidNameAttribute() throws NamingException { Attributes attributes =3D new BasicAttributes(); Attribute objectClassAttribute =3D new BasicAttribute( "objectClas= s" ); objectClassAttribute.add( "top" ); objectClassAttribute.add( "metaTop" ); objectClassAttribute.add( "metaObjectClass" ); attributes.put( objectClassAttribute ); attributes.put( "m-oid", "testOID" ); ... Something else ? On 6/18/07, Ole Ersoy wrote: > I quoted the variable that contained the OID string. In other words inst= ead of doing: > > attributes.put("m-oid", oid); > > I did: > > attributes.put("m-oid", "oid"); > > Thanks, > - Ole > > > > Emmanuel Lecharny (JIRA) wrote: > > [ https://issues.apache.org/jira/browse/DIRSERVER-973?page=3Dcom.at= lassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505896 = ] > > > > Emmanuel Lecharny commented on DIRSERVER-973: > > --------------------------------------------- > > > > Ole, > > > > how id you get the NPE you mentionned in your first post ? I want to re= produce it to be able to fix it. > > > > Thanks ! > > > >> NPE while adding an entry in schema without an ObjectClass attribute > >> -------------------------------------------------------------------- > >> > >> Key: DIRSERVER-973 > >> URL: https://issues.apache.org/jira/browse/DIRSERVER-9= 73 > >> Project: Directory ApacheDS > >> Issue Type: Bug > >> Reporter: Ole Ersoy > >> Attachments: ObjectClassCreateTest.java > >> > >> > >> I was creating this test to show that when creating meta objectclass e= ntries, invalid names are allowed. However, the same name cannot be used a= s the value of the m-supObjectclass attribute of meta objectclasses. When = I run the test I get this exception: > >> org.apache.directory.server.core.interceptor.InterceptorException: Une= xpected exception. [Root exception is java.lang.NullPointerException] > >> at org.apache.directory.server.core.interceptor.InterceptorChain.= throwInterceptorException(InterceptorChain.java:1515) > >> To run the test just drop it into an instance of the testing archetype= and remember to update the dependencies :-): > >> > >> org.apache.directory.server > >> apacheds-core > >> 1.5.1-SNAPSHOT > >> > >> Cheers, > >> - Ole > > > --=20 Regards, Cordialement, Emmanuel L=E9charny www.iktek.com