Ubuntu edgy, Alfresco 1.4, la jvm de Sun 1.5.0_08, OpenOffice 2.04
Alfresco fonctionne bien, mais la communication avec Openoffice ce passe mal.
Openoffice est lancé avec la commande suivante :
xvfb-run /usr/bin/soffice -accept="socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nocrashreport -norestore &
Avec un utilisateur qui l'a déja lancé en mode graphique, il n'y pas de soucis d'enregistrement ou pour créer le dossier de l'utilisateur.
J'ai mis une regle de contenu qui converti ce qui rentre en PDF dans un autre dossier.
Lorsque j'upload un document openoffice dans ce dossier, la regle essaye d'agir mais ce vautre. Voici ce que donne le log en passant jooreports en DEBUG :
15:31:47,659 DEBUG [net.sf.jooreports.openoffice.connection.SocketOpenOfficeConnection] trying to (re)connect
15:31:47,659 DEBUG [net.sf.jooreports.openoffice.connection.SocketOpenOfficeConnection] connecting
15:31:47,691 INFO [net.sf.jooreports.openoffice.connection.SocketOpenOfficeConnection] connected
15:36:08,073 ERROR [org.alfresco.repo.action.ActionServiceImpl] An error was encountered whilst executing the action 'composite-action'.
org.alfresco.service.cmr.repository.ContentIOException: Content conversion failed:
reader: ContentAccessor[ contentUrl=store://2006/12/1/15/36/45381336-8149-11db-bda1-5deb812ad142.bin, mimetype=application/vnd.oasis.opendocument.text, size=7326, encoding=UTF-8]
writer: ContentAccessor[ contentUrl=store://2006/12/1/15/36/4727ae3f-8149-11db-bda1-5deb812ad142.bin, mimetype=application/pdf, size=0, encoding=UTF-8]
options: {}
at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:246)
at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:202)
at org.alfresco.repo.content.RoutingContentService.transform(RoutingContentService.java:379)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:116)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:41)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:210)
at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:156)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:61)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
at $Proxy14.transform(Unknown Source)
at org.alfresco.repo.action.executer.TransformActionExecuter.doTransform(TransformActionExecuter.java:274)
at org.alfresco.repo.action.executer.TransformActionExecuter.executeImpl(TransformActionExecuter.java:249)
at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:112)
at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:524)
at org.alfresco.repo.action.executer.CompositeActionExecuter.executeImpl(CompositeActionExecuter.java:64)
at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:112)
at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:524)
at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:456)
at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:296)
at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:168)
at org.alfresco.repo.transaction.TransactionUtil.executeInNonPropagatingUserTransaction(TransactionUtil.java:108)
at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:286)
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)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: OpenOffice server conversion failed:
reader: ContentAccessor[ contentUrl=store://2006/12/1/15/36/45381336-8149-11db-bda1-5deb812ad142.bin, mimetype=application/vnd.oasis.opendocument.text, size=7326, encoding=UTF-8]
writer: ContentAccessor[ contentUrl=store://2006/12/1/15/36/4727ae3f-8149-11db-bda1-5deb812ad142.bin, mimetype=application/pdf, size=0, encoding=UTF-8]
from file: /opt/alfresco/tomcat/temp/Alfresco/OpenOfficeContentTransformer-source-24724.odt
to file: /opt/alfresco/tomcat/temp/Alfresco/OpenOfficeContentTransformer-target-24725.pdf
at org.alfresco.repo.content.transform.OpenOfficeContentTransformer.transformInternal(OpenOfficeContentTransformer.java:243)
at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:237)
… 38 more
Caused by: net.sf.jooreports.openoffice.connection.OpenOfficeException: conversion failed; com.sun.star.task.ErrorCodeIOException:
at net.sf.jooreports.openoffice.converter.OpenOfficeDocumentConverter.convert(Unknown Source)
at org.alfresco.repo.content.transform.OpenOfficeContentTransformer.transformInternal(OpenOfficeContentTransformer.java:238)
… 39 more
Ce qui est étonnant, c'est qu'avec le même openoffice qui écoute, le jar en ligne de commande de la version 2 (officielle) et 2.1 de jooconvert fonctionne trés bien.