Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 29985 invoked from network); 17 Feb 2006 11:56:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Feb 2006 11:56:58 -0000 Received: (qmail 51071 invoked by uid 500); 17 Feb 2006 11:56:49 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 50773 invoked by uid 500); 17 Feb 2006 11:56:48 -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 50718 invoked by uid 99); 17 Feb 2006 11:56:47 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2006 03:56:47 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id F2940DF for ; Fri, 17 Feb 2006 12:56:25 +0100 (CET) Message-ID: <1851930200.1140177385990.JavaMail.jira@ajax.apache.org> Date: Fri, 17 Feb 2006 12:56:25 +0100 (CET) From: =?UTF-8?Q?J=C3=B6rg_Henne_=28JIRA=29?= To: dev@directory.apache.org Subject: [jira] Created: (DIRSERVER-579) Corrupt database causes server startup to fail MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Corrupt database causes server startup to fail ---------------------------------------------- Key: DIRSERVER-579 URL: http://issues.apache.org/jira/browse/DIRSERVER-579 Project: Directory ApacheDS Type: Bug Components: core =20 Versions: pre-1.0 =20 Environment: DS 0.9.3, Windows Reporter: J=C3=B6rg Henne Attachments: db.zip The server left one of its databases in a corrupt state, which causes the s= tartup to fail. The database corruption happened when I was editing the dir= ectory using JXplorer. I think database corruption should not cause the startup to fail. Instead i= t should try to recover as much as possible. I will attach the database in question. The partition configuration is this= : tcat dc=3Dtcat,dc=3Dtest dc ou objectClass krb5PrincipalName uid objectClass: top objectClass: domain objectClass: extensibleObject dc: tcat This is the log from the failed startup attempt: INFO 2006-02-17 12:45:29,616 [server.ServerMain; main]: server: loading se= ttings from main/server.xml INFO 2006-02-17 12:45:29,806 [xml.XmlBeanDefinitionReader; main]: Loading = XML bean definitions from file [C:\workspace\apacheds-0.9.3\main\server.xml= ] INFO 2006-02-17 12:45:29,996 [core.CollectionFactory; main]: JDK 1.4+ coll= ections available INFO 2006-02-17 12:45:30,016 [core.CollectionFactory; main]: Commons Colle= ctions 3.x available INFO 2006-02-17 12:45:30,217 [support.FileSystemXmlApplicationContext; mai= n]: Bean factory for application context [org.springframework.context.suppo= rt.FileSystemXmlApplicationContext;hashCode=3D22057969]: org.springframewor= k.beans.factory.support.DefaultListableBeanFactory defining beans [environm= ent,configuration,examplePartitionConfiguration,examplePartitionConfigurati= on2,tcatTestPartition,org.springframework.beans.factory.config.CustomEditor= Configurer]; root of BeanFactory hierarchy INFO 2006-02-17 12:45:30,237 [support.FileSystemXmlApplicationContext; mai= n]: 6 beans defined in application context [org.springframework.context.sup= port.FileSystemXmlApplicationContext;hashCode=3D22057969] INFO 2006-02-17 12:45:30,237 [support.DefaultListableBeanFactory; main]: C= reating shared instance of singleton bean 'org.springframework.beans.factor= y.config.CustomEditorConfigurer' INFO 2006-02-17 12:45:30,297 [support.FileSystemXmlApplicationContext; mai= n]: Unable to locate MessageSource with name 'messageSource': using default= [org.springframework.context.support.DelegatingMessageSource@1342a67] INFO 2006-02-17 12:45:30,297 [support.FileSystemXmlApplicationContext; mai= n]: Unable to locate ApplicationEventMulticaster with name 'applicationEven= tMulticaster': using default [org.springframework.context.event.SimpleAppli= cationEventMulticaster@1d8d39f] INFO 2006-02-17 12:45:30,307 [support.DefaultListableBeanFactory; main]: P= re-instantiating singletons in factory [org.springframework.beans.factory.s= upport.DefaultListableBeanFactory defining beans [environment,configuration= ,examplePartitionConfiguration,examplePartitionConfiguration2,tcatTestParti= tion,org.springframework.beans.factory.config.CustomEditorConfigurer]; root= of BeanFactory hierarchy] INFO 2006-02-17 12:45:30,307 [support.DefaultListableBeanFactory; main]: C= reating shared instance of singleton bean 'environment' INFO 2006-02-17 12:45:30,307 [support.DefaultListableBeanFactory; main]: C= reating shared instance of singleton bean 'configuration' INFO 2006-02-17 12:45:30,467 [support.DefaultListableBeanFactory; main]: C= reating shared instance of singleton bean 'examplePartitionConfiguration' INFO 2006-02-17 12:45:30,497 [support.DefaultListableBeanFactory; main]: C= reating shared instance of singleton bean 'examplePartitionConfiguration2' INFO 2006-02-17 12:45:30,497 [support.DefaultListableBeanFactory; main]: C= reating shared instance of singleton bean 'tcatTestPartition' Exception in thread "main" org.apache.ldap.server.interceptor.InterceptorEx= ception: Failed to initialize interceptor chain. [Root exception is java.la= ng.NullPointerException] =09at org.apache.ldap.server.interceptor.InterceptorChain.init(InterceptorC= hain.java:243) =09at org.apache.ldap.server.DefaultDirectoryService.initialize(DefaultDire= ctoryService.java:680) =09at org.apache.ldap.server.DefaultDirectoryService.startup(DefaultDirecto= ryService.java:203) =09at org.apache.ldap.server.jndi.AbstractContextFactory.getInitialContext(= AbstractContextFactory.java:102) =09at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6= 67) =09at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247= ) =09at javax.naming.InitialContext.init(InitialContext.java:223) =09at javax.naming.InitialContext.(InitialContext.java:197) =09at javax.naming.directory.InitialDirContext.(InitialDirContext.jav= a:82) =09at org.apache.ldap.server.ServerMain.main(ServerMain.java:76) Caused by: java.lang.NullPointerException =09at org.apache.ldap.server.partition.impl.btree.ScopeEvaluator.assertSubt= reeScope(ScopeEvaluator.java:102) =09at org.apache.ldap.server.partition.impl.btree.ScopeEvaluator.evaluate(S= copeEvaluator.java:79) =09at org.apache.ldap.server.partition.impl.btree.LeafEvaluator.evaluate(Le= afEvaluator.java:108) =09at org.apache.ldap.server.partition.impl.btree.ExpressionEvaluator.evalu= ate(ExpressionEvaluator.java:106) =09at org.apache.ldap.server.partition.impl.btree.ExpressionEnumerator$2.as= sertCandidate(ExpressionEnumerator.java:259) =09at org.apache.ldap.server.partition.impl.btree.IndexAssertionEnumeration= .prefetch(IndexAssertionEnumeration.java:165) =09at org.apache.ldap.server.partition.impl.btree.IndexAssertionEnumeration= .(IndexAssertionEnumeration.java:66) =09at org.apache.ldap.server.partition.impl.btree.ExpressionEnumerator.enum= Conj(ExpressionEnumerator.java:272) =09at org.apache.ldap.server.partition.impl.btree.ExpressionEnumerator.enum= erate(ExpressionEnumerator.java:134) =09at org.apache.ldap.server.partition.impl.btree.DefaultSearchEngine.searc= h(DefaultSearchEngine.java:139) =09at org.apache.ldap.server.partition.impl.btree.BTreeDirectoryPartition.s= earch(BTreeDirectoryPartition.java:256) =09at org.apache.ldap.server.partition.DefaultDirectoryPartitionNexus.searc= h(DefaultDirectoryPartitionNexus.java:647) =09at org.apache.ldap.server.authz.GroupCache.initialize(GroupCache.java:99= ) =09at org.apache.ldap.server.authz.GroupCache.(GroupCache.java:79) =09at org.apache.ldap.server.authz.AuthorizationService.init(AuthorizationS= ervice.java:156) =09at org.apache.ldap.server.interceptor.InterceptorChain.register0(Interce= ptorChain.java:398) =09at org.apache.ldap.server.interceptor.InterceptorChain.register(Intercep= torChain.java:357) =09at org.apache.ldap.server.interceptor.InterceptorChain.init(InterceptorC= hain.java:229) =09... 9 more --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira