cancel
Showing results for 
Search instead for 
Did you mean: 

SWF files does not open in Alfresco Share Preview

sselvan
Champ in-the-making
Champ in-the-making
I uploaded a (Shockware Flash) SWF file into Alfresco Share and tried to see the preview. The file does not get previewed, instead it shows -

"This document can't be previewed. Click here to download it."

I am shocked to see - Alfresco Share does not support SWF files in the preview, while it converts all the files(PDF, Doc etc.,) to SWF to preview?
Am I missing something? Please help me!!!

By the way, I am able to open the same in Alfresco (not in SHARE).
In other hand, I am able to preview all other files like PDF and Doc etc., in the Share preview…
7 REPLIES 7

sselvan
Champ in-the-making
Champ in-the-making
Here is the snapshot of the log, which throws exception whenever I preview the SWF file in Alfresco Share.

INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 29, 2009 10:04:16 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 134631 ms
GetPage inner loop:
com.sun.pdfview.PDFParseException: Data format exception:unknown compression method
        at com.sun.pdfview.decode.FlateDecode.decode(FlateDecode.java:85)
        at com.sun.pdfview.decode.PDFDecoder.decodeStream(PDFDecoder.java:60)
        at com.sun.pdfview.PDFObject.decodeStream(PDFObject.java:330)
        at com.sun.pdfview.PDFObject.getStream(PDFObject.java:257)
        at com.sun.pdfview.PDFFile.getContents(PDFFile.java:1098)
        at com.sun.pdfview.PDFFile.getPage(PDFFile.java:1051)
        at com.sun.pdfview.PDFFile.getPage(PDFFile.java:1020)
        at org.alfresco.repo.content.transform.PdfToImageContentTransformer.transformInternal(PdfToImageContentTransformer.ja
va:90)
        at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:216)
        at org.alfresco.repo.content.transform.ComplexContentTransformer.transformInternal(ComplexContentTransformer.java:154
)
        at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:216)
        at org.alfresco.repo.content.RoutingContentService.transform(RoutingContentService.java:495)
        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:296)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:
80)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
        at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:131)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodI
nterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:275)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy28.transform(Unknown Source)
        at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnail(ThumbnailServiceImpl.java:218)
        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:296)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.j
ava:40)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodI
nterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:275)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy80.createThumbnail(Unknown Source)
        at org.alfresco.repo.thumbnail.CreateThumbnailActionExecuter.executeImpl(CreateThumbnailActionExecuter.java:116)
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:127)
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:591)
        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:528)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.execute(AsynchronousActionE
xecutionQueueImpl.java:371)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecuti
onQueueImpl.java:381)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
10:11:00,921  INFO  [post.lookup.PostLookup] Update: 1 activity posts
GetPage inner loop:
com.sun.pdfview.PDFParseException: Data format exception:unknown compression method
        at com.sun.pdfview.decode.FlateDecode.decode(FlateDecode.java:85)
        at com.sun.pdfview.decode.PDFDecoder.decodeStream(PDFDecoder.java:60)
        at com.sun.pdfview.PDFObject.decodeStream(PDFObject.java:330)
        at com.sun.pdfview.PDFObject.getStream(PDFObject.java:257)
        at com.sun.pdfview.PDFFile.getContents(PDFFile.java:1098)
        at com.sun.pdfview.PDFFile.getPage(PDFFile.java:1051)
        at com.sun.pdfview.PDFFile.getPage(PDFFile.java:1020)
        at org.alfresco.repo.content.transform.PdfToImageContentTransformer.transformInternal(PdfToImageContentTransformer.ja
va:90)

mikeh
Star Contributor
Star Contributor
Hi

Yes, this is a rather embarrassing oversight. We'll make sure it's fixed in v3.2.

Thanks,
Mike

sselvan
Champ in-the-making
Champ in-the-making
Thanks Mike for your reply.

However, the exception in the log is not a road block, I guess.
We were able to fix the exception, even then the SWF file is not opening in preview.

The whole pain point is I am not able to open any SWF(Shockwave Flash) file in the Preview.

Do you think SWF is not a supported file format in preview? If so, how does the preview convert pdf's to swf's and show it in the preview?
Am I missing some configuration?

Please let me know. This will be a great help!!

thank you

mikeh
Star Contributor
Star Contributor
The whole pain point is I am not able to open any SWF(Shockwave Flash) file in the Preview.
That's correct - at the moment the code which launches the previewer doesn't know that SWF movies themselves are valid - it assumes the content has to be converted to a SWF first. That's what we need to fix.

Mike

ajn1130
Champ in-the-making
Champ in-the-making
The bigger problem to me is that it does not keep the swf files cached for a long period of time. Is there a way to set the cache time limit higher so that the swf files stay cached longer? We have some 100MB files that are brutal to preview the first time out, I can go have two meals and come back and te thing is still loading. Any plans to make the previewer just open in Native format? Is there anyway to keep the doc's cached once they are transformed. Anybody?

sselvan
Champ in-the-making
Champ in-the-making
May be use some other external previewer like Accordex?

stevegreenbaum
Champ in-the-making
Champ in-the-making
Does anyone know if .swf (video) or .flv files can be previewed in Share v3.3.g? 

When I uploaded a .swf to the document library and tried to preview it (by clicking on the file name), I receive the grey background and the spinning arrow.  I've tried this in a Windows environment using IE 8 and Firefox 3.6, with the same result.  All other previews are working fine (e.g., .doc, .xls).

I was thinking about incorporating Flowplayer, but I don't see that as being necessary if I get the built-in Flash player working in Share.