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

kevinr
Star Contributor
Star Contributor
The nightly build with those fixes is available now:
http://dev.alfresco.com/downloads/nightly/dist/

jrpolan
Champ in-the-making
Champ in-the-making
hello,
Can anyone confirm this issue was fixed? im having the same problem?

thanks,
Jason

konradpotocki
Champ in-the-making
Champ in-the-making
hello,
Can anyone confirm this issue was fixed? im having the same problem?

thanks,
Jason


Impossible to say, because today's nigtly build is giving another error:
17:59:50,892 UserSmiley Frustratedystem ERROR [node.integrity.IntegrityChecker] Found 2 integrity violations:
Invalid property value:
   Node: workspace://SpacesStore/a53d5de4-65f4-11dc-959a-65749e223e3f
   Type: {http://www.alfresco.org/model/content/1.0}category
   Property: {http://www.alfresco.org/model/content/1.0}name
   Constraint: Value 'United States Virgin Islands.' matches regular expression: (.*["\*\\\>\<\?\/\:\|]+.*)|(.*[\.]?.*[\.]+$)|(.*[ ]+$)
Invalid property value:
   Node: workspace://SpacesStore/a5306585-65f4-11dc-959a-65749e223e3f
   Type: {http://www.alfresco.org/model/content/1.0}category
   Property: {http://www.alfresco.org/model/content/1.0}name
   Constraint: Value 'Saint Vincent and Grenadines.' matches regular expression: (.*["\*\\\>\<\?\/\:\|]+.*)|(.*[\.]?.*[\.]+$)|(.*[ ]+$)


Cheers,
KP.

derek
Star Contributor
Star Contributor
Filenames are not allowed to end with a colon.  This breaks the CIFS interface.  You can turn integrity to WARN mode and try again.  Then fix the file names and turn it back to ERROR.

konradpotocki
Champ in-the-making
Champ in-the-making
Filenames are not allowed to end with a colon.  This breaks the CIFS interface.  You can turn integrity to WARN mode and try again.  Then fix the file names and turn it back to ERROR.

Bingo. I have switched off failOnViolation in node-services-context.xml and all worked. The bootstrap too.

Thanks Derek!

KP

derek
Star Contributor
Star Contributor
No problems.  Remember to fix the filenames and put the checking back on.

konradpotocki
Champ in-the-making
Champ in-the-making
No problems.  Remember to fix the filenames and put the checking back on.

Well, the main problem is that I have no file named "United States Virgin Islands." I was just playing with export/import between 1.4 vanilla (with a dozen of fake files with simple names) and today's snapshot.

Any idea?

derek
Star Contributor
Star Contributor
Export/Import should not be used between versions.  Why not just upgrade the system and let the patches do their thing?  Were there problems?

konradpotocki
Champ in-the-making
Champ in-the-making
Why not just upgrade the system and let the patches do their thing?

Because I want to go from 1.4-hsql to 2.X-mysql. And export/import seemed to be the most clean way to go.

Edit: If I understand you correctly, you would advise a straight migration to 2.1 and then migration to mysql using for example that page: http://wiki.alfresco.com/wiki/Migrating_from_HSQL ?

derek
Star Contributor
Star Contributor
Yes.  Or a straight migration and then an export/import between the same versions of the product.  Not that the cross-version export/import won't work - it's just it's not something we test, whereas the straight migration is.