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 74D878EB3 for ; Tue, 13 Sep 2011 20:29:52 +0000 (UTC) Received: (qmail 54651 invoked by uid 500); 13 Sep 2011 20:29:52 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 54634 invoked by uid 500); 13 Sep 2011 20:29:52 -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 54603 invoked by uid 99); 13 Sep 2011 20:29:51 -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:29:51 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,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 jonesda24@gmail.com designates 209.85.161.170 as permitted sender) Received: from [209.85.161.170] (HELO mail-gx0-f170.google.com) (209.85.161.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 20:29:42 +0000 Received: by gxk27 with SMTP id 27so1283690gxk.1 for ; Tue, 13 Sep 2011 13:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Gvx++AiqXfg2ej8r4BT9/Q34NaQvBaA0n/ky5u7TjMM=; b=GPwmHjfWBhPI2wneRJWgpknDnKy59CVxUn2Rp4Nn8oeFx57XxWQS57S7/ljySlGV/a f63qefZFQ85gHWo0N4o+4Kr9I2LcP4+3Lt+aCP9PeewziFf2aR275bdpZnxeQrQm+jbZ RqzR9PHYK4dVd7tdJKtRp/rphSFmOkFj1Edn4= MIME-Version: 1.0 Received: by 10.42.144.195 with SMTP id c3mr3071063icv.9.1315945761476; Tue, 13 Sep 2011 13:29:21 -0700 (PDT) Received: by 10.42.177.73 with HTTP; Tue, 13 Sep 2011 13:29:21 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Sep 2011 16:29:21 -0400 Message-ID: Subject: Re: apacheDS can't bring up server after adding new schema attributes From: david jones To: users@directory.apache.org Content-Type: multipart/alternative; boundary=90e6ba1efd34a80f8404acd87f16 X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba1efd34a80f8404acd87f16 Content-Type: text/plain; charset=ISO-8859-1 so is there a filename.filetype i can have windows search for? On Tue, Sep 13, 2011 at 4:23 PM, Kiran Ayyagari wrote: > On Wed, Sep 14, 2011 at 1:47 AM, david jones wrote: > > sounds good, I'm assuming you're talking about remove the file through > > windows explorer, not via code. > > > yes, windows explorer > > I'm adding my schema to other,ou=schema, i don't see any files pertaining > to > > apacheDS in the embedded app's directory. Whats the default directory for > > apacheDS, or what filename/type can i search for? > > > there is no default directory specified for an embedded ApacheDS, (it > is must require to store it files), > so it must be set somewhere in your app's code. > > > thanks again, > > David > > > > On Tue, Sep 13, 2011 at 4:05 PM, Kiran Ayyagari >wrote: > > > >> 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 > >> embedding > >> > 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 > >> messed > >> > something up there). > >> > > >> > So i'm looking at someway to recover. I tried importing an earlier > ldif > >> that > >> > had worked, but apacheds is crashing before it reads it. Can't delete > >> schema > >> > 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 > >> may > >> > 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 >> >wrote: > >> > > >> >> Hi David, > >> >> > >> >> hmm, can you elaborate a bit about what you mean by 'then > >> >> recycling the app' > >> >> looking at the below error it looks like the data files are > >> corrupted. > >> >> > >> >> On Wed, Sep 14, 2011 at 12:48 AM, david jones > >> wrote: > >> >> > 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 > >> schema > >> >> to > >> >> > the original and start over? > >> >> > > >> >> > > >> >> > 6750 [Thread-14] ERROR > >> >> > > >> >> > >> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry > >> >> > - attributeType w/ OID 1.3.6.1.4.1.18060.0.9.1.1.2.1.3 not > >> registered! > >> >> > 6750 [Thread-14] WARN > >> >> > org.apache.directory.server.core.entry.DefaultServerEntry - Cannot > >> read > >> >> the > >> >> > attribute as it's OID ('1.3.6.1.4.1.18060.0.9.1.1.2.1.3') does not > >> exist > >> >> > 6750 [Thread-14] WARN > >> >> > org.apache.directory.server.schema.registries.DefaultOidRegistry - > >> OID > >> >> for > >> >> > name 'port' was not found within the OID registry > >> >> > 6750 [Thread-14] WARN > >> >> > org.apache.directory.server.core.entry.DefaultServerEntry - 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 > >> Source) > >> >> > at java.io.ObjectInputStream.readUTF(Unknown Source) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.entry.DefaultServerEntry.deserialize(DefaultServerEntry.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.JdbmMasterTable.get(JdbmMasterTable.java:152) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.lookup(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.java:140) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.partition.impl.btree.ServerEntryCursorAdaptor.next(ServerEntryCursorAdaptor.java:179) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.filtering.BaseEntryFilteringCursor.next(BaseEntryFilteringCursor.java:498) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.ReferralManagerImpl.init(ReferralManagerImpl.java:162) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.ReferralManagerImpl.(ReferralManagerImpl.java:74) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.referral.ReferralInterceptor.init(ReferralInterceptor.java:216) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.interceptor.InterceptorChain.register0(InterceptorChain.java:441) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.interceptor.InterceptorChain.register(InterceptorChain.java:397) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.interceptor.InterceptorChain.init(InterceptorChain.java:257) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1617) > >> >> > at > >> >> > > >> >> > >> > org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:971) > >> >> > > >> >> > > >> >> > Thanks, > >> >> > David > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> Kiran Ayyagari > >> >> > >> > > >> > > >> > > >> > -- > >> > David Jones > >> > jonesda24@gmail.com > >> > c) 302-5648 > >> > > >> > >> > >> > >> -- > >> Kiran Ayyagari > >> > > > > > > > > -- > > David Jones > > jonesda24@gmail.com > > c) 302-5648 > > > > > > -- > Kiran Ayyagari > -- David Jones jonesda24@gmail.com c) 302-5648 --90e6ba1efd34a80f8404acd87f16--