cancel
Showing results for 
Search instead for 
Did you mean: 

Error converting to JPEG

joao_pereira
Champ in-the-making
Champ in-the-making
Hello,
I've creates a rule to transform the items in one space to a JPG and copy them to another space. It's an inbound rule. When I put an HTML in the space the following exception occurs:
org.alfresco.error.AlfrescoRuntimeException: Zero scoring transformation attempted:
   reader: ContentAccessor[ contentUrl=store://2005/11/2/1588acc5-4bea-11da-9822-997476fe6135.bin, mimetype=text/html, size=12, encoding=UTF-8]
   writer: ContentAccessor[ contentUrl=store://2005/11/2/16bbd59a-4bea-11da-9822-997476fe6135.bin, mimetype=image/jpeg, size=0, encoding=UTF-8]
        at org.alfresco.repo.content.transform.AbstractContentTransformer.checkReliability(AbstractContentTransformer.java:92)
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:145)
        at org.alfresco.repo.action.executer.ImageTransformActionExecuter.doTransform(ImageTransformActionExecuter.java:83)
        at org.alfresco.repo.action.executer.TransformActionExecuter.executeImpl(TransformActionExecuter.java:196)
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:91)
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:486)
        at org.alfresco.repo.action.executer.CompositeActionExecuter.executeImpl(CompositeActionExecuter.java:64)
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:91)
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:486)
        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:427)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:279)
        at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:119)
        at org.alfresco.repo.transaction.TransactionUtil.executeInNonPropagatingUserTransaction(TransactionUtil.java:79)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:269)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)


And, of course nothing is converted and copied to the second space.
Any ideas on his error?
Thanks for your help,
João
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
João,

By looking at the error you are getting it seems you are trying to transform HTML to JPG. I'm guessing you have used the "transform image" action in the rule?

If so, this transformer only supports transformations from one image format to another. To do the type of transformation you require you'll need to use the "transform" action in the rule. This action uses OpenOffice which as your other post (http://www.alfresco.org/forums/viewtopic.php?t=340&highlight=) suggests, you don't have running.

Hope that helps.

joao_pereira
Champ in-the-making
Champ in-the-making
Thanks,
Sure it helps. It seems that I've to download OpenOffice to test all the great features in Alfresco.

João