From users-return-4026-apmail-directory-users-archive=directory.apache.org@directory.apache.org Tue Sep 13 19:57:13 2011 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 1C6648FC4 for ; Tue, 13 Sep 2011 19:57:13 +0000 (UTC) Received: (qmail 55106 invoked by uid 500); 13 Sep 2011 19:57:13 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 54901 invoked by uid 500); 13 Sep 2011 19:57:12 -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 54877 invoked by uid 99); 13 Sep 2011 19:57:12 -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 19:57:12 +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.213.178 as permitted sender) Received: from [209.85.213.178] (HELO mail-yx0-f178.google.com) (209.85.213.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 19:57:04 +0000 Received: by yxj19 with SMTP id 19so865558yxj.37 for ; Tue, 13 Sep 2011 12:56:43 -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=3VSWnFuD1dbAF9pncBkbJ5+CNkOkMj3tAUGF44z+aOs=; b=L1+51U09V5p7pbrDOgnSHesDQj80Z+ykCdTZgHmMOu8ZHRAJ3b/Hw8Mtw+Eh2it7mB DHCiuNr+kQKrjw1exulkJy27+jA/kjRvsUlycGAXOd488yVCYrXmIOCDGH2h6EpQGse9 l6NFDA0zO2EHVc3UJJtvFvzOUsa8B7JzAnktY= MIME-Version: 1.0 Received: by 10.43.49.74 with SMTP id uz10mr2911352icb.344.1315943803113; Tue, 13 Sep 2011 12:56:43 -0700 (PDT) Received: by 10.42.177.73 with HTTP; Tue, 13 Sep 2011 12:56:43 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Sep 2011 15:56:43 -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=bcaec5299a49edd04a04acd80ab5 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec5299a49edd04a04acd80ab5 Content-Type: text/plain; charset=ISO-8859-1 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 --bcaec5299a49edd04a04acd80ab5--