AnsweredAssumed Answered

Re-indexing fails

Question asked by nrubdarb on Apr 11, 2008
Latest reply on Mar 21, 2009 by piman31415
Hi,

I recently had a problem where files were not being indexed in the background, so I decided to force re-indexing with

index.recovery.mode=FULL

in the
custom-repository.properties
file. I also moved the old lucene index folder out of the way, as is I believe correct.

On re-starting Alfresco, however, the re-indexing process only gets to 10%, and then it fails catastrophically, printing pages of errors, followed by the information from Tomcat that the Alfresco context (/alfresco) cannot be started.

Here is the beginning of my Alfresco (Tomcat) startup. I can deliver more if required, but am having to cut and paste from the terminal, since Tomcat is not logging this in catalina.out for some reason (if anyone knows how to change that, that would also be useful!).

CompilerOracle: exclude org/apache/lucene/index/IndexReader$1.doBody
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Mer
ger.mergeIndexes
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Mer
ger.mergeDeletions
11.04.2008 14:17:25 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8070
11.04.2008 14:17:25 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 813 ms
11.04.2008 14:17:25 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
11.04.2008 14:17:25 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
11.04.2008 14:17:25 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
11.04.2008 14:17:26 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
14:17:44,780 User:System WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not d
etect RMI registry - creating new one
14:17:48,389 User:System INFO  [domain.schema.SchemaBootstrap] Schema managed by
database dialect org.hibernate.dialect.MySQLInnoDBDialect.
14:17:52,874 User:System INFO  [domain.schema.SchemaBootstrap] No changes were m
ade to the schema.
14:17:55,453 User:System INFO  [node.index.FullIndexRecoveryComponent] Index rec
overy started: 8.841 transactions.
### Excluding compile: org.alfresco.repo.search.impl.lucene.index.IndexInfo$Merg
er::mergeDeletions
14:19:02,506 User:System INFO  [node.index.FullIndexRecoveryComponent]  10 % com
plete.
14:19:13,414 User:System ERROR [web.context.ContextLoader] Context initializatio
n failed
org.alfresco.error.AlfrescoRuntimeException: Exception in Transaction.
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:318)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:185)
        at org.alfresco.repo.node.index.AbstractReindexComponent.reindex(Abstrac
tReindexComponent.java:220)
        at org.alfresco.repo.node.index.IndexRecoveryBootstrapBean.onBootstrap(I
ndexRecoveryBootstrapBean.java:35)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLi
fecycleBean.java:62)
        at org.springframework.context.event.SimpleApplicationEventMulticaster$1
.run(SimpleApplicationEventMulticaster.java:77)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecut
or.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.m
ulticastEvent(SimpleApplicationEventMulticaster.java:75)
        at org.springframework.context.support.AbstractApplicationContext.publis
hEvent(AbstractApplicationContext.java:241)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:349)
        at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3764)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
216)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
0)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714
)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
48)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.StackOverflowError
        at org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.visit
(QueryTranslatorImpl.java:550)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:40)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:41)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse
r.java:42)
        at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverse

FYI I'm running Alfresco 2.9 Community on Windows, with Java 1.6.0_04 and the bundled Tomcat server.

Outcomes