cancel
Showing results for 
Search instead for 
Did you mean: 

Transform Content

joao_pereira
Champ in-the-making
Champ in-the-making
Hi,

I've created a space called txts and other called pdfs. In the txts space I added a rule in order to transforma all the content when inbound to pdf and copy it to space pdfs. When I upload a txt file into txts space the rule is not applied and the following exception is raised :
22:45:12,646 ERROR [repo.action.ActionServiceImpl] An error was encountered whilst executing the action 'composite-actio
n'.
java.lang.NullPointerException
        at org.alfresco.repo.action.executer.TransformActionExecuter.executeImpl(TransformActionExecuter.java:171)
        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(AsynchronousAct
ionExecutionQueueImpl.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(AsynchronousActionEx
ecutionQueueImpl.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)
java.lang.NullPointerException
        at org.alfresco.repo.action.executer.TransformActionExecuter.executeImpl(TransformActionExecuter.java:171)
        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(AsynchronousAct
ionExecutionQueueImpl.java:279)
        at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:119)
        at org.alfresco.repo.transaction.TransactionUtil.executeInNonPropagatingUserTransaction(TransactionUtil.java:79)

Cal  you provide me more info about this issue?
Thanks,
João
3 REPLIES 3

derek
Star Contributor
Star Contributor
Hi,

Thanks for this.  We'll check it out.

I have added this as a bug - you are welcome to add bugs directly, if you wish:  http://www.alfresco.org/jira/browse/AR-222

Regards

joao_pereira
Champ in-the-making
Champ in-the-making
Hi Derek,
I've tested again and have new info regarding this issue.
I indeed created the two spaces, "txts" and "pdfs" and added a transform content rule to trasform the inbound content in "txts" to pdf and copy the transformed content to "pdfs". When I upload contet (a txt file) through the web client, nothing happens,
Now, the new info. When through CIFS I create a new txt file using the left button and "New -> Text Document" the exception is raised: NullPointerException.

Hope this new info helps.
BTW, why it doesn't convert the txt into pdf when upload content? Something missing in my config?

Thanks,
JP

derek
Star Contributor
Star Contributor
Hi,

The issues with the CIFS repository client and WebDAV are just bugs to do with the action being fired before the file write has finished.

The first issue is probably just a connect issue.  The transformation action quits silently (at present) if there is no transformer available to do the job.  You may just have to kill the OpenOffice quickstarter and start a headless server:
http://www.alfresco.org/mediawiki/index.php/Development_Environment#Configuring_Open_Office.

We'll follow the CIFS issue up.  Let me know if the Web Client starts working.

Regards