AnsweredAssumed Answered

The preview could not be loaded from the server

Question asked by tctim on Jan 25, 2010
Latest reply on Feb 2, 2010 by tctim
Document preview isn't working on Share - get the following error in the UI "The preview could not be loaded from the server"….

09:19:00,738 ERROR [org.alfresco.web.scripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 00250885 Wrapped Exception (with status template): 00250884 Failed to execute script '/org/alfresco/repository/thumbnail/thumbnail.get.js (in classpath store file:/Library/Tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts)': 00250883 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2010/1/20/16/18/7b2e69b0-5493-4ea3-8048-516b559166c1.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=21472, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store://2010/1/25/9/19/be5baadf-489d-4272-b766-552678360681.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=en_US]
   options: org.alfresco.repo.content.transform.swf.SWFTransformationOptions@6495b081
org.alfresco.web.scripts.WebScriptException: 00250885 Wrapped Exception (with status template): 00250884 Failed to execute script '/org/alfresco/repository/thumbnail/thumbnail.get.js (in classpath store file:/Library/Tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts)': 00250883 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2010/1/20/16/18/7b2e69b0-5493-4ea3-8048-516b559166c1.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=21472, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store://2010/1/25/9/19/be5baadf-489d-4272-b766-552678360681.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=en_US]
   options: org.alfresco.repo.content.transform.swf.SWFTransformationOptions@6495b081
   at org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:613)
   at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:211)
   at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:372)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:327)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:422)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:439)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:303)
   at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:306)
   at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:183)
   at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:637)
Caused by: org.alfresco.scripts.ScriptException: 00250884 Failed to execute script '/org/alfresco/repository/thumbnail/thumbnail.get.js (in classpath store file:/Library/Tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts)': 00250883 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2010/1/20/16/18/7b2e69b0-5493-4ea3-8048-516b559166c1.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=21472, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store://2010/1/25/9/19/be5baadf-489d-4272-b766-552678360681.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=en_US]
   options: org.alfresco.repo.content.transform.swf.SWFTransformationOptions@6495b081
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:178)
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:274)
   at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:108)
   at org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:819)
   at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:157)
   … 21 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 00250883 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2010/1/20/16/18/7b2e69b0-5493-4ea3-8048-516b559166c1.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=21472, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store://2010/1/25/9/19/be5baadf-489d-4272-b766-552678360681.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=en_US]
   options: org.alfresco.repo.content.transform.swf.SWFTransformationOptions@6495b081
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:176)
   at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:535)
   at org.alfresco.repo.thumbnail.ThumbnailServiceImpl$1.doWork(ThumbnailServiceImpl.java:265)
   at org.alfresco.repo.thumbnail.ThumbnailServiceImpl$1.doWork(ThumbnailServiceImpl.java:180)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:514)
   at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnail(ThumbnailServiceImpl.java:178)
   at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnail(ThumbnailServiceImpl.java:146)
   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:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:147)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy98.createThumbnail(Unknown Source)
   at org.alfresco.repo.jscript.ScriptNode.createThumbnail(ScriptNode.java:2311)
   at sun.reflect.GeneratedMethodAccessor531.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
   at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
   at org.mozilla.javascript.gen.c6._c1(file:/Library/Tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js:61)
   at org.mozilla.javascript.gen.c6.call(file:/Library/Tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js)
   at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
   at org.mozilla.javascript.gen.c6._c0(file:/Library/Tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js:101)
   at org.mozilla.javascript.gen.c6.call(file:/Library/Tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   at org.mozilla.javascript.gen.c6.call(file:/Library/Tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js)
   at org.mozilla.javascript.gen.c6.exec(file:/Library/Tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:457)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:174)
   … 25 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 00250882 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2010/1/20/16/18/7b2e69b0-5493-4ea3-8048-516b559166c1.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=21472, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store:///Library/Tomcat/temp/Alfresco/ComplextTransformer_intermediate_docx_2834882666606446442.pdf, mimetype=application/pdf, size=0, encoding=UTF-8, locale=en_US]
   options: org.alfresco.repo.content.transform.swf.SWFTransformationOptions@6495b081
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:176)
   at org.alfresco.repo.content.transform.ComplexContentTransformer.transformInternal(ComplexContentTransformer.java:154)
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:167)
   … 66 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 00250881 OpenOffice server conversion failed:
   reader: ContentAccessor[ contentUrl=store://2010/1/20/16/18/7b2e69b0-5493-4ea3-8048-516b559166c1.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=21472, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store:///Library/Tomcat/temp/Alfresco/ComplextTransformer_intermediate_docx_2834882666606446442.pdf, mimetype=application/pdf, size=0, encoding=UTF-8, locale=en_US]
   from file: /Library/Tomcat/temp/Alfresco/OpenOfficeContentTransformer-source-3422257078491400078.docx
   to file: /Library/Tomcat/temp/Alfresco/OpenOfficeContentTransformer-target-7143185078678275749.pdf
   at org.alfresco.repo.content.transform.OpenOfficeContentTransformerWorker.transform(OpenOfficeContentTransformerWorker.java:238)
   at sun.reflect.GeneratedMethodAccessor588.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:77)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy34.transform(Unknown Source)
   at org.alfresco.repo.content.transform.ProxyContentTransformer.transformInternal(ProxyContentTransformer.java:66)
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:167)
   … 68 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:114)
   at net.sf.jooreports.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:75)
   at org.alfresco.repo.content.transform.OpenOfficeContentTransformerWorker.transform(OpenOfficeContentTransformerWorker.java:233)
   … 77 more

Outcomes