cancel
Showing results for 
Search instead for 
Did you mean: 

Error converting from PDF to DOC

nlcom
Champ in-the-making
Champ in-the-making
Hello, I am using Debian with TomCat to run Alfresco Community 2.1.0 build484 and OpenOffice 2.0.4

When I try to transform PDF files to DOC we get the following error:
Anyone know what this could be ?

Here is a log file from Alfresco itself:

10:34:59,459 ERROR [org.alfresco.web.ui.common.Utils] A system error happened during the operation: Unknown Exception in Transaction.

org.alfresco.error.AlfrescoRuntimeException: Unknown Exception in Transaction.

        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:292)

        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)

        at org.alfresco.web.bean.dialog.BaseDialogBean.finish(BaseDialogBean.java:124)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)

        at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)

        at javax.faces.component.UICommand.broadcast(UICommand.java:109)

        at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)

        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)

        at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)

        at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)

        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)

        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)

        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)

        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)

        at java.lang.Thread.run(Unknown Source)

Caused by: javax.transaction.RollbackException: Transaction didn't commit: No transformation exists between mimetypes application/pdf and application/msword

        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:430)

        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:239)

        … 32 more

Caused by: org.alfresco.service.cmr.repository.NoTransformerException: No transformation exists between mimetypes application/pdf and application/msword

        at org.alfresco.repo.action.executer.TransformActionExecuter.executeImpl(TransformActionExecuter.java:189)

        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:120)

        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:537)

        at org.alfresco.repo.action.executer.CompositeActionExecuter.executeImpl(CompositeActionExecuter.java:72)

        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:120)

        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:537)

        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:472)

        at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:399)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)

        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)

        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)

        at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:256)

        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:191)

        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)

        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)

        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)

        at $Proxy19.executeAction(Unknown Source)

        at org.alfresco.repo.rule.RuleServiceImpl.executeRule(RuleServiceImpl.java:918)

        at org.alfresco.repo.rule.RuleServiceImpl.executePendingRule(RuleServiceImpl.java:886)

        at org.alfresco.repo.rule.RuleServiceImpl.executePendingRulesImpl(RuleServiceImpl.java:857)

        at org.alfresco.repo.rule.RuleServiceImpl.executePendingRules(RuleServiceImpl.java:830)

        at org.alfresco.repo.rule.RuleTransactionListener.beforeCommit(RuleTransactionListener.java:69)

        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:626)

        at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:48)

        at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:821)

        at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:637)

        at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:624)

        at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:307)

        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:420)

        …
5 REPLIES 5

derek
Star Contributor
Star Contributor
Hi,

No transformation exists between mimetypes application/pdf and application/msword

None of the built-in transformation engines are able to accurately transform a document from PDF to Word.  You could try to build a complex transformer that does PDF->Html->Doc or some other combinations, but be prepared for humourous results.  Otherwise find a command line utility that does the job and register a tranformer for it.

Regards

nlcom
Champ in-the-making
Champ in-the-making
This is also happening when going from DOC to PDF.
Also tried DOC to HTML and it also fails with the same error 😕

I've been searching on the forum and came across this: http://forums.alfresco.com/viewtopic.php?t=8467&highlight=transformation+exists

nlcom
Champ in-the-making
Champ in-the-making
Also why is the rule present if it doesn't work properly?
Do I need to install something else to make it work? Could you be a bit more specific about this, what I need to do ?

derek
Star Contributor
Star Contributor
The rule is to convert to a particular format.  There are hundreds of possible input formats, so it is up to you to taylor the rule to suit the server's capabilities.

Are there any startup warning or error message related to Open Office?

Regards

moschap
Champ in-the-making
Champ in-the-making
Hi,

Try upgrading to the lastest version of Open Office if you are not already using that, and during installation, install into a directory that doesnt have spaces in the name eg c:\OpenOffice if you are running Windows. Then also check the files <Alfresco-Root>\tomcat\shared\classes\alfresco\extension\bootstrap\openoffice-startup-context.xml and <Alfresco_root>\alfresco.bat and make sure that the path to the Open office soffice program is correct. Restart Alfresco.