cancel
Showing results for 
Search instead for 
Did you mean: 

Export/Import - Error when Bootstrapping new repository

dwild_hq
Champ in-the-making
Champ in-the-making
Hello,

Following what we believe to be a successful complete repository export of a 1.4.0 repository when attempting to bootstrap the export to a new 1.4.0 instance having copied the extensions across the following error is thrown.


08:48:28,812 DEBUG [repo.importer.ImporterBootstrap] Created store: workspace://lightWeightVersionStore
08:48:37,343 DEBUG [repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_versions.acp
08:48:37,703 DEBUG [repo.importer.ImporterBootstrap] Import started at Tue Jun 19 08:48:37 BST 2007 (1182239317703)
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap] Import completed at Tue Jun 19 13:10:52 BST 2007 (1182255052562)
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap] Error occured at Tue Jun 19 13:10:52 BST 2007 (1182255052562)
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap] Exception: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 233516; column 45 due to error: Failed to copy content from input stream:
   writer: ContentAccessor[ contentUrl=store://2007/6/19/13/10/1fd95d0e-1e5e-11dc-8507-fb6c7a582e99.bin, mimetype=application/pdf, size=841132, encoding=UTF-8]
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap] Import duration: 15734859 ms (Note: excluding commit time)
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Nodes created: 12290
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Nodes linked: 0
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Aspects Added: 0
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Properties set: 102014
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Content set: 154
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Permissions set: 1
13:10:59,187 ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:448)
   at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:670)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:54)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
   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:3692)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4127)
   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:804)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
   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:1020)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
   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:680)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
   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:275)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

We identified the piece of content that looked to be causing the problem, ran the export again and bootstrapped again only to be faced with the same error but on a different line of the export_versions.xml pointing to a different peice of content. 

We have been through this cycle 4 times now slowly making our way down the xml. It is getting quite tedious.    Smiley Sad

We have been unable to identify any similarities in the content other than so far we have had 3 pdf's and one swf.

Any help would be gratefully recieved.

Thanks,

Dave Wild
14 REPLIES 14

derek
Star Contributor
Star Contributor
Hi,

What are you doing to resolve the issue each time?
Was that the entire exception stack?

Regards

dwild_hq
Champ in-the-making
Champ in-the-making
Derek,

I am going back to the Alfresco instance we are trying to migrate and delete the piece of content referenced at the line that the bootstrap failed at and run a new export. But so far we have not achieved a successful import.

We do have a job in with Alfresco support but though we would put it out to a wider audience in the forum.

Thanks.

The entire stdout log is below.

19-Jun-2007 08:47:41 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
19-Jun-2007 08:47:41 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2547 ms
19-Jun-2007 08:47:42 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
19-Jun-2007 08:47:42 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.12
19-Jun-2007 08:47:42 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
19-Jun-2007 08:47:43 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
08:48:16,046 WARN  [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
08:48:18,812 INFO  [domain.schema.SchemaBootstrap] Executing database script: E:\Program Files\Alfresco\tomcat\temp\Alfresco\AlfrescoSchemaCreate-org.hibernate.dialect.MySQLInnoDBDialect-709.sql
08:48:22,734 INFO  [domain.schema.SchemaBootstrap] Executing database script: classpath:alfresco/dbscripts/create/1.4/${db.script.dialect}/post-create-indexes.sql
08:48:23,718 DEBUG [repo.importer.ImporterBootstrap] Created store: user://alfrescoUserStore
08:48:23,750 DEBUG [repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_users.acp
08:48:24,125 DEBUG [repo.importer.ImporterBootstrap] Import started at Tue Jun 19 08:48:24 BST 2007 (1182239304125)
08:48:27,281 DEBUG [repo.importer.ImporterBootstrap] Import completed at Tue Jun 19 08:48:27 BST 2007 (1182239307281)
08:48:27,281 DEBUG [repo.importer.ImporterBootstrap] Import duration: 3156 ms (Note: excluding commit time)
08:48:27,281 DEBUG [repo.importer.ImporterBootstrap]  Nodes created: 33
08:48:27,281 DEBUG [repo.importer.ImporterBootstrap]  Nodes linked: 0
08:48:27,281 DEBUG [repo.importer.ImporterBootstrap]  Aspects Added: 0
08:48:27,281 DEBUG [repo.importer.ImporterBootstrap]  Properties set: 234
08:48:27,281 DEBUG [repo.importer.ImporterBootstrap]  Content set: 0
08:48:27,281 DEBUG [repo.importer.ImporterBootstrap]  Permissions set: 0
08:48:28,187 DEBUG [repo.importer.ImporterBootstrap] Created store: system://system
08:48:28,203 DEBUG [repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_system.acp
08:48:28,203 DEBUG [repo.importer.ImporterBootstrap] Import started at Tue Jun 19 08:48:28 BST 2007 (1182239308203)
08:48:28,328 DEBUG [repo.importer.ImporterBootstrap] Import completed at Tue Jun 19 08:48:28 BST 2007 (1182239308328)
08:48:28,328 DEBUG [repo.importer.ImporterBootstrap] Import duration: 125 ms (Note: excluding commit time)
08:48:28,328 DEBUG [repo.importer.ImporterBootstrap]  Nodes created: 2
08:48:28,328 DEBUG [repo.importer.ImporterBootstrap]  Nodes linked: 0
08:48:28,328 DEBUG [repo.importer.ImporterBootstrap]  Aspects Added: 0
08:48:28,328 DEBUG [repo.importer.ImporterBootstrap]  Properties set: 27
08:48:28,328 DEBUG [repo.importer.ImporterBootstrap]  Content set: 2
08:48:28,328 DEBUG [repo.importer.ImporterBootstrap]  Permissions set: 0
08:48:28,812 DEBUG [repo.importer.ImporterBootstrap] Created store: workspace://lightWeightVersionStore
08:48:37,343 DEBUG [repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_versions.acp
08:48:37,703 DEBUG [repo.importer.ImporterBootstrap] Import started at Tue Jun 19 08:48:37 BST 2007 (1182239317703)
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap] Import completed at Tue Jun 19 13:10:52 BST 2007 (1182255052562)
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap] Error occured at Tue Jun 19 13:10:52 BST 2007 (1182255052562)
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap] Exception: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 233516; column 45 due to error: Failed to copy content from input stream:
   writer: ContentAccessor[ contentUrl=store://2007/6/19/13/10/1fd95d0e-1e5e-11dc-8507-fb6c7a582e99.bin, mimetype=application/pdf, size=841132, encoding=UTF-8]
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap] Import duration: 15734859 ms (Note: excluding commit time)
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Nodes created: 12290
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Nodes linked: 0
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Aspects Added: 0
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Properties set: 102014
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Content set: 154
13:10:52,562 DEBUG [repo.importer.ImporterBootstrap]  Permissions set: 1
13:10:59,187 ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:448)
   at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:670)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:54)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
   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:3692)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4127)
   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:804)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
   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:1020)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
   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:680)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
   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:275)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 233516; column 45 due to error: Failed to copy content from input stream:
   writer: ContentAccessor[ contentUrl=store://2007/6/19/13/10/1fd95d0e-1e5e-11dc-8507-fb6c7a582e99.bin, mimetype=application/pdf, size=841132, encoding=UTF-8]
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:171)
   at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:344)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:222)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:433)
   … 33 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to copy content from input stream:
   writer: ContentAccessor[ contentUrl=store://2007/6/19/13/10/1fd95d0e-1e5e-11dc-8507-fb6c7a582e99.bin, mimetype=application/pdf, size=841132, encoding=UTF-8]
   at org.alfresco.repo.content.AbstractContentWriter.putContent(AbstractContentWriter.java:417)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.importContent(ImporterComponent.java:655)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.importNode(ImporterComponent.java:558)
   at org.alfresco.repo.importer.view.ViewParser.importNode(ViewParser.java:820)
   at org.alfresco.repo.importer.view.ViewParser.processEndType(ViewParser.java:784)
   at org.alfresco.repo.importer.view.ViewParser.processEndElement(ViewParser.java:764)
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:163)
   … 36 more
Caused by: java.util.zip.ZipException: invalid distance code
   at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140)
   at java.io.FilterInputStream.read(FilterInputStream.java:90)
   at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:117)
   at org.alfresco.repo.content.AbstractContentWriter.putContent(AbstractContentWriter.java:412)
   … 42 more
13:10:59,203 ERROR [[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:448)
   at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:670)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:54)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
   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:3692)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4127)
   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:804)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
   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:1020)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
   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:680)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
   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:275)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 233516; column 45 due to error: Failed to copy content from input stream:
   writer: ContentAccessor[ contentUrl=store://2007/6/19/13/10/1fd95d0e-1e5e-11dc-8507-fb6c7a582e99.bin, mimetype=application/pdf, size=841132, encoding=UTF-8]
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:171)
   at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:344)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:222)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:433)
   … 33 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to copy content from input stream:
   writer: ContentAccessor[ contentUrl=store://2007/6/19/13/10/1fd95d0e-1e5e-11dc-8507-fb6c7a582e99.bin, mimetype=application/pdf, size=841132, encoding=UTF-8]
   at org.alfresco.repo.content.AbstractContentWriter.putContent(AbstractContentWriter.java:417)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.importContent(ImporterComponent.java:655)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.importNode(ImporterComponent.java:558)
   at org.alfresco.repo.importer.view.ViewParser.importNode(ViewParser.java:820)
   at org.alfresco.repo.importer.view.ViewParser.processEndType(ViewParser.java:784)
   at org.alfresco.repo.importer.view.ViewParser.processEndElement(ViewParser.java:764)
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:163)
   … 36 more
Caused by: java.util.zip.ZipException: invalid distance code
   at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140)
   at java.io.FilterInputStream.read(FilterInputStream.java:90)
   at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:117)
   at org.alfresco.repo.content.AbstractContentWriter.putContent(AbstractContentWriter.java:412)
   … 42 more
13:10:59,203 ERROR [[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:448)
   at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:670)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:54)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
   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:3692)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4127)
   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:804)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
   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:1020)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
   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:680)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
   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:275)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 233516; column 45 due to error: Failed to copy content from input stream:
   writer: ContentAccessor[ contentUrl=store://2007/6/19/13/10/1fd95d0e-1e5e-11dc-8507-fb6c7a582e99.bin, mimetype=application/pdf, size=841132, encoding=UTF-8]
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:171)
   at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:344)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:222)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:433)
   … 33 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to copy content from input stream:
   writer: ContentAccessor[ contentUrl=store://2007/6/19/13/10/1fd95d0e-1e5e-11dc-8507-fb6c7a582e99.bin, mimetype=application/pdf, size=841132, encoding=UTF-8]
   at org.alfresco.repo.content.AbstractContentWriter.putContent(AbstractContentWriter.java:417)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.importContent(ImporterComponent.java:655)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.importNode(ImporterComponent.java:558)
   at org.alfresco.repo.importer.view.ViewParser.importNode(ViewParser.java:820)
   at org.alfresco.repo.importer.view.ViewParser.processEndType(ViewParser.java:784)
   at org.alfresco.repo.importer.view.ViewParser.processEndElement(ViewParser.java:764)
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:163)
   … 36 more
Caused by: java.util.zip.ZipException: invalid distance code
   at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140)
   at java.io.FilterInputStream.read(FilterInputStream.java:90)
   at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:117)
   at org.alfresco.repo.content.AbstractContentWriter.putContent(AbstractContentWriter.java:412)
   … 42 more
19-Jun-2007 13:10:59 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
19-Jun-2007 13:10:59 org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
19-Jun-2007 13:10:59 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
19-Jun-2007 13:10:59 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
19-Jun-2007 13:10:59 org.apache.catalina.startup.Catalina start
INFO: Server startup in 15797844 ms

santigt
Champ in-the-making
Champ in-the-making
Hi everybody!

I have the same problem. I have downloaded the last version of Alfresco by SVN, then I built it and I put it into "webapps" directory. Then I started tomcat and Alfresco Log put me the same error.

Please help! Thanks a lot!

Regards,



Santigt


Derek,

I am going back to the Alfresco instance we are trying to migrate and delete the piece of content referenced at the line that the bootstrap failed at and run a new export. But so far we have not achieved a successful import.

We do have a job in with Alfresco support but though we would put it out to a wider audience in the forum.

Thanks.

The entire stdout log is below.

dwild_hq
Champ in-the-making
Champ in-the-making
Santigt,

What version of Java are you running?

Dave

santigt
Champ in-the-making
Champ in-the-making
The Java version is jdk1.5.0_05. I know that 1.6 version makes problems in Alfresco. Any other idea? Thanks!

Regards,


Santigt

Santigt,

What version of Java are you running?

Dave

dwild_hq
Champ in-the-making
Champ in-the-making
I have just upgraded the Java to 1.5.0_12 on my test system. You could try upgrading.  I am testing now to see if it fixes the problem.

Get the JDK here - http://java.sun.com/javase/downloads/index_jdk5.jsp 

Dave

santigt
Champ in-the-making
Champ in-the-making
I have tried with Java 1.5.0_12 and, again, I have obtained the same error.

Please see log file:


14:03:52,173 ERROR [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.repo.search.SearcherException: More than one root node in index: 2
        at org.alfresco.repo.search.impl.lucene.query.LeafScorer.initialise(LeafScorer.java:252)
        at org.alfresco.repo.search.impl.lucene.query.LeafScorer.<init>(LeafScorer.java:164)
        at org.alfresco.repo.search.impl.lucene.query.PathScorer.createPathScorer(PathScorer.java:167)
        at org.alfresco.repo.search.impl.lucene.query.PathQuery$StructuredFieldWeight.scorer(PathQuery.java:258)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:130)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:100)
        at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:66)
        at org.apache.lucene.search.Hits.<init>(Hits.java:45)
        at org.apache.lucene.search.Searcher.search(Searcher.java:45)
        at org.apache.lucene.search.Searcher.search(Searcher.java:37)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneSearcherImpl.query(ADMLuceneSearcherImpl.java:272)
        at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:85)
        at org.alfresco.repo.importer.ImporterComponent$NodeImporter.resolveImportedNodeRef(ImporterComponent.java:1026)
        at org.alfresco.repo.importer.ImporterComponent$NodeImporter.end(ImporterComponent.java:746)
        at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:361)
        at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:224)
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:426)
        … 35 more
14:03:52,181 ERROR [[Catalina].[localhost].[/alfresco]] Excepción enviando evento inicializado de contexto a instancia de escuchador de clase org.springframework.web.context.ContextLoaderListener
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.repo.search.SearcherException: More than one root node in index: 2
        at org.alfresco.repo.search.impl.lucene.query.LeafScorer.initialise(LeafScorer.java:252)
        at org.alfresco.repo.search.impl.lucene.query.LeafScorer.<init>(LeafScorer.java:164)
        at org.alfresco.repo.search.impl.lucene.query.PathScorer.createPathScorer(PathScorer.java:167)
        at org.alfresco.repo.search.impl.lucene.query.PathQuery$StructuredFieldWeight.scorer(PathQuery.java:258)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:130)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:100)
        at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:66)
        at org.apache.lucene.search.Hits.<init>(Hits.java:45)
        at org.apache.lucene.search.Searcher.search(Searcher.java:45)
        at org.apache.lucene.search.Searcher.search(Searcher.java:37)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneSearcherImpl.query(ADMLuceneSearcherImpl.java:272)
        at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:85)
        at org.alfresco.repo.importer.ImporterComponent$NodeImporter.resolveImporte
dNodeRef(ImporterComponent.java:1026)
        at org.alfresco.repo.importer.ImporterComponent$NodeImporter.end(ImporterComponent.java:746)
        at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:361)
        at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:224)
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:426)
        … 35 more
14:03:52,186 ERROR [[Catalina].[localhost].[/alfresco]] Excepción enviando evento inicializado de contexto a instancia de escuchador de clase org.alfresco.web.app.ContextListener
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.repo.search.SearcherException: More than one root node in index: 2
        at org.alfresco.repo.search.impl.lucene.query.LeafScorer.initialise(LeafScorer.java:252)
        at org.alfresco.repo.search.impl.lucene.query.LeafScorer.<init>(LeafScorer.java:164)
        at org.alfresco.repo.search.impl.lucene.query.PathScorer.createPathScorer(PathScorer.java:167)
        at org.alfresco.repo.search.impl.lucene.query.PathQuery$StructuredFieldWeight.scorer(PathQuery.java:258)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:130)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:100)
        at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:66)
        at org.apache.lucene.search.Hits.<init>(Hits.java:45)
        at org.apache.lucene.search.Searcher.search(Searcher.java:45)
        at org.apache.lucene.search.Searcher.search(Searcher.java:37)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneSearcherImpl.query(ADMLuceneSearcherImpl.java:272)
        at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:85)
        at org.alfresco.repo.importer.ImporterComponent$NodeImporter.resolveImportedNodeRef(ImporterComponent.java:1026)
        at org.alfresco.repo.importer.ImporterComponent$NodeImporter.end(ImporterComponent.java:746)
        at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:361)
        at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:224)
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:426)
        … 35 more
25-jun-2007 14:03:52 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
25-jun-2007 14:03:52 org.apache.catalina.core.StandardContext start
GRAVE: Falló en arranque del Contexto [/alfresco] debido a errores previos

So, I think the error could be the Alfresco SVN code. Please, other ideas??

Thanks so much! Regards,



Santigt


I have just upgraded the Java to 1.5.0_12 on my test system. You could try upgrading.  I am testing now to see if it fixes the problem.

Get the JDK here - http://java.sun.com/javase/downloads/index_jdk5.jsp 

Dave

dwild_hq
Champ in-the-making
Champ in-the-making
Santigt,

The error you have is different to mine and way beyond my level of knowledge.  Smiley Sad

I don't think I can help you.  Sorry!

Dave

kevinr
Star Contributor
Star Contributor
Your error means you have more than one alf_data dir. When you clean out the DB you also need to delete the alf_data directory. Make sure you execute the server start script from the same dir each time.