AnsweredAssumed Answered

Full repository import (restore) throws dictionary exception

Question asked by bpeters on Aug 1, 2007
Latest reply on Aug 8, 2008 by deas0815
Hi,

When I try to execute a full repository import using the boorstrap restore I receive an exception (system cannot locate apsect-root in the repository dictionary, see exception below).

I am using Alfresco 2.1.0 and tried to execute the restore with both the war and tomcat distributions. I am using a fresh install (removed alf_data and created a new alfresco database in MySQL).

In previous versions (1.4) I never had problems doing a restore. Is something changed? Am I missing something, or is this a known problem?

Thanks in advance for any help.


09:11:40,002 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Created store: user://alfrescoUserStore
09:11:40,042 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_users.acp
09:11:41,234 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import started at Wed Aug 01 09:11:41 CEST 2007 (1185952301234)
09:11:41,244 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import completed at Wed Aug 01 09:11:41 CEST 2007 (1185952301244)
09:11:41,244 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Error occured at Wed Aug 01 09:11:41 CEST 2007 (1185952301244)
09:11:41,244 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Exception: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 11; column 24 due to error: Aspect name {http://www.alfresco.org/model/system/1.0}aspect_root is not valid; cannot find in Repository dictionary
09:11:41,244 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import duration: 10 ms (Note: excluding commit time)
09:11:41,244 DEBUG [org.alfresco.repo.importer.ImporterBootstrap]  Nodes created: 0
09:11:41,244 DEBUG [org.alfresco.repo.importer.ImporterBootstrap]  Nodes linked: 0
09:11:41,244 DEBUG [org.alfresco.repo.importer.ImporterBootstrap]  Aspects Added: 0
09:11:41,244 DEBUG [org.alfresco.repo.importer.ImporterBootstrap]  Properties set: 0
09:11:41,244 DEBUG [org.alfresco.repo.importer.ImporterBootstrap]  Content set: 0
09:11:41,244 DEBUG [org.alfresco.repo.importer.ImporterBootstrap]  Permissions set: 0
09:11:41,294 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:444)
   at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:666)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
   at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:241)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 11; column 24 due to error: Aspect name {http://www.alfresco.org/model/system/1.0}aspect_root is not valid; cannot find in Repository dictionary
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:190)
   at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:360)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:235)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:430)
   … 35 more
Caused by: org.alfresco.service.cmr.view.ImporterException: Aspect name {http://www.alfresco.org/model/system/1.0}aspect_root is not valid; cannot find in Repository dictionary
   at org.alfresco.repo.importer.view.ViewParser.processStartElement(ViewParser.java:309)
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:176)
   … 38 more

Outcomes