[jira] Commented: (DIRSERVER-579) Corrupt database causes server
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > [jira] Commented: (DIRSERVER-579) Corrupt database causes server




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Commented: (DIRSERVER-579) Corrupt database causes server  
Tony Blanchard (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-03-06 10:47 PM

[ http://issues.apache.org/jira/brows...=3Dcomments#ac=
tion_12368727 ]=20

Tony Blanchard commented on DIRSERVER-579:
------------------------------------------

I have the same troubles after having some pbs with ACIs management. Maybe =
my code but the database should not be corrupted. I can not launch the serv=
er anymore.
Here is the stack :
INFO   | jvm 1    | 2006/03/03 16:00:33 | log4j:WARN No appenders could be =
found for logger (org.apache.directory.server.Service).
INFO   | jvm 1    | 2006/03/03 16:00:33 | log4j:WARN Please initialize the =
log4j system properly.
INFO   | jvm 1    | 2006/03/03 16:00:36 |=20
INFO   | jvm 1    | 2006/03/03 16:00:36 | WrapperSimpleApp: Encountered an =
error running main: org.apache.directory.server.core.interceptor.Intercepto=
rException: Failed to initialize interceptor chain. [Root exception is j
ava=
.lang.NullPointerException]
INFO   | jvm 1    | 2006/03/03 16:00:36 | org.apache.directory.server.core.=
interceptor.InterceptorException: Failed to initialize interceptor chain. &#
91;=
Root exception is java.lang.NullPointerException]
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.core.interceptor.InterceptorChain.init(InterceptorChain.java:268)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:852)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:226)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.core.jndi.AbstractContextFactory. getInitialContext(AbstractContextFactory
.
=
java:103)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at javax.naming.spi.NamingMana=
ger.getInitialContext(Unknown Source)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at javax.naming.InitialContext=
.getDefaultInitCtx(Unknown Source)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at javax.naming.InitialContext=
.init(Unknown Source)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at javax.naming.InitialContext=
.<init>(Unknown Source)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at javax.naming.directory.Init=
ialDirContext.<init>(Unknown Source)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.Service.init(Service.java:93)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.UberjarMain.main(UberjarMain.java:51)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at sun.reflect.NativeMethodAcc=
essorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at sun.reflect.NativeMethodAcc=
essorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at sun.reflect.DelegatingMetho=
dAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at java.lang.reflect.Method.in=
voke(Unknown Source)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.tanukisoftware.wrapper.=
WrapperSimpleApp.run(WrapperSimpleApp.java:136)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at java.lang.Thread.run(Unknow=
n Source)
INFO   | jvm 1    | 2006/03/03 16:00:36 | Caused by: java.lang.NullPointerE=
xception
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.core.authz.TupleCache.subentryAdded(TupleCache.java:174)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.core.authz.TupleCache.initialize(TupleCache.java:124)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.core.authz.TupleCache.<init>(TupleCache.java:94)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.core.authz.AuthorizationService.init(AuthorizationService.java:159)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.core.interceptor.InterceptorChain.register0(InterceptorChain.java:430)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.core.interceptor.InterceptorChain.register(InterceptorChain.java:389)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09at org.apache.directory.server=
.core.interceptor.InterceptorChain.init(InterceptorChain.java:254)
INFO   | jvm 1    | 2006/03/03 16:00:36 | =09... 16 more
STATUS | wrapper  | 2006/03/03 16:00:39 | <-- Wrapper Stopped

Hope this helps.

> 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:
>   <bean id=3D"tcatTestPartition" class=3D"org.apache.ldap.server.configur=
ation.MutableDirectoryPartitionConfiguration">
>     <property name=3D"name"><value>tcat</value></property>
>     <property name=3D"suffix"><value>dc=3Dtcat,dc=3Dtest</value></propert=
y>
>     <property name=3D"indexedAttributes">
>       <set>
>         <value>dc</value>
>         <value>ou</value>
>         <value>objectClass</value>
>         <value>krb5PrincipalName</value>
>         <value>uid</value>
>       </set>
>     </property>
>     <property name=3D"contextEntry">
>       <value>
>         objectClass: top
>         objectClass: domain
>         objectClass: extensibleObject
>         dc: tcat
>       </value>
>     </property>
>   </bean>
> This is the log from the failed startup attempt:
> INFO  2006-02-17 12:45:29,616 [server.ServerMain; main]: server: loading =[/vb
col]
settings from main/server.xml[vbcol=seagreen]
> INFO  2006-02-17 12:45:29,806 [xml.XmlBeanDefinitionReader; main]: Loadin=[/vb
col]
g XML bean definitions from file [C:\workspace\apacheds-0.9.3\main\serve
r.x=
ml][vbcol=seagreen]
> INFO  2006-02-17 12:45:29,996 [core.CollectionFactory; main]: JDK 1.4+ co=[/vb
col]
llections available[vbcol=seagreen]
> INFO  2006-02-17 12:45:30,016 [core.CollectionFactory; main]: Commons Col=[/vb
col]
lections 3.x available[vbcol=seagreen]
> INFO  2006-02-17 12:45:30,217 [support.FileSystemXmlApplicationContext; m=[/vb
col]
ain]: Bean factory for application context [org.springframework.context.
sup=
port. FileSystemXmlApplicationContext;hashCode
=3D22057969]: org.springframew=
ork.beans.factory.support.DefaultListableBeanFactory defining beans [env
iro=
 nment,configuration,examplePartitionConf
iguration,examplePartitionConfigura=
tion2,tcatTestPartition,org.springframework.beans.factory.config.CustomEdit=
orConfigurer]; root of BeanFactory hierarchy[vbcol=seagreen]
> INFO  2006-02-17 12:45:30,237 [support.FileSystemXmlApplicationContext; m=[/vb
col]
ain]: 6 beans defined in application context [org.springframework.contex
t.s=
upport. FileSystemXmlApplicationContext;hashCode
=3D22057969][vbcol=seagreen]
> INFO  2006-02-17 12:45:30,237 [support.DefaultListableBeanFactory; main]:=[/vb
col]
Creating shared instance of singleton bean 'org.springframework.beans.fact=
ory.config.CustomEditorConfigurer'[vbcol=seagreen]
> INFO  2006-02-17 12:45:30,297 [support.FileSystemXmlApplicationContext; m=[/vb
col]
ain]: Unable to locate MessageSource with name 'messageSource': using defau=
lt [org.springframework.context.support. DelegatingMessageSource@1342a67][vbcol=s
eagreen]
> INFO  2006-02-17 12:45:30,297 [support.FileSystemXmlApplicationContext; m=[/vb
col]
ain]: Unable to locate ApplicationEventMulticaster with name 'applicationEv=
entMulticaster': using default [org.springframework.context.event.Simple
App=
 licationEventMulticaster@1d8d39f][vbcol=
seagreen]
> INFO  2006-02-17 12:45:30,307 [support.DefaultListableBeanFactory; main]:=[/vb
col]
Pre-instantiating singletons in factory [org.springframework.beans.facto
ry=
.support.DefaultListableBeanFactory defining beans [environment,configu
rati=
 on,examplePartitionConfiguration,example
PartitionConfiguration2,tcatTestPar=
tition,org.springframework.beans.factory.config.CustomEditorConfigurer]; ro=
ot of BeanFactory hierarchy][vbcol=seagreen]
> INFO  2006-02-17 12:45:30,307 [support.DefaultListableBeanFactory; main]:=[/vb
col]
Creating shared instance of singleton bean 'environment'[vbcol=seagreen]
> INFO  2006-02-17 12:45:30,307 [support.DefaultListableBeanFactory; main]:=[/vb
col]
Creating shared instance of singleton bean 'configuration'[vbcol=seagreen]
> INFO  2006-02-17 12:45:30,467 [support.DefaultListableBeanFactory; main]:=[/vb
col]
Creating shared instance of singleton bean  'examplePartitionConfiguration'[vbcol=se
agreen]
> INFO  2006-02-17 12:45:30,497 [support.DefaultListableBeanFactory; main]:=[/vb
col]
Creating shared instance of singleton bean 'examplePartitionConfiguration2=
'[vbcol=seagreen]
> INFO  2006-02-17 12:45:30,497 [support.DefaultListableBeanFactory; main]:=[/vb
col]
Creating shared instance of singleton bean 'tcatTestPartition'[vbcol=seagreen]
> Exception in thread "main" org.apache.ldap.server.interceptor.Interceptor=
Exception: Failed to initialize interceptor chain. [Root exception is ja
va.=
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.<init>(InitialContext.java:197)
> =09at javax.naming.directory.InitialDirContext.<init>(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.<init>(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.<init>(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/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:13 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register