cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS document upload throwing transformation error

mangar
Star Contributor
Star Contributor
I hope I am posting this in the right section as it is both CMIS and core repository.

I just installed the new 4.2.d comm for Win. I used default everything except for the pgsql port number (I changed to 5431)
I upload a document via CMIS,  everything "looks" fine, yet the log is throwing this error:


2013-09-13 15:38:01,296  ERROR [repo.action.AsynchronousActionExecutionQueueImp
l] [defaultAsyncAction1] Failed to execute asynchronous action: Action[ id=42aaf
ce4-d46f-4453-ae3b-d44437d659d5, node=null ]: 08130006 Failed to perform ImageMa
gick transformation:
Execution result:
   os:         Windows 7
   command:    C:\Alfresco-4.2.d\imagemagick\convert.exe C:\Alfresco-4.2.d\tomca
t\temp\Alfresco\ImageMagickContentTransformerWorker_source_373267419647110273.pd
f[0] -auto-orient -resize "100x100>" C:\Alfresco-4.2.d\tomcat\temp\Alfresco\Imag
eMagickContentTransformerWorker_target_1537274090006874410.png
   succeeded:  false
   exit code:  1
   out:
   err:        convert.exe: unable to create temporary file `C:\Alfresco-4.2.d\t
omcat\temp\Alfresco\ImageMagickContentTransformerWorker_source_37326741964711027
3.pdf': Permission denied @ error/pdf.c/ReadPDFImage/397.
convert.exe: no images defined `C:\Alfresco-4.
org.alfresco.error.AlfrescoRuntimeException: 08130014 Creation of thumbnail 'do
clib' failed
        at org.alfresco.repo.thumbnail.CreateThumbnailActionExecuter.executeImpl
(CreateThumbnailActionExecuter.java:202)
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(
ActionExecuterAbstractBase.java:258)
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(Acti
onServiceImpl.java:838)
        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionSe
rviceImpl.java:738)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionE
xecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:428)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:447)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:318)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionE
xecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:437)
        at org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:119)
        at org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:88)
        at org.alfresco.repo.tenant.TenantUtil$1.doWork(TenantUtil.java:62)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(Au
thenticationUtil.java:546)
        at org.alfresco.repo.tenant.TenantUtil.runAsUserTenant(TenantUtil.java:5
😎
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionE
xecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:440)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
        at java.lang.Thread.run(Thread.java:724)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 08130007 Cont
ent conversion failed:
   reader: ContentAccessor[ contentUrl=store://2013/9/13/15/37/31e8c745-9721-471
c-aaa3-9c05eafe7a76.bin, mimetype=application/pdf, size=105120, encoding=UTF-8,
locale=en_US]
   writer: ContentAccessor[ contentUrl=store://C:\Alfresco-4.2.d\tomcat\temp\Alf
resco\FailoverTransformer_intermediate_ProxyContentTransformer_69324708061264602
62.png, mimetype=image/png, size=0, encoding=UTF-8, locale=en_US]
   options: {targetContentProperty=null, contentReaderNodeRef=workspace://Spaces
Store/aa41bec2-8cb8-43bc-9a30-cbe8b9c69a1a, contentWriterNodeRef=null, imageResi
zeOptions=ImageResizeOptions [width=100, height=100, maintainAspectRatio=true, p
ercentResize=false, resizeToThumbnail=false, allowEnlargement=false], use=doclib
, sourceContentProperty=null, includeEmbedded=false, commandOptions=, imageAutoO
rient=true}
   limits:
        at org.alfresco.repo.content.transform.AbstractContentTransformer2.trans
form(AbstractContentTransformer2.java:256)
        at org.alfresco.repo.content.ContentServiceImpl.failoverTransformers(Con
tentServiceImpl.java:679)
        at org.alfresco.repo.content.ContentServiceImpl.transform(ContentService
Impl.java:628)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:309)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:150)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInter
ceptor.invoke(MethodSecurityInterceptor.java:80)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInter
ceptor.java:125)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethod
Interceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInte
rceptor.java:161)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:110)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:202)
        at com.sun.proxy.$Proxy48.transform(Unknown Source)
        at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingE
ngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java
:435)
        at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingE
ngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java
:426)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(Au
thenticationUtil.java:546)
        at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingE
ngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:425
)
        at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingE
ngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:403
)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        … 3 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 08130006 Fail
ed to perform ImageMagick transformation:
Execution result:
   os:         Windows 7
   command:    C:\Alfresco-4.2.d\imagemagick\convert.exe C:\Alfresco-4.2.d\tomca
t\temp\Alfresco\ImageMagickContentTransformerWorker_source_373267419647110273.pd
f[0] -auto-orient -resize "100x100>" C:\Alfresco-4.2.d\tomcat\temp\Alfresco\Imag
eMagickContentTransformerWorker_target_1537274090006874410.png
   succeeded:  false
   exit code:  1
   out:
   err:        convert.exe: unable to create temporary file `C:\Alfresco-4.2.d\t
omcat\temp\Alfresco\ImageMagickContentTransformerWorker_source_37326741964711027
3.pdf': Permission denied @ error/pdf.c/ReadPDFImage/397.
convert.exe: no images defined `C:\Alfresco-4.
        at org.alfresco.repo.content.transform.magick.ImageMagickContentTransfor
merWorker.transformInternal(ImageMagickContentTransformerWorker.java:188)
        at org.alfresco.repo.content.transform.magick.AbstractImageMagickContent
TransformerWorker.transform(AbstractImageMagickContentTransformerWorker.java:273
)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invok
e(SubsystemProxyFactory.java:72)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:202)
        at com.sun.proxy.$Proxy14.transform(Unknown Source)
        at org.alfresco.repo.content.transform.ProxyContentTransformer.transform
Internal(ProxyContentTransformer.java:98)
        at org.alfresco.repo.content.transform.AbstractContentTransformer2.trans
form(AbstractContentTransformer2.java:211)
        … 31 more


A few things:

1. I have given full control to all users so I do not know that the permission denied is.
2. What's wrong?
3. I don't think I need any transformations so can I turn this off somehow and make the problem go away?

Thank you
2 REPLIES 2

juilee
Champ in-the-making
Champ in-the-making
Hi mangar, I get the exact same error log and I need a content transformer for my application. I too have assigned all permission to all users but still the error persists. I can see some files created in the folder mentioned. Not sure that which files were not created due to permission error. Were you able to figure out the solution? Please let me know if it worked. Thanks in advance !

mangar
Star Contributor
Star Contributor
I believe that this is a windows problem.  The transformation works on my own personal laptop.  I take the same code and the same version, deploy it at work, and I get the errors. I think you need to be the actual administrator, not just some user with admin privileges. This does not happen on any linux box that I have tried.  I hate windows with a passion, and this is just another reason why…