Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 79611 invoked from network); 17 Feb 2006 18:56:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Feb 2006 18:56:59 -0000 Received: (qmail 44153 invoked by uid 500); 17 Feb 2006 18:56:49 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 44062 invoked by uid 500); 17 Feb 2006 18:56:47 -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 44032 invoked by uid 99); 17 Feb 2006 18: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 10:56:47 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 09F6BDD for ; Fri, 17 Feb 2006 19:56:26 +0100 (CET) Message-ID: <607847548.1140202586038.JavaMail.jira@ajax.apache.org> Date: Fri, 17 Feb 2006 19:56:26 +0100 (CET) From: =?UTF-8?Q?J=C3=B6rg_Henne_=28JIRA=29?= To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-579) Corrupt database causes server startup to fail In-Reply-To: <1851930200.1140177385990.JavaMail.jira@ajax.apache.org> 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 [ http://issues.apache.org/jira/browse/DIRSERVER-579?page=3Dcomments#ac= tion_12366828 ]=20 J=C3=B6rg Henne commented on DIRSERVER-579: -------------------------------------- Thanks for ypur quick reply! Unfortunately, I can't really tell you which exact operations caused the pr= oblem. I was creating some sample data when, at some point, JXexplorer fail= ed to commit some changes to an object. As far as I can say, the last few c= hanges consisted of removing some uniqueMenber from a groupOfUniqueNames, m= aybe also an update to one member. Afterwards, all accesses to the partitio= n in question failed with some obscure message (I don't remember, sorry). A= fter restarting the DS, it didn't come up again. > 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 > Versions: pre-1.0 > 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= startup to fail. The database corruption happened when I was editing the d= irectory using JXplorer. > I think database corruption should not cause the startup to fail. Instead= it should try to recover as much as possible. > I will attach the database in question. The partition configuration is th= is: > > 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 = settings from main/server.xml > INFO 2006-02-17 12:45:29,806 [xml.XmlBeanDefinitionReader; main]: Loadin= g XML bean definitions from file [C:\workspace\apacheds-0.9.3\main\server.x= ml] > INFO 2006-02-17 12:45:29,996 [core.CollectionFactory; main]: JDK 1.4+ co= llections available > INFO 2006-02-17 12:45:30,016 [core.CollectionFactory; main]: Commons Col= lections 3.x available > INFO 2006-02-17 12:45:30,217 [support.FileSystemXmlApplicationContext; m= ain]: Bean factory for application context [org.springframework.context.sup= port.FileSystemXmlApplicationContext;hashCode=3D22057969]: org.springframew= ork.beans.factory.support.DefaultListableBeanFactory defining beans [enviro= nment,configuration,examplePartitionConfiguration,examplePartitionConfigura= tion2,tcatTestPartition,org.springframework.beans.factory.config.CustomEdit= orConfigurer]; root of BeanFactory hierarchy > INFO 2006-02-17 12:45:30,237 [support.FileSystemXmlApplicationContext; m= ain]: 6 beans defined in application context [org.springframework.context.s= upport.FileSystemXmlApplicationContext;hashCode=3D22057969] > INFO 2006-02-17 12:45:30,237 [support.DefaultListableBeanFactory; main]:= Creating shared instance of singleton bean 'org.springframework.beans.fact= ory.config.CustomEditorConfigurer' > INFO 2006-02-17 12:45:30,297 [support.FileSystemXmlApplicationContext; m= ain]: Unable to locate MessageSource with name 'messageSource': using defau= lt [org.springframework.context.support.DelegatingMessageSource@1342a67] > INFO 2006-02-17 12:45:30,297 [support.FileSystemXmlApplicationContext; m= ain]: Unable to locate ApplicationEventMulticaster with name 'applicationEv= entMulticaster': using default [org.springframework.context.event.SimpleApp= licationEventMulticaster@1d8d39f] > INFO 2006-02-17 12:45:30,307 [support.DefaultListableBeanFactory; main]:= Pre-instantiating singletons in factory [org.springframework.beans.factory= .support.DefaultListableBeanFactory defining beans [environment,configurati= on,examplePartitionConfiguration,examplePartitionConfiguration2,tcatTestPar= tition,org.springframework.beans.factory.config.CustomEditorConfigurer]; ro= ot of BeanFactory hierarchy] > INFO 2006-02-17 12:45:30,307 [support.DefaultListableBeanFactory; main]:= Creating shared instance of singleton bean 'environment' > INFO 2006-02-17 12:45:30,307 [support.DefaultListableBeanFactory; main]:= Creating shared instance of singleton bean 'configuration' > INFO 2006-02-17 12:45:30,467 [support.DefaultListableBeanFactory; main]:= Creating shared instance of singleton bean 'examplePartitionConfiguration' > INFO 2006-02-17 12:45:30,497 [support.DefaultListableBeanFactory; main]:= Creating shared instance of singleton bean 'examplePartitionConfiguration2= ' > INFO 2006-02-17 12:45:30,497 [support.DefaultListableBeanFactory; main]:= Creating shared instance of singleton bean 'tcatTestPartition' > Exception in thread "main" org.apache.ldap.server.interceptor.Interceptor= Exception: Failed to initialize interceptor chain. [Root exception is java.= lang.NullPointerException] > =09at org.apache.ldap.server.interceptor.InterceptorChain.init(Intercepto= rChain.java:243) > =09at org.apache.ldap.server.DefaultDirectoryService.initialize(DefaultDi= rectoryService.java:680) > =09at org.apache.ldap.server.DefaultDirectoryService.startup(DefaultDirec= toryService.java:203) > =09at org.apache.ldap.server.jndi.AbstractContextFactory.getInitialContex= t(AbstractContextFactory.java:102) > =09at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java= :667) > =09at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:2= 47) > =09at javax.naming.InitialContext.init(InitialContext.java:223) > =09at javax.naming.InitialContext.(InitialContext.java:197) > =09at javax.naming.directory.InitialDirContext.(InitialDirContext.j= ava: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.assertSu= btreeScope(ScopeEvaluator.java:102) > =09at org.apache.ldap.server.partition.impl.btree.ScopeEvaluator.evaluate= (ScopeEvaluator.java:79) > =09at org.apache.ldap.server.partition.impl.btree.LeafEvaluator.evaluate(= LeafEvaluator.java:108) > =09at org.apache.ldap.server.partition.impl.btree.ExpressionEvaluator.eva= luate(ExpressionEvaluator.java:106) > =09at org.apache.ldap.server.partition.impl.btree.ExpressionEnumerator$2.= assertCandidate(ExpressionEnumerator.java:259) > =09at org.apache.ldap.server.partition.impl.btree.IndexAssertionEnumerati= on.prefetch(IndexAssertionEnumeration.java:165) > =09at org.apache.ldap.server.partition.impl.btree.IndexAssertionEnumerati= on.(IndexAssertionEnumeration.java:66) > =09at org.apache.ldap.server.partition.impl.btree.ExpressionEnumerator.en= umConj(ExpressionEnumerator.java:272) > =09at org.apache.ldap.server.partition.impl.btree.ExpressionEnumerator.en= umerate(ExpressionEnumerator.java:134) > =09at org.apache.ldap.server.partition.impl.btree.DefaultSearchEngine.sea= rch(DefaultSearchEngine.java:139) > =09at org.apache.ldap.server.partition.impl.btree.BTreeDirectoryPartition= .search(BTreeDirectoryPartition.java:256) > =09at org.apache.ldap.server.partition.DefaultDirectoryPartitionNexus.sea= rch(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(Authorizatio= nService.java:156) > =09at org.apache.ldap.server.interceptor.InterceptorChain.register0(Inter= ceptorChain.java:398) > =09at org.apache.ldap.server.interceptor.InterceptorChain.register(Interc= eptorChain.java:357) > =09at org.apache.ldap.server.interceptor.InterceptorChain.init(Intercepto= rChain.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