Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD78A81A6 for ; Tue, 13 Sep 2011 20:05:58 +0000 (UTC) Received: (qmail 78147 invoked by uid 500); 13 Sep 2011 20:05:58 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 77994 invoked by uid 500); 13 Sep 2011 20:05:58 -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 Received: (qmail 77981 invoked by uid 99); 13 Sep 2011 20:05:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 20:05:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ayyagarikiran@gmail.com designates 209.85.218.50 as permitted sender) Received: from [209.85.218.50] (HELO mail-yi0-f50.google.com) (209.85.218.50) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 20:05:49 +0000 Received: by yib18 with SMTP id 18so868826yib.37 for ; Tue, 13 Sep 2011 13:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=qD4VTHFg2pttjc3yot8HfhPPKRVUQg+F9G2VvNQsTj0=; b=hAS3YejjRepqN+riVK/LSjG81wS24mDQ1pvoZQT2tu8jq+Ep+UiLxIJFxROYo2gTuz FtZtv1wgyS3NIH0vBTmiZgmzV3rVlcJdaeZluwNPENP7PHHhjZo/qOtxN9Xx+vOZwBRm WkC7Iyoxpo/Y/411y+lBUUnKwLEr9urNyufZE= MIME-Version: 1.0 Received: by 10.42.142.68 with SMTP id r4mr2128451icu.456.1315944328663; Tue, 13 Sep 2011 13:05:28 -0700 (PDT) Sender: ayyagarikiran@gmail.com Received: by 10.231.39.198 with HTTP; Tue, 13 Sep 2011 13:05:28 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 Sep 2011 01:35:28 +0530 X-Google-Sender-Auth: mqJnmj_8mBuKk1Vq3nL25bmSATY Message-ID: Subject: Re: apacheDS can't bring up server after adding new schema attributes From: Kiran Ayyagari To: users@directory.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 1. goto the work directory where ApacheDS stores the partition data 2. remove the schema partition 3. restart the app let us know if there are any issues On Wed, Sep 14, 2011 at 1:26 AM, david jones wrote: > I'm running the app in eclipse (on windows), i just terminated the embedd= ing > app program that has the embedded apacheDS. Then try to run the app again > and can't get anywhere. > > fyi - I'm importing an ldif programatically, (I created ldif with eclipse > schema editor, but then did some hand edits on top of that, possibly mess= ed > something up there). > > So i'm looking at someway to recover. I tried importing an earlier ldif t= hat > had worked, but apacheds is crashing before it reads it. Can't delete sch= ema > from Studio since ApacheDS isn't up. How can i reset the schema to the > original? Or look at and fix the schema? The ldif file looks OK, but i ma= y > have lost some hand edits, i.e. it may not be exactly what ApacheDS has > imported. > > thanks, > David > > On Tue, Sep 13, 2011 at 3:23 PM, Kiran Ayyagari wro= te: > >> Hi David, >> >> =A0 =A0hmm, can you elaborate a bit about what you mean by 'then >> recycling the app' >> =A0 =A0looking at the below error it looks like the data files are corru= pted. >> >> On Wed, Sep 14, 2011 at 12:48 AM, david jones wrot= e: >> > Using ApacheDS 1.5.5 as an embedded app. >> > After adding some new schema attributes and then recycling the app I'm >> > getting the below exception. >> > And now since DS isn't coming up I can't get to it through Studio to >> reset >> > or view added schema values and try again. >> > Any suggestions on how to fix the actual problem, or to reset the sche= ma >> to >> > the original and start over? >> > >> > >> > 6750 [Thread-14] ERROR >> > >> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegist= ry >> > =A0- attributeType w/ OID 1.3.6.1.4.1.18060.0.9.1.1.2.1.3 not register= ed! >> > 6750 [Thread-14] WARN >> > org.apache.directory.server.core.entry.DefaultServerEntry =A0- Cannot = read >> the >> > attribute as it's OID ('1.3.6.1.4.1.18060.0.9.1.1.2.1.3') does not exi= st >> > 6750 [Thread-14] WARN >> > org.apache.directory.server.schema.registries.DefaultOidRegistry =A0- = OID >> for >> > name 'port' was not found within the OID registry >> > 6750 [Thread-14] WARN >> > org.apache.directory.server.core.entry.DefaultServerEntry =A0- Cannot = read >> the >> > attribute as it's OID ('port') does not exist >> > >> > java.io.UTFDataFormatException >> > at java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(Unknown >> > Source) >> > at java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(Unknown >> > Source) >> > at java.io.ObjectInputStream$BlockDataInputStream.readUTF(Unknown Sour= ce) >> > at java.io.ObjectInputStream.readUTF(Unknown Source) >> > at >> > >> org.apache.directory.server.core.entry.DefaultServerEntry.deserialize(De= faultServerEntry.java:2384) >> > at >> > >> org.apache.directory.server.core.entry.ServerEntrySerializer.deserialize= (ServerEntrySerializer.java:151) >> > at jdbm.btree.BPage.deserialize(BPage.java:1000) >> > at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) >> > at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) >> > at jdbm.btree.BPage.loadBPage(BPage.java:826) >> > at jdbm.btree.BPage.childBPage(BPage.java:816) >> > at jdbm.btree.BPage.find(BPage.java:285) >> > at jdbm.btree.BTree.find(BTree.java:407) >> > at >> > >> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.get= (JdbmTable.java:378) >> > at >> > >> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmMasterTab= le.get(JdbmMasterTable.java:152) >> > at >> > >> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.loo= kup(JdbmStore.java:1304) >> > at >> > >> org.apache.directory.server.xdbm.search.impl.EqualityEvaluator.evaluate(= EqualityEvaluator.java:128) >> > at >> > >> org.apache.directory.server.xdbm.search.impl.AndCursor.matches(AndCursor= .java:230) >> > at >> > >> org.apache.directory.server.xdbm.search.impl.AndCursor.next(AndCursor.ja= va:140) >> > at >> > >> org.apache.directory.server.core.partition.impl.btree.ServerEntryCursorA= daptor.next(ServerEntryCursorAdaptor.java:179) >> > at >> > >> org.apache.directory.server.core.filtering.BaseEntryFilteringCursor.next= (BaseEntryFilteringCursor.java:498) >> > at >> > >> org.apache.directory.server.core.ReferralManagerImpl.init(ReferralManage= rImpl.java:162) >> > at >> > >> org.apache.directory.server.core.ReferralManagerImpl.(ReferralMana= gerImpl.java:74) >> > at >> > >> org.apache.directory.server.core.referral.ReferralInterceptor.init(Refer= ralInterceptor.java:216) >> > at >> > >> org.apache.directory.server.core.interceptor.InterceptorChain.register0(= InterceptorChain.java:441) >> > at >> > >> org.apache.directory.server.core.interceptor.InterceptorChain.register(I= nterceptorChain.java:397) >> > at >> > >> org.apache.directory.server.core.interceptor.InterceptorChain.init(Inter= ceptorChain.java:257) >> > at >> > >> org.apache.directory.server.core.DefaultDirectoryService.initialize(Defa= ultDirectoryService.java:1617) >> > at >> > >> org.apache.directory.server.core.DefaultDirectoryService.startup(Default= DirectoryService.java:971) >> > >> > >> > Thanks, >> > David >> > >> >> >> >> -- >> Kiran Ayyagari >> > > > > -- > David Jones > jonesda24@gmail.com > c) 302-5648 > --=20 Kiran Ayyagari