cancel
Showing results for 
Search instead for 
Did you mean: 

RenditionServiceException on file upload

cquirk
Champ in-the-making
Champ in-the-making
running 3.4.a and I cannot seem to upload anything into the Document Library publications. It does not matter what mime type I try, they all fail. Any ides?

Caused by: org.alfresco.service.cmr.rendition.RenditionServiceException: 09100035 Transformer for 'image/jpeg' source mime type and 'image/jpeg' target mime type was not found. Operation can't be performed
… snip…
at $Proxy36.executeAction(Unknown Source)
   at org.alfresco.repo.rendition.RenditionServiceImpl.executeRenditionAction(RenditionServiceImpl.java:226)
   at org.alfresco.repo.rendition.RenditionServiceImpl.render(RenditionServiceImpl.java:180)
   at org.alfresco.module.org_alfresco_module_wcmquickstart.rendition.RenditionHelper.createRenditions(RenditionHelper.java:312)
   at org.alfresco.module.org_alfresco_module_wcmquickstart.rendition.RenditionHelper.createRenditions(RenditionHelper.java:187)
   at org.alfresco.module.org_alfresco_module_wcmquickstart.rendition.RenditionHelper.createRenditions(RenditionHelper.java:168)
   at org.alfresco.module.org_alfresco_module_wcmquickstart.rendition.RenditionHelper.createRenditions(RenditionHelper.java:126)
   at org.alfresco.module.org_alfresco_module_wcmquickstart.model.WebAssetAspect.onAddAspect(WebAssetAspect.java:213)
12 REPLIES 12

bremmington
Champ on-the-rise
Champ on-the-rise
Currently you must have ImageMagick and OpenOffice installed and Alfresco configured correctly with their location. This is done by default if you use the supplied installer. We may look at relaxing that requirement in the future, but quite a few parts of the website rely upon the correct renditions being available, as you would expect. When you upload into the publications section, for example, a thumbnail image is created to display on the section landing page, and a Flash rendition is created to show on the details page.

If you would prefer, you can turn off the renditions. You can do this by navigating to the publications section in Share, editing the folder's metadata and removing the value of the "Rendition Config" property. Note that the rendition configuration is inherited down the section hierarchy by default, so you may have to do a similar thing on the "root" section too.

I recommend getting ImageMagick and OpenOffice set up correctly, however. Without them you will be missing an important part of the system.

cquirk
Champ in-the-making
Champ in-the-making
Thank you for the quick response. I am using the installer for Mac OS X on 10.6.4:

alfresco-community-3.4.a-installer-osx.app.tar.gz downloaded from the website. I receive the following errors on startup:

01:03:24,307 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] ImageMagickContentTransformerWorker not available: 09100000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Mac OS X
   command:    [/Applications/alfresco-3.4.a/common/bin/convert, /Applications/alfresco-3.4.a/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_5133584078608749094.gif[0], /Applications/alfresco-3.4.a/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_1996624404907429404.png]
   succeeded:  false
   exit code:  1
   out:
   err:        .convert.bin: no decode delegate for this image format `/Applications/alfresco-3.4.a/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_5133584078608749094.gif' @ constitute.c/ReadImage/526.
.convert.bin: missing an image filename `

and…

/Applications/alfresco-3.4.a/openoffice/scripts/ctl.sh: line 136: 45213 Trace/BPT trap          $SOFFICE > /dev/null 2>&1
/Applications/alfresco-3.4.a/openoffice/scripts/ctl.sh : openoffice could not be started

I took all the defaults for install. I have read various install information for the mac but most the configuration in the installer version appears to point to both imagemagick and openoffice included in the install directory. Openoffice does not appear to start with the script alfresco.sh.

bremmington
Champ on-the-rise
Champ on-the-rise
OK. It's possible there's a fault there. If I understand you correctly, ImageMagick and OpenOffice have been installed, but please would you confirm this is the case?

cquirk
Champ in-the-making
Champ in-the-making
You are correct both ImageMagick and openoffice are installed by the install package downloaded from Alfresco but it appears there is some trouble running the applications from the install. I was able to get the web quick start up and running by downloading the src code from svn and making modifications to repository.properties in the alfresco webapp to point to my locally installed binaries. I suppose this is mostly a problem with the start script/configuration for mac and the installer. Once I built from head and made configuration changes, things are working but as an evaluator that is a bit much. If there is more information I can provide, please let me know.

bremmington
Champ on-the-rise
Champ on-the-rise
Thanks - sorry you had to jump through hoops to get it working. Again, just so I'm clear, the OpenOffice and ImageMagick that you are now using are different from those that were installed by Alfresco 3.4.a? Or did you build HEAD from source and configure it to point to the ImageMagick and OpenOffice that were installed with Alfresco? I'm not sure if the problem appears to be with the versions of ImageMagick and OpenOffice that were installed with Alfresco, or with the configuration of the installed package.

cquirk
Champ in-the-making
Champ in-the-making
You are correct the versions of openoffice and imagemagick that work are different. They are versions I installed separately. In order to test quickly against the installed versions(3.4.a) I made changes to repository.properties to reflect the same as the extension global properties from 3.4.a installer:

ooo.exe=/Applications/alfresco-3.4.a/openoffice/Contents/MacOs/soffice.bin
img.root=/Applications/alfresco-3.4.a/common
img.dyn=${img.root}/lib
img.exe=${img.root}/bin/convert
swf.exe=/Applications/alfresco-3.4.a/common/bin/pdf2swf

This resulted in no error from openoffice, but no listing of soffice in running tasks and the exact same error I mentioned previously about ImageMagick. It appears that it is likely a problem with the installed versions of openoffice and imagemagick on Mac OS X 10.6.4

bremmington
Champ on-the-rise
Champ on-the-rise
Thanks again. Would you mind telling me which versions of OpenOffice and ImageMagick you have installed (the ones that are working)?

cquirk
Champ in-the-making
Champ in-the-making
ImageMagick-6.6.4
OpenOffice 3.2.0

I just attempted modifying the installation properties for the installed version and ran into the errors described and resolved in this post here:

http://forums.alfresco.com/en/viewtopic.php?f=8&t=34995#p101737

I do not have these errors if I simply run the deployed built wars inside tomcat. Otherwise once I applied the fix suggested in the post things were working with both openoffice and imagemagick.

bremmington
Champ on-the-rise
Champ on-the-rise
I have raised an issue in Jira to track this problem: https://issues.alfresco.com/jira/browse/ALF-5160

Thanks for reporting it.