cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to preview the outlook message file (.msg) in Alfresco Share

hont_vn
Champ in-the-making
Champ in-the-making
Hi all,

When I click to a Outlook message (.msg) in Alfresco Share (4.2.c), it's unable to preview with the message "The preview could not be loaded from the server".

Anyone know how to configure or fix this issue in 4.2.c? I tried Google/Alfresco wiki/forum, but seemed this bug happened long time ago (2008).

Got the following exception in the log file:


16:52:03,670 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 06250001 Wrapped Exc
eption (with status template): 06250217 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 06250216
Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2013/7/25/10/59/860d059f-c23a-43d1-82c1-7b8dbaa8143f.bin, mimetype=application/vnd.ms-outlook, size=59392, encoding=UTF-8
, locale=en_US]
   writer: ContentAccessor[ contentUrl=store://2013/7/25/16/52/66e17bb2-55c5-4340-8ac7-032e627bc4a6.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8,
locale=en_US]
   options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/f51c1073-9d03-4bb7-bc3e-0280b09e29b9, contentWriterNodeRef=workspace://SpacesStore
/7d6306aa-2ef5-4e45-93e8-79165d07b16b, sourceContentProperty=null, includeEmbedded=false}
   limits: {timeoutMs=120000, maxPages=-1, readLimitKBytes=-1, maxSourceSizeKBytes=-1, pageLimit=-1, readLimitTimeMs=-1}
org.springframework.extensions.webscripts.WebScriptException: 06250001 Wrapped Exception (with status template): 06250217 Failed to execute script 'classpath*:alfresco/
templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 06250216 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2013/7/25/10/59/860d059f-c23a-43d1-82c1-7b8dbaa8143f.bin, mimetype=application/vnd.ms-outlook, size=59392, encoding=UTF-8
, locale=en_US]
   writer: ContentAccessor[ contentUrl=store://2013/7/25/16/52/66e17bb2-55c5-4340-8ac7-032e627bc4a6.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8,
locale=en_US]
   options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/f51c1073-9d03-4bb7-bc3e-0280b09e29b9, contentWriterNodeRef=workspace://SpacesStore
/7d6306aa-2ef5-4e45-93e8-79165d07b16b, sourceContentProperty=null, includeEmbedded=false}
   limits: {timeoutMs=120000, maxPages=-1, readLimitKBytes=-1, maxSourceSizeKBytes=-1, pageLimit=-1, readLimitTimeMs=-1}
        at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)
        at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:212)
        at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:433)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

….

Caused by: org.alfresco.scripts.ScriptException: 06250217 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail
.get.js': 06250216 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2013/7/25/10/59/860d059f-c23a-43d1-82c1-7b8dbaa8143f.bin, mimetype=application/vnd.ms-outlook, size=59392, encoding=UTF-8
, locale=en_US]
   writer: ContentAccessor[ contentUrl=store://2013/7/25/16/52/66e17bb2-55c5-4340-8ac7-032e627bc4a6.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8,
locale=en_US]
   options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/f51c1073-9d03-4bb7-bc3e-0280b09e29b9, contentWriterNodeRef=workspace://SpacesStore
/7d6306aa-2ef5-4e45-93e8-79165d07b16b, sourceContentProperty=null, includeEmbedded=false}
   limits: {timeoutMs=120000, maxPages=-1, readLimitKBytes=-1, maxSourceSizeKBytes=-1, pageLimit=-1, readLimitTimeMs=-1}
        at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:202)
        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:156)
        … 28 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 06250216 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2013/7/25/10/59/860d059f-c23a-43d1-82c1-7b8dbaa8143f.bin, mimetype=application/vnd.ms-outlook, size=59392, encoding=UTF-8
, locale=en_US]
   writer: ContentAccessor[ contentUrl=store://2013/7/25/16/52/66e17bb2-55c5-4340-8ac7-032e627bc4a6.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8,
locale=en_US]
   options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/f51c1073-9d03-4bb7-bc3e-0280b09e29b9, contentWriterNodeRef=workspace://SpacesStore
/7d6306aa-2ef5-4e45-93e8-79165d07b16b, sourceContentProperty=null, includeEmbedded=false}
   limits: {timeoutMs=120000, maxPages=-1, readLimitKBytes=-1, maxSourceSizeKBytes=-1, pageLimit=-1, readLimitTimeMs=-1}
        at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:272)
        at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:625)

3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator
Hello,

the output in the log "Unsuported transformation attempted" says it all - conversion of Outlook MSG files is not supported by your Alfresco instance. I haven't looked into Alfresco 4.2 to closely to know if Outlook MSG files are now supported but until the latest 4.1.x, Alfresco by default can't handle MSGs, so I assume 4.2 can't as well as long as you don't configure your own, custom transformer.

Regards
Axel

hont_vn
Champ in-the-making
Champ in-the-making
Hello Axel,

Thanks for your reply. Do you know how to configure custom transformer in order to support MSGs? I have tried the MediaViewers but it doesn't work. 
https://code.google.com/p/share-extras/wiki/MediaViewers

Thanks,
Ho

afaust
Legendary Innovator
Legendary Innovator
Hello,

I don't know of any ready-to-use transformers that you could simply configure. The MediaViewers addon certainly does not provide a transformer for Outlook message files.
There exist a few Java libraries that could be used to implement a content transformer (Apache POI HMSF, msgparser, Aspose.Email …), but you'd need to write the necesary Java code.

Regards
Axel