From dev-return-37865-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Sun Apr 24 23:20:52 2011 Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE5E512D8 for ; Sun, 24 Apr 2011 23:20:52 +0000 (UTC) Received: (qmail 18451 invoked by uid 500); 24 Apr 2011 23:20:52 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 18416 invoked by uid 500); 24 Apr 2011 23:20:52 -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 18409 invoked by uid 99); 24 Apr 2011 23:20:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Apr 2011 23:20:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 74.125.82.42 as permitted sender) Received: from [74.125.82.42] (HELO mail-ww0-f42.google.com) (74.125.82.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Apr 2011 23:20:46 +0000 Received: by wwk4 with SMTP id 4so970769wwk.1 for ; Sun, 24 Apr 2011 16:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:reply-to:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=LoHmJudcNBzMpCA72WxBY1PZJpeyTlCGEM5wUMOfoMY=; b=sCeEGVeVzn/v009S4i9KWQdDkbEs2hcHcUyJSrgX9du8XJGvrY9SiL9PdjNGF55ibi 0X4NZGtmoSxnRESCGXdMJWWyxjIS2bHJOsdlIw9rL0fE4+zLJXll2JPJz0GQP/d+brEm enhXlvMDCfCtgihGNEJiF4h/4aEZoYQcInRwA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=ENGIQRbMXeyC/1GDP8xJ/WfeTjuZydv21h+x1flk6ebdAibY5Ex17zZufidAHcSpZt n1hjD6uFLm9Rr83w892FJN0VDMdfwnMxYNpx+vetbZmcR0pHb+GV4dPQAyHD5uROVg1A g2+PwvsHXM05/FGTMQmEMivXW1e3jjpqyow2g= Received: by 10.216.140.102 with SMTP id d80mr2876368wej.29.1303687224709; Sun, 24 Apr 2011 16:20:24 -0700 (PDT) Received: from emmanuel-lecharnys-MacBook-Pro.local (216.2.103-84.rev.gaoland.net [84.103.2.216]) by mx.google.com with ESMTPS id l24sm2979156wbc.30.2011.04.24.16.20.22 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Apr 2011 16:20:23 -0700 (PDT) Message-ID: <4DB4B035.8060202@gmail.com> Date: Mon, 25 Apr 2011 01:20:21 +0200 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Custom Schema References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/24/11 1:46 PM, Rajesh wrote: > I have been trying to start the server with a custom schema of my own since > last one week. In that process I am trying to understand how the schema > gets loaded. I found a small bug in that process. If you think you found a bug, then you should create a JIRA. > DefaultSchema.addDependencies method is implemented wrong. The src, dst for > arraycopy should be interchanged. Nope. src come first, then destination. Check the System.arraycopy javadoc. > After I loaded my schema I got error in the following line in > DefaultPartitionNexus constructor. > > rootDSE.put( SchemaConstants.SUBSCHEMA_SUBENTRY_AT, > ServerDNConstants.CN_SCHEMA_DN ); Why would you do that ??? RootDSE is *not meant* to be modified in any way by a user. > ERR_04464 Error while adding values into the {0} attribute. Error : > ERR_04269 ATTRIBUTE_TYPE for OID subschemasubentry does not exist! > > I understand the error that my schema does not define this AttributeType. > But what I did not understand is why "subschemasubentry" is being treated as > OID. What's the problem here ? Just the message giving incorrect informations. Now, it's difficult to tell exactly why you've got such a message without the code you wrote. > In some places there are checks like OID.isOid to make sure that all > OIDs of all AttributeTypes are really OIDs. And in many other places names > are being used as OIDs. Every AT *must* have an OID. > I got little confused. Can some one clear my doubts... At this point, the best is o explain exactly what you are trying to do, instead of diving into a code which is complex and try to figure out what can be wrong in the existing code. It's more likely that you are doing something wrong than we have done something wrong. Also it would be great if you can provide : - the code you are using - the version of the server you are using. Thanks. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com