cancel
Showing results for 
Search instead for 
Did you mean: 

Previewer never loads document.

jrosengren
Champ in-the-making
Champ in-the-making
I'm trying to get the Flash previewer to work in Share.  I'm using 3.2r and have OpenOffice 3 and swftools 0.9 installed on CentOS 5.4.

When I click on a Word document in Share, the document information page displays correctly, and the flash previewer loads correctly, however, the spinning progress icon inside the flash viewer never loads anything.  The flash viewer does seem to finish loading and display a preview for a PDF document.

This sounds like a problem with the process that sends Office documents to OpenOffice for transformation and then to swftools.  Is there any way I can diagnose this further since I'm not seeing anything in the logs while this is happening?

Thanks,

– jeremy
13 REPLIES 13

mikkoko
Champ in-the-making
Champ in-the-making
Just to confirm I see this also on 3.2r, running on Linux with OpenOffice.org 3.1.1 installed from the official tar.gz packet and swftools compiled from version 2009-08-24-2042

For example, I have one 6MB Word 2003 document with a lot of pictures which loads almost instantly - and then there's one 305KB Word 2003 document with just some text, and that never loads, the "progress circle" just keeps spinning..

I'd also like to know how to debug this.

mikeh
Star Contributor
Star Contributor
You can raise the logging level on the org.alfresco.repo.content.transform package to try and see what's happening.

Thanks,
Mike

jrosengren
Champ in-the-making
Champ in-the-making
Sorry, I'm fairly new to Alfresco - can you post the magic incantation for doing that?

Thanks!

mikeh
Star Contributor
Star Contributor
Set
log4j.logger.org.alfresco.repo.content.transform=debug
in dev-log4j.properties. This wiki article will help you with the properties file: http://wiki.alfresco.com/wiki/Developer_Runtime_Configuration#Configuring_Log4J

Thanks,
Mike

jrosengren
Champ in-the-making
Champ in-the-making
Thanks, Mike.  I'll do some logging and see what shows up.

jrosengren
Champ in-the-making
Champ in-the-making
I enabled DEBUG logging for the transform subsystem and this is what I see in the log for a file that never loads:

09:30:40,118 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/msword
   target mimetype: image/png
   transformers: [ComplexContentTransformer[ average=0ms]]
09:30:40,119 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/msword
   target mimetype: image/png
   transformers: [ComplexContentTransformer[ average=0ms]]
09:30:40,119 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/msword
   target mimetype: image/jpeg
   transformers: [ComplexContentTransformer[ average=0ms]]
09:30:40,119 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/msword
   target mimetype: image/png
   transformers: [ComplexContentTransformer[ average=0ms]]
09:30:40,120 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/msword
   target mimetype: application/x-shockwave-flash
   transformers: [ComplexContentTransformer[ average=0ms]]

Here's what I see when I select a document that *does* load the preview:

09:31:55,141 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/msword
   target mimetype: image/png
   transformers: [ComplexContentTransformer[ average=0ms]]
09:31:55,156 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/msword
   target mimetype: image/png
   transformers: [ComplexContentTransformer[ average=0ms]]
09:31:55,165 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/msword
   target mimetype: image/png
   transformers: [ComplexContentTransformer[ average=0ms]]
09:31:55,175 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/msword
   target mimetype: image/png
   transformers: [ComplexContentTransformer[ average=0ms]]
09:31:56,322 DEBUG [org.alfresco.repo.content.transform.AbstractContentTransformer2] Completed transformation:
   reader: ContentAccessor[ contentUrl=store://2009/11/13/13/51/031902f3-a54e-4fa4-8c47-389a8d88bf46.bin, mimetype=application/msword, size=100352, encoding=utf-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store:///export/home/alfresco/tomcat/temp/Alfresco/ComplextTransformer_intermediate_doc_7091404937296537632.pdf, mimetype=application/pdf, size=170154, encoding=UTF-8, locale=en_US]
   options: org.alfresco.repo.content.transform.magick.ImageTransformationOptions@452467ec
   transformer: ProxyContentTransformer[ average=1166ms]
09:31:56,620 DEBUG [org.alfresco.repo.content.transform.AbstractContentTransformer2] Completed transformation:
   reader: ContentAccessor[ contentUrl=store://2009/11/13/13/51/6fdd880d-0f7b-43ce-a5ee-f7f76fad6853.bin, mimetype=application/msword, size=50176, encoding=utf-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store:///export/home/alfresco/tomcat/temp/Alfresco/ComplextTransformer_intermediate_doc_8858888978201441383.pdf, mimetype=application/pdf, size=137030, encoding=UTF-8, locale=en_US]
   options: org.alfresco.repo.content.transform.magick.ImageTransformationOptions@452467ec
   transformer: ProxyContentTransformer[ average=1304ms]
09:31:58,242 DEBUG [org.alfresco.repo.content.transform.AbstractContentTransformer2] Completed transformation:
   reader: ContentAccessor[ contentUrl=store:///export/home/alfresco/tomcat/temp/Alfresco/ComplextTransformer_intermediate_doc_8858888978201441383.pdf, mimetype=application/pdf, size=137030, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store:///export/home/alfresco/tomcat/temp/Alfresco/ComplextTransformer_intermediate_pdf_5239028089224982420.png, mimetype=image/png, size=64763, encoding=UTF-8, locale=en_US]
   options: org.alfresco.repo.content.transform.magick.ImageTransformationOptions@452467ec
   transformer: PdfToImageContentTransformer[ average=1622ms]
09:31:58,254 DEBUG [org.alfresco.repo.content.transform.AbstractContentTransformer2] Completed transformation:
   reader: ContentAccessor[ contentUrl=store:///export/home/alfresco/tomcat/temp/Alfresco/ComplextTransformer_intermediate_doc_7091404937296537632.pdf, mimetype=application/pdf, size=170154, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store:///export/home/alfresco/tomcat/temp/Alfresco/ComplextTransformer_intermediate_pdf_8802906912177945054.png, mimetype=image/png, size=91581, encoding=UTF-8, locale=en_US]
   options: org.alfresco.repo.content.transform.magick.ImageTransformationOptions@452467ec
   transformer: PdfToImageContentTransformer[ average=1775ms]
….SNIP…..

I see a ton of other stuff at the end of the successful preview log entries, which I won't paste unless it looks necessary.

Any idea what's going on here?  Does it seem significant that the .docx file was successful while the .doc file wasn't?

Thanks,

– jeremy

jrosengren
Champ in-the-making
Champ in-the-making
Bump.

Any suggestions?  It'd be nice to have preview working for all documents.  If there's any other information I can dig up or things to try, I'm game.

mikeh
Star Contributor
Star Contributor
Nothing obvious in the log trace. Can OpenOffice (standalone) open the .doc file ok?

Thanks,
Mike

jrosengren
Champ in-the-making
Champ in-the-making
Right after bumping this thread, I went out to look for updates and noticed that 3.2 r2 was available.

I upgrade to 3.2 r2 and now the document previewer does finish loading, except that the now what happens is that the size of the window seems to be really, really large - you have to scroll all the way to the left and all the way up to see the document, which by default is extremely tiny.  Changing the zoom slider does work, although it resets the sliders on the previewer frame so that you have to scroll again to see the larger document.

So something in the latest build seems to have resolved the problem of the previewer never loading, but now doesn't seem to completely understand how to size the previewer window.

Has anybody seen anything like this with 3.2 r2?

Thanks!