AnsweredAssumed Answered

Can't start 4.2.c with Index on

Question asked by khanh on Apr 22, 2013
Please help!

I've upgrade from 4.0.b to 4.2.c  and when I have:

index.subsystem.name=noindex

the alfresco-share comes up

BUT if i try to turn on lucene

index.subsystem.name=lucene

i get the following error:

2013-04-22 15:46:58,835  ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
java.lang.NullPointerException
   at org.alfresco.repo.web.scripts.RepoStore.findNodeRef(RepoStore.java:315)
   at org.alfresco.repo.web.scripts.RepoStore$7$1.execute(RepoStore.java:686)
   at org.alfresco.repo.web.scripts.RepoStore$7$1.execute(RepoStore.java:683)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.web.scripts.RepoStore$7.doWork(RepoStore.java:682)
   at org.alfresco.repo.web.scripts.RepoStore$7.doWork(RepoStore.java:679)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
   at org.alfresco.repo.web.scripts.RepoStore.getDocument(RepoStore.java:678)
   at org.springframework.extensions.webscripts.DeclarativeRegistry.initWebScripts(DeclarativeRegistry.java:367)
   at org.springframework.extensions.webscripts.DeclarativeRegistry.reset(DeclarativeRegistry.java:178)
   at org.springframework.extensions.webscripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:259)
   at org.alfresco.repo.web.scripts.RepositoryContainer.init(RepositoryContainer.java:690)
   at org.alfresco.repo.web.scripts.RepositoryContainer$6.execute(RepositoryContainer.java:660)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.web.scripts.RepositoryContainer.reset(RepositoryContainer.java:655)
   at org.alfresco.repo.web.scripts.RepositoryContainer$5.doWork(RepositoryContainer.java:610)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
   at org.alfresco.repo.web.scripts.RepositoryContainer.onApplicationEvent(RepositoryContainer.java:614)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
Apr 22, 2013 3:46:58 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextLoaderListener
java.lang.NullPointerException
   at org.alfresco.repo.web.scripts.RepoStore.findNodeRef(RepoStore.java:315)
   at org.alfresco.repo.web.scripts.RepoStore$7$1.execute(RepoStore.java:686)
   at org.alfresco.repo.web.scripts.RepoStore$7$1.execute(RepoStore.java:683)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.web.scripts.RepoStore$7.doWork(RepoStore.java:682)
   at org.alfresco.repo.web.scripts.RepoStore$7.doWork(RepoStore.java:679)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
   at org.alfresco.repo.web.scripts.RepoStore.getDocument(RepoStore.java:678)
   at org.springframework.extensions.webscripts.DeclarativeRegistry.initWebScripts(DeclarativeRegistry.java:367)
   at org.springframework.extensions.webscripts.DeclarativeRegistry.reset(DeclarativeRegistry.java:178)
   at org.springframework.extensions.webscripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:259)
   at org.alfresco.repo.web.scripts.RepositoryContainer.init(RepositoryContainer.java:690)
   at org.alfresco.repo.web.scripts.RepositoryContainer$6.execute(RepositoryContainer.java:660)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.web.scripts.RepositoryContainer.reset(RepositoryContainer.java:655)
   at org.alfresco.repo.web.scripts.RepositoryContainer$5.doWork(RepositoryContainer.java:610)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
   at org.alfresco.repo.web.scripts.RepositoryContainer.onApplicationEvent(RepositoryContainer.java:614)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)

Apr 22, 2013 3:46:58 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
java.lang.NullPointerException



It looks like Full Index rebuild works also, as it says 100%.


If I swap out the alf_data,
with an empty alf_data from the installs,
turning on/off index works and the alfresco-share comes up.


Seems like this is a corrupt data? but why does alfresco-share come up with index off?
How would i fix this?


here's the log when i set do: index.subsystem.name=noindex



Apr 22, 2013 4:01:48 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/alfresco/apps/alfresco-4.2.c/tomcat/webapps/host-manager
Apr 22, 2013 4:01:48 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/alfresco/apps/alfresco-4.2.c/tomcat/webapps/ROOT
Apr 22, 2013 4:01:48 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/alfresco/apps/alfresco-4.2.c/tomcat/webapps/manager
Apr 22, 2013 4:01:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
Apr 22, 2013 4:01:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Apr 22, 2013 4:01:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8443"]
Apr 22, 2013 4:01:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 56087 ms

Outcomes