AnsweredAssumed Answered

Context initialization failed

Question asked by tobiashofmann on Aug 12, 2008
Hi,

when starting Alfresco up, I get now this error:
14:39:38,926 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
java.lang.RuntimeException: Node has 2 primary paths: workspace://SpacesStore/5a5c5acd-ae2f-11dc-94f3-ed40bf93f1e7
   at org.alfresco.repo.node.db.DbNodeServiceImpl.getPaths(DbNodeServiceImpl.java:1613)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.getPath(DbNodeServiceImpl.java:1584)
   at sun.reflect.GeneratedMethodAccessor265.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   at org.alfresco.repo.transaction.TransactionResourceInterceptor.invoke(TransactionResourceInterceptor.java:138)
[…]

Alfresco won't start up. This node does not exist in my content store directory. I only get this reference inside of a Lucene index. I deleted the index and made a index rebuild. Still, I get this error.

I also deleted in the DB the reference to this node and started Alfresco again. Now, the Java process is running with 50% CPU and 400 MB RAM and the only thing I get in the log is:
14:52:37,771 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent] Index recovery started: 1 transactions.
14:52:38,412 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    100 % complete.
14:52:38,584 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    200 % complete.
14:52:38,724 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    300 % complete.
14:52:38,787 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    400 % complete.
14:52:40,740 WARN  [org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl] Multiple primary associations:
   first primary assoc: ChildAssoc[ id=9, parent=13, child=14, child name=5f2072c5-ae2f-11dc-94f3-ed40bf93f1e7, child name crc=-1, assoc type={http://www.alfresco.org/model/system/1.0}children, assoc name={http://www.alfresco.org/model/application/1.0}company_home, isPrimary=true]
   second primary assoc: ChildAssoc[ id=8102, parent=12, child=14, child name=73639d4f-6575-11dd-89c5-136cb0c49479, child name crc=-1, assoc type={http://www.alfresco.org/model/system/1.0}children, assoc name={http://www.alfresco.org/model/system/1.0}archivedItem, isPrimary=true]
When running in a cluster, check that the caches are properly shared.
14:56:10,354 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent] Index recovery started: 1 transactions.
14:56:10,448 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    100 % complete.
14:56:10,541 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    200 % complete.
14:56:10,698 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    300 % complete.
14:56:10,838 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    400 % complete.
14:59:23,443 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent] Index recovery started: 1 transactions.
14:59:23,584 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    100 % complete.
14:59:24,068 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    200 % complete.
14:59:24,615 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    300 % complete.
14:59:24,834 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    400 % complete.
15:02:23,589 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent] Index recovery started: 1 transactions.
15:02:23,714 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    100 % complete.
15:02:23,792 INFO  [org.alfresco.repo.node.index.FullIndexRecoveryComponent]    200 % complete.

Has someone already encountered and solved the same problem?

br,
Tobias

Outcomes