cancel
Showing results for 
Search instead for 
Did you mean: 

Full repository import (restore) throws dictionary exception

bpeters
Champ in-the-making
Champ in-the-making
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
34 REPLIES 34

jrpolan
Champ in-the-making
Champ in-the-making
hello,
can anyone offer advice on getting this fix implemented using the nightly builds? we have just stood up a 2.1 implementation that has been heavily customized and we dont want to re-install/start over. trouble is, we need to import our full old repository before going production. at this time, it looks like our only option to get the import to work correctly is to reinstall from the nightly builds, then re-customize. can anyone offer advice or direction in this matter?


thanks,
jason

nyronian
Champ in-the-making
Champ in-the-making
I have just run into this problem as well.  My current code base is:

C:\1Data\Development\workspace\alfsrc\archive\2.2dev\alfresco>svn info
Path: .
URL: http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco
Repository Root: http://svn.alfresco.com/repos/alfresco-open-mirror
Repository UUID: 891eb8cc-90ed-4100-8f31-f9d4bd5d3ba0
Revision: 1128
Node Kind: directory
Schedule: normal
Last Changed Author: gavinc
Last Changed Rev: 1128
Last Changed Date: 2007-09-27 15:54:43 -0600 (Thu, 27 Sep 2007)

It appears my only option is to update to the lastest code base?  Is there a particular revision I can get that would simplify the upgrade?

nyronian
Champ in-the-making
Champ in-the-making
Can anybody shed some light on this issue?  I realized the the update I have (rev 1128, updated on 9/27) should have this code fix in it. 

I used the following SVN command to get it on that date: 
svn co http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco 

But I am still getting the error.  According to this thread it was updated on 9/18, so I should have it right??

Any help would be appreciated.

derek
Star Contributor
Star Contributor
There is an AMP file attached to AR-2212.  I've not tested it against 2.1C.

deas0815
Star Contributor
Star Contributor
Hallo everybody,

I'm running into the same problem.

Is there any way around for V2.1 community ?

regards
Andreas