#####added by me ###online preview doc - max 10MB content.transformer.OpenOffice.extensions.doc.pdf.maxSourceSizeKBytes=10240 content.transformer.OpenOffice.extensions.docx.pdf.maxSourceSizeKBytes=10240 content.transformer.OpenOffice.extensions.xls.pdf.maxSourceSizeKBytes=10240 content.transformer.OpenOffice.extensions.xlsx.pdf.maxSourceSizeKBytes=10240 content.transformer.OpenOffice.extensions.ppt.pdf.maxSourceSizeKBytes=10240 content.transformer.OpenOffice.extensions.pptx.pdf.maxSourceSizeKBytes=10240 content.transformer.OpenOffice.extensions.vsd.pdf.maxSourceSizeKBytes=10240
——–end————-
problem:
i created folder testing under myfile and upload few docx doc. some of the doc / docx cant preview online and the error as below : i also try to create site and upload same doc but still same resutls.
2014-10-02 12:04:49,282 ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-12] Exception from executeScript - redirecting to status template error: 09020006 Wrapped Exception (with status template): 09020036 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 09020035 Content conversion failed: reader: ContentAccessor[ contentUrl=store://2014/9/30/18/53/49c7596a-6bcb-41ec-912e-36af477eb3dd.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=1155441, encoding=UTF-8, locale=en_US] writer: ContentAccessor[ contentUrl=store://2014/10/2/12/4/26a61d99-aa7f-43a8-8883-ad0da39b735a.bin, mimetype=application/pdf, size=0, encoding=UTF-8, locale=en_US] options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/b0164445-d7b1-4af9-bd45-770b8542088d, contentWriterNodeRef=workspace://SpacesStore/73687172-9581-4509-8e9d-c0c52dd27295, sourceContentProperty=null, use=null, includeEmbedded=false} limits: {maxSourceSizeKBytes=10240} org.springframework.extensions.webscripts.WebScriptException: 09020006 Wrapped Exception (with status template): 09020036 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 09020035 Content conversion failed: reader: ContentAccessor[ contentUrl=store://2014/9/30/18/53/49c7596a-6bcb-41ec-912e-36af477eb3dd.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=1155441, encoding=UTF-8, locale=en_US] writer: ContentAccessor[ contentUrl=store://2014/10/2/12/4/26a61d99-aa7f-43a8-8883-ad0da39b735a.bin, mimetype=application/pdf, size=0, encoding=UTF-8, locale=en_US] options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/b0164445-d7b1-4af9-bd45-770b8542088d, contentWriterNodeRef=workspace://SpacesStore/73687172-9581-4509-8e9d-c0c52dd27295, sourceContentProperty=null, use=null, includeEmbedded=false} limits: {maxSourceSizeKBytes=10240} at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1126) at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:184) at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:426) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:563) at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:343) 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:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2378) 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:745) Caused by: org.alfresco.scripts.ScriptException: 09020036 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 09020035 Content conversion failed: reader: ContentAccessor[ contentUrl=store://2014/9/30/18/53/49c7596a-6bcb-41ec-912e-36af477eb3dd.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=1155441, encoding=UTF-8, locale=en_US] writer: ContentAccessor[ contentUrl=store://2014/10/2/12/4/26a61d99-aa7f-43a8-8883-ad0da39b735a.bin, mimetype=application/pdf, size=0, encoding=UTF-8, locale=en_US] options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/b0164445-d7b1-4af9-bd45-770b8542088d, contentWriterNodeRef=workspace://SpacesStore/73687172-9581-4509-8e9d-c0c52dd27295, sourceContentProperty=null, use=null, includeEmbedded=false} limits: {maxSourceSizeKBytes=10240} 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:1364) at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:128) … 31 more Caused by: org.alfresco.service.cmr.repository.ContentIOException: 09020035 Content conversion failed: reader: ContentAccessor[ contentUrl=store://2014/9/30/18/53/49c7596a-6bcb-41ec-912e-36af477eb3dd.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=1155441, encoding=UTF-8, locale=en_US] writer: ContentAccessor[ contentUrl=store://2014/10/2/12/4/26a61d99-aa7f-43a8-8883-ad0da39b735a.bin, mimetype=application/pdf, size=0, encoding=UTF-8, locale=en_US] options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/b0164445-d7b1-4af9-bd45-770b8542088d, contentWriterNodeRef=workspace://SpacesStore/73687172-9581-4509-8e9d-c0c52dd27295, sourceContentProperty=null, use=null, includeEmbedded=false} limits: {maxSourceSizeKBytes=10240} at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:257) at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:649) 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:158) 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:439) at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java:430) at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548) at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:429) at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:404) at java.util.concurrent.FutureTask.run(FutureTask.java:262) … 3 more Caused by: org.alfresco.service.cmr.repository.ContentIOException: 09020034 OpenOffice server conversion failed: reader: ContentAccessor[ contentUrl=store://2014/9/30/18/53/49c7596a-6bcb-41ec-912e-36af477eb3dd.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=1155441, encoding=UTF-8, locale=en_US] writer: ContentAccessor[ contentUrl=store://2014/10/2/12/4/26a61d99-aa7f-43a8-8883-ad0da39b735a.bin, mimetype=application/pdf, size=0, encoding=UTF-8, locale=en_US] from file: /opt/alfresco-5.0.a/tomcat/temp/Alfresco/OpenOfficeContentTransformer-source-6085437195873759458.docx to file: /opt/alfresco-5.0.a/tomcat/temp/Alfresco/OpenOfficeContentTransformer-target-7551261933495583145.pdf at org.alfresco.repo.content.transform.OOoContentTransformerHelper.transform(OOoContentTransformerHelper.java:372) 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.$Proxy20.transform(Unknown Source) at org.alfresco.repo.content.transform.ProxyContentTransformer.transformInternal(ProxyContentTransformer.java:98) at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:212) … 29 more Caused by: net.sf.jooreports.openoffice.connection.OpenOfficeException: conversion failed; com.sun.star.task.ErrorCodeIOException: at net.sf.jooreports.openoffice.converter.OpenOfficeDocumentConverter.convertInternal(OpenOfficeDocumentConverter.java:117) at net.sf.jooreports.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:88) at org.alfresco.repo.content.transform.OpenOfficeContentTransformerWorker.convert(OpenOfficeContentTransformerWorker.java:118) at org.alfresco.repo.content.transform.OOoContentTransformerHelper.transform(OOoContentTransformerHelper.java:368) … 39 more ^C [root@alfresco scripts]#
my question is as below, hope some one able to help me solve this issue
1. is ihis caused by libreoffice during convert docx to pdf ? 2. some time the doc able to preview but only 1 page or few pages, not a completed docx. any solution ?
We have uploaded a bunch of DOCX files and we can't figure out why some DOCX files render and show in the preview just fine, exactly like they are suppose to, while other DOCX files will not show at all and say that the preview engine for this file type is not available.
It is most likely related to the size of your source docx document. Basically you can configure your global properties to setup a max size for the documents you want to transform. And it has default values. To avoid overloading the server by constantly transforming huge documents. If you find that value isn't right for you, feel free to update it.