cancel
Showing results for 
Search instead for 
Did you mean: 

Import .ACP file

florent53
Champ in-the-making
Champ in-the-making
Hello everybody,

I want to import some files with a CSV file. And i have tow question about Importation with .ACP file .



first question
:

- I try to use ACPGeneratr (http://forge.alfresco.com/projects/acpgeneratr/).

But I don't know how using it … I can't do the exemple sucessfully…
Somebody has do the exemple or another import with ACPGeneratr sucessfully?
If yes, can you explain me (or having a tutoriel.. not the readme of ACPGeneratr )?


second question :


I can't import a .ACP file after this manipulation:

- I make an .ACP, with export of alfresco (web-client). (NB: if i import this file, the import is ok)
- I change extension .acp into .zip and i unzip it.
- Then i zip this folder and change extension .zip into .acp

But when i import this last  .acp file,  alfresco import the .acp file and not inside files (it's a real probleme). And there is a bug in the Alfresco  Log :

14:26:25,993 ERROR [org.alfresco.repo.action.ActionServiceImpl] An error was encountered whilst executing the action 'import'.
org.alfresco.service.cmr.view.ImporterException: Failed to find xml meta-data file within .acp package
    at org.alfresco.repo.importer.ACPImportPackageHandler.getDataStream(ACPImportPackageHandler.java:114)
        ….


Have you an idea ?

Thanks,

—————————
florent
5 REPLIES 5

kevinr
Star Contributor
Star Contributor
14:26:25,993 ERROR [org.alfresco.repo.action.ActionServiceImpl] An error was encountered whilst executing the action 'import'.
org.alfresco.service.cmr.view.ImporterException: Failed to find xml meta-data file within .acp package
    at org.alfresco.repo.importer.ACPImportPackageHandler.getDataStream(ACPImportPackageHandler.java:114)
        ….

You must have missed the XML file at the root of the zip structure.

Thanks,

Kevin

micsanchez
Champ in-the-making
Champ in-the-making
If you try to import the generated ACP with no customisation you will have the following error:
Failed to execute import: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 9; column 953 due to error: Namespace URI dm.new.model has not been defined in the Repository dictionary
So before succeeding to import it you have to learn a bit about models. The necessary information is provided in the document http://www.ecmarchitect.com/images/articles/alfresco-content/content-article.pdf .
What you need to do is:
Under alfresco\tomcat\shared\classes\alfresco\extension, create acpgeneratr-model-context.xml with the following content:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
    <!– Registration of new models –>   
    <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/acpGeneratrModel.xml</value>
            </list>
        </property>
    </bean>        
</beans>
Create the file acpGeneratrModel.xml with the content of the acpGeneratr\definition_files\ sample_model.xml.
This allows defining the namespace.

Then we can import the sample ACP using the administration console.

Regards

Michaël

amarendrakt
Champ on-the-rise
Champ on-the-rise
I am using ACPGeneraor project and trying to run it.
I zipped the content of destination directory i.e. content and importXML.xml file and changed extn from .zip to .acp
While trying to import it in alfresco it gives following error:
Please correct the import errors below then click OK.
Failed to execute import: org.alfresco.service.cmr.view.ImporterException: Failed to find xml meta-data file within .acp package

17:30:35,039 ERROR [ui.common.Utils] Failed to execute import: org.alfresco.serv
ice.cmr.view.ImporterException: Failed to find xml meta-data file within .acp pa
ckage
org.alfresco.service.cmr.view.ImporterException: Failed to find xml meta-data fi
le within .acp package
        at org.alfresco.repo.importer.ACPImportPackageHandler.getDataStream(ACPI
mportPackageHandler.java:122)
        at org.alfresco.repo.importer.ImporterComponent.importView(ImporterCompo
nent.java:233)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:281)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:187)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:154)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterc
eptor.invoke(AlwaysProceedMethodInterceptor.java:40)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethod
Interceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.j
ava:238)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInte
rceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:210)
        at $Proxy52.importView(Unknown Source)
        at org.alfresco.repo.action.executer.ImporterActionExecuter.executeImpl(
ImporterActionExecuter.java:185)
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(
ActionExecuterAbstractBase.java:120)
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(Acti
onServiceImpl.java:537)
        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionSe
rviceImpl.java:472)
        at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServic
eImpl.java:399)
        at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServic
eImpl.java:387)
        at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServic
eImpl.java:545)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:281)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:187)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:154)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterc
eptor.invoke(AlwaysProceedMethodInterceptor.java:40)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethod
Interceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentIm
pl.java:256)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.j
ava:191)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInte
rceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:210)
        at $Proxy19.executeAction(Unknown Source)
        at org.alfresco.web.bean.ImportBean$1.execute(ImportBean.java:120)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:225)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:155)
        at org.alfresco.web.bean.ImportBean.performImport(ImportBean.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java
:132)
        at org.apache.myfaces.application.ActionListenerImpl.processAction(Actio
nListenerImpl.java:61)
        at javax.faces.component.UICommand.broadcast(UICommand.java:109)
        at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:9
7)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1
71)
        at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(Invoke
ApplicationExecutor.java:32)
        at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl
.java:95)
        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
:70)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(Authentica
tionFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:685)
        at java.lang.Thread.run(Thread.java:595)

I have done the changes mentione in the previous post i.e. I created acpGeneratrModel.xml and acpGeneratr-model-context.xml and put it in shared/classes/alfresco/extension folder of tomcat
but it of no use
It is still giving the error.

Please help me out. Its really very urgent!!!

skorde
Champ in-the-making
Champ in-the-making
Hi
Do you got any solution?

rafaelscg
Champ on-the-rise
Champ on-the-rise
This file is bigger than 4GB?
If it is, i dont know why, but Alfresco give this message when user trying import ACP or ZIP files.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.