AnsweredAssumed Answered

cdr tranform failure reason?

Question asked by xiaoqunhua on Sep 20, 2014
Latest reply on Sep 20, 2014 by kaynezhang
Can anyone help me about this?
cdr –> pdf –> swf
Sorry ,my poor English.

2014-09-19 22:05:04,374  ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] Exception from executeScript - redirecting to status template error: 08190003 Wrapped Exception (with status template): 08190020 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 08190019 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2014/9/19/22/4/a014ab35-dc00-49b2-a35a-9b3dc454f306.bin, mimetype=image/vnd.cdr, size=6738156, encoding=UTF-8, locale=zh_CN]
   writer: ContentAccessor[ contentUrl=store://2014/9/19/22/5/e13aff20-d7f9-41d9-953a-3a7cc63a7487.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=zh_CN]
   options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/f38e8242-615b-450a-abe3-b5719d6455de, contentWriterNodeRef=workspace://SpacesStore/b1427c56-ffb5-46f6-9f58-d817ea696414, sourceContentProperty=null, use=webpreview, includeEmbedded=false}
   limits:
org.springframework.extensions.webscripts.WebScriptException: 08190003 Wrapped Exception (with status template): 08190020 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 08190019 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2014/9/19/22/4/a014ab35-dc00-49b2-a35a-9b3dc454f306.bin, mimetype=image/vnd.cdr, size=6738156, encoding=UTF-8, locale=zh_CN]
   writer: ContentAccessor[ contentUrl=store://2014/9/19/22/5/e13aff20-d7f9-41d9-953a-3a7cc63a7487.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=zh_CN]
   options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/f38e8242-615b-450a-abe3-b5719d6455de, contentWriterNodeRef=workspace://SpacesStore/b1427c56-ffb5-46f6-9f58-d817ea696414, sourceContentProperty=null, use=webpreview, includeEmbedded=false}
   limits:
   at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)
   at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:184)
   at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:422)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:491)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:529)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:341)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
   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.scripts.ScriptException: 08190020 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 08190019 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2014/9/19/22/4/a014ab35-dc00-49b2-a35a-9b3dc454f306.bin, mimetype=image/vnd.cdr, size=6738156, encoding=UTF-8, locale=zh_CN]
   writer: ContentAccessor[ contentUrl=store://2014/9/19/22/5/e13aff20-d7f9-41d9-953a-3a7cc63a7487.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=zh_CN]
   options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/f38e8242-615b-450a-abe3-b5719d6455de, contentWriterNodeRef=workspace://SpacesStore/b1427c56-ffb5-46f6-9f58-d817ea696414, sourceContentProperty=null, use=webpreview, includeEmbedded=false}
   limits:
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:204)
   at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
   at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
   at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
   at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:128)
   … 28 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 08190019 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2014/9/19/22/4/a014ab35-dc00-49b2-a35a-9b3dc454f306.bin, mimetype=image/vnd.cdr, size=6738156, encoding=UTF-8, locale=zh_CN]
   writer: ContentAccessor[ contentUrl=store://2014/9/19/22/5/e13aff20-d7f9-41d9-953a-3a7cc63a7487.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=zh_CN]
   options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/f38e8242-615b-450a-abe3-b5719d6455de, contentWriterNodeRef=workspace://SpacesStore/b1427c56-ffb5-46f6-9f58-d817ea696414, sourceContentProperty=null, use=webpreview, includeEmbedded=false}
   limits:
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:256)
   at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:624)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:125)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:161)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy53.transform(Unknown Source)
   at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java:435)
   at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java:426)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:425)
   at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$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: 08190018 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://C:\Alfresco\tomcat\temp\Alfresco\ComplextTransformer_intermediate_cdr_29370601756377068.pdf, mimetype=application/pdf, size=0, encoding=UTF-8, locale=zh_CN]
   writer: ContentAccessor[ contentUrl=store://2014/9/19/22/5/e13aff20-d7f9-41d9-953a-3a7cc63a7487.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=zh_CN]
   options: {targetContentProperty=null, contentReaderNodeRef=null, contentWriterNodeRef=workspace://SpacesStore/b1427c56-ffb5-46f6-9f58-d817ea696414, sourceContentProperty=null, use=webpreview, includeEmbedded=false}
   limits: {maxSourceSizeKBytes=512000000}
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:256)
   at org.alfresco.repo.content.transform.ComplexContentTransformer.transformInternal(ComplexContentTransformer.java:484)
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:211)
   … 30 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 08190017 Transformation failed - status indicates an error:
Execution result:
   os:         Windows 7
   command:    C:/Alfresco/swftools/pdf2swf.exe -T 9 -s poly2bitmap -s subpixels=72 C:\Alfresco\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_source_3863442409264781760.pdf -o C:\Alfresco\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_target_5122502276850001198.swf -s languagedir=C:/Alfresco/swftools/japanese -p 0-
   succeeded:  false
   exit code:  1
   out:        NOTICE  Adding C:/Alfresco/swftools/japanese to language pack directories
ERROR   Couldn't open C:\Alfresco\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_source_3863442409264781760.pdf

   err:        Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table…
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

   at org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker.transform(RuntimeExecutableContentTransformerWorker.java:269)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:72)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy18.transform(Unknown Source)
   at org.alfresco.repo.content.transform.ProxyContentTransformer.transformInternal(ProxyContentTransformer.java:98)
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:211)
   … 32 more

Outcomes