ScenariServer 4.2 - Erreur de génération LibreOffice

Bonjour,

Nous rencontrons un problème lors de la génération ODT sur un Scenariserver 4.2.

  • LibreOffice 5.0 est installé dans /opt/libreoffice5.0
  • Les fichiers jurt.jar, etc. sont bien déclarés car le fichier de log nous indique que l’accès à OpenDocument est correct.

Cependant, voici l’erreur rencontrée à chaque génération :

Traces de 'Publication Texte OpenDocument' pour l'item '/eformation/Module_Guide_Moodle_Formateurs/_publications/_publications_papier.publi'

--- User details ---
Générateur: gen_paper - Publication Texte OpenDocument
Item racine: /eformation/Module_Guide_Moodle_Formateurs/_publications/_publications_papier.publi
* Starting OpenDocument editor in pipe mode.
* [transform] Echec à la transformation [transform]  Src='/media/scenari/javaserver/gen/2NC5FF42NEE18MBISRBTGU2V7O/2NC5FF/42NEE1/8MBISR/BTGU2P/23Q/~oberland/paper/_publications_papier.odt' [transform]  Dst='/media/scenari/javaserver/gen/2NC5FF42NEE18MBISRBTGU2V7O/2NC5FF/42NEE1/8MBISR/BTGU2P/23Q/~oberland/paper/_publications_papier.odt' [transform]  params='transform=odtUpdate&processings=keepEnumTitle:' [transform] eu.scenari.commons.util.lang.ScException
* Echec à la transformation  Src='/media/scenari/javaserver/gen/2NC5FF42NEE18MBISRBTGU2V7O/2NC5FF/42NEE1/8MBISR/BTGU2P/23Q/~oberland/paper/_publications_papier.odt'  Dst='/media/scenari/javaserver/gen/2NC5FF42NEE18MBISRBTGU2V7O/2NC5FF/42NEE1/8MBISR/BTGU2P/23Q/~oberland/paper/_publications_papier.odt'  params='transform=odtUpdate&processings=keepEnumTitle:'
  - Echec à la transformation d'une ressource (OpenDocument).
    - Connection to server failed : uno:pipe,name=sc4317702655816593915;urp;StarOffice.ComponentContext


--- Admin details ---
<?xml version="1.0" encoding="UTF-8"?>
<trace>
	<start t="15/03/17 16:48:11"/>
	<l t="Info" d="15/03/17 16:48:15">
		<message type="Info" ts="1489592895183" appCtx="chain" user="oberland" thread="chain-executor-1" desc="Starting OpenDocument editor in pipe mode."/>
	</l>
	<l t="Error" d="15/03/17 16:49:05">
		<message type="Error" ts="1489592945293" appCtx="chain" user="oberland" thread="chain-executor-1" desc="[transform] Echec à la transformation [transform]  Src='/media/scenari/javaserver/gen/2NC5FF42NEE18MBISRBTGU2V7O/2NC5FF/42NEE1/8MBISR/BTGU2P/23Q/~oberland/paper/_publications_papier.odt' [transform]  Dst='/media/scenari/javaserver/gen/2NC5FF42NEE18MBISRBTGU2V7O/2NC5FF/42NEE1/8MBISR/BTGU2P/23Q/~oberland/paper/_publications_papier.odt' [transform]  params='transform=odtUpdate&amp;processings=keepEnumTitle:' [transform] eu.scenari.commons.util.lang.ScException"/>
	</l>
	<l t="Warning" d="15/03/17 16:49:05">
		<message type="Warning" ts="1489592945293" appCtx="chain" user="oberland" thread="chain-executor-1" desc="Echec à la transformation  Src='/media/scenari/javaserver/gen/2NC5FF42NEE18MBISRBTGU2V7O/2NC5FF/42NEE1/8MBISR/BTGU2P/23Q/~oberland/paper/_publications_papier.odt'  Dst='/media/scenari/javaserver/gen/2NC5FF42NEE18MBISRBTGU2V7O/2NC5FF/42NEE1/8MBISR/BTGU2P/23Q/~oberland/paper/_publications_papier.odt'  params='transform=odtUpdate&amp;processings=keepEnumTitle:'">
			<message type="Error" ts="1489592945291" appCtx="chain" user="oberland" thread="chain-executor-1" desc="Echec à la transformation d'une ressource (OpenDocument).">
				<message type="Error" ts="1489592945288" appCtx="chain" user="oberland" thread="chain-executor-1" desc="Connection to server failed : uno:pipe,name=sc4317702655816593915;urp;StarOffice.ComponentContext">
					<message type="Exception" ts="1489592945291" appCtx="chain" user="oberland" thread="chain-executor-1">
						<details>eu.scenari.commons.util.lang.ScException
	at eu.scenari.commons.log.LogMgr.newException(LogMgr.java:388)
	at eu.scenari.transform.od.impl.OoConnection.xConnect(OoConnection.java:447)
	at eu.scenari.transform.od.impl.OoConnection.checkConnection(OoConnection.java:344)
	at eu.scenari.transform.od.impl.OoConnectionPool.getConnection(OoConnectionPool.java:180)
	at eu.scenari.transform.od.impl.TfmUpdate.transform(TfmUpdate.java:120)
	at eu.scenari.transform.od.TfmOpenDocument.transform(TfmOpenDocument.java:138)
	at com.scenari.m.co.ant.TransformTask.execute(TransformTask.java:96)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:390)
	at org.apache.tools.ant.Target.performTasks(Target.java:411)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at com.scenari.m.ge.generator.ant.AntGenerator.xGenerate(AntGenerator.java:440)
	at com.scenari.m.ge.generator.base.GeneratorStatic.generate(GeneratorStatic.java:643)
	at eu.scenari.wsp.module.gen.ThreadGen.run(ThreadGen.java:163)
	at eu.scenari.core.universe.Universe$1.run(Universe.java:393)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
</details>
					</message>
				</message>
			</message>
		</message>
	</l>
	<end t="15/03/17 16:49:05"/>
</trace>

--- Js stack ---
cbLoadLog@chrome://scenariwsp/content/widgets/genBox/genBox.xbl.xml:803:11
CallbackWrapper.prototype.handleEvent@chrome://scenariwsp/content/commons/servers/HttpDataProvider.jsm:410:17


--- App context ---
timestamp: 15/3/2017 16:49:34
userAgent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 ch.4.2/4.2.103
coreVersion: 4.2.103
brandShortName: SCENARIchain
appVersion: 4.2.103
appBuildId: 201701301330
appDevelopmentStage: final

Scenari génère ainsi un document ODT qui semble conforme, mais sans table des matières, accompagné du message “terminé avec anomalies”.
Merci pour votre aide.

Problème résolu :

  • En ajoutant la variable d’environnement LD_LIBRARY_PATH=/opt/libreoffice5.0/program
  • En utilisant la version LibreOffice 5.0 (et non la 5.2 fournie dans les paquets Ubuntu)

Bonjour,
J’ai semble-t-il un problème identique avec un docuemnt odt sans la table des matières et l’erreur suivante :


Traces de 'Publication Texte OpenDocument' pour l'item '/taches numeriques/FI presence/Tache 1 Enquete/Tache 1 Enquete_papier.publi'

--- User details ---
Générateur: gen_paper - Publication Texte OpenDocument
Item racine: /taches numeriques/FI presence/Tache 1 Enquete/Tache 1 Enquete_papier.publi
* Starting OpenDocument editor in pipe mode.
* [transform] Echec à la transformation [transform]  Src='/var/lib/scenariserver4.2/javaserver/gen/MPB2MSLP70OLENNBTAMEPUFJ0/MPB2MS/LP70OL/ENNBTA/MEPUG8/32Q/~admin/paper/Tache 1 Enquete_papier.odt' [transform]  Dst='/var/lib/scenariserver4.2/javaserver/gen/MPB2MSLP70OLENNBTAMEPUFJ0/MPB2MS/LP70OL/ENNBTA/MEPUG8/32Q/~admin/paper/Tache 1 Enquete_papier.odt' [transform]  params='transform=odtUpdate&processings=keepEnumTitle:' [transform] eu.scenari.commons.util.lang.ScException
* Echec à la transformation  Src='/var/lib/scenariserver4.2/javaserver/gen/MPB2MSLP70OLENNBTAMEPUFJ0/MPB2MS/LP70OL/ENNBTA/MEPUG8/32Q/~admin/paper/Tache 1 Enquete_papier.odt'  Dst='/var/lib/scenariserver4.2/javaserver/gen/MPB2MSLP70OLENNBTAMEPUFJ0/MPB2MS/LP70OL/ENNBTA/MEPUG8/32Q/~admin/paper/Tache 1 Enquete_papier.odt'  params='transform=odtUpdate&processings=keepEnumTitle:'
  - Echec à la transformation d'une ressource (OpenDocument).
    - Connection to server failed : uno:pipe,name=sc8630968574093916748;urp;StarOffice.ComponentContext


--- Admin details ---
<?xml version="1.0" encoding="UTF-8"?>
<trace>
	<start t="08/09/17 16:11:28"/>
	<l t="Info" d="08/09/17 16:11:29">
		<message type="Info" ts="1504879889168" appCtx="chain" user="admin" thread="chain-executor-8" desc="Starting OpenDocument editor in pipe mode."/>
	</l>
	<l t="Error" d="08/09/17 16:11:29">
		<message type="Error" ts="1504879889681" appCtx="chain" user="admin" thread="chain-executor-8" desc="[transform] Echec à la transformation [transform]  Src='/var/lib/scenariserver4.2/javaserver/gen/MPB2MSLP70OLENNBTAMEPUFJ0/MPB2MS/LP70OL/ENNBTA/MEPUG8/32Q/~admin/paper/Tache 1 Enquete_papier.odt' [transform]  Dst='/var/lib/scenariserver4.2/javaserver/gen/MPB2MSLP70OLENNBTAMEPUFJ0/MPB2MS/LP70OL/ENNBTA/MEPUG8/32Q/~admin/paper/Tache 1 Enquete_papier.odt' [transform]  params='transform=odtUpdate&amp;processings=keepEnumTitle:' [transform] eu.scenari.commons.util.lang.ScException"/>
	</l>
	<l t="Warning" d="08/09/17 16:11:29">
		<message type="Warning" ts="1504879889681" appCtx="chain" user="admin" thread="chain-executor-8" desc="Echec à la transformation  Src='/var/lib/scenariserver4.2/javaserver/gen/MPB2MSLP70OLENNBTAMEPUFJ0/MPB2MS/LP70OL/ENNBTA/MEPUG8/32Q/~admin/paper/Tache 1 Enquete_papier.odt'  Dst='/var/lib/scenariserver4.2/javaserver/gen/MPB2MSLP70OLENNBTAMEPUFJ0/MPB2MS/LP70OL/ENNBTA/MEPUG8/32Q/~admin/paper/Tache 1 Enquete_papier.odt'  params='transform=odtUpdate&amp;processings=keepEnumTitle:'">
			<message type="Error" ts="1504879889680" appCtx="chain" user="admin" thread="chain-executor-8" desc="Echec à la transformation d'une ressource (OpenDocument).">
				<message type="Error" ts="1504879889680" appCtx="chain" user="admin" thread="chain-executor-8" desc="Connection to server failed : uno:pipe,name=sc8630968574093916748;urp;StarOffice.ComponentContext">
					<message type="Exception" ts="1504879889680" appCtx="chain" user="admin" thread="chain-executor-8">
						<details>eu.scenari.commons.util.lang.ScException
	at eu.scenari.commons.log.LogMgr.newException(LogMgr.java:388)
	at eu.scenari.transform.od.impl.OoConnection.xConnect(OoConnection.java:447)
	at eu.scenari.transform.od.impl.OoConnection.checkConnection(OoConnection.java:344)
	at eu.scenari.transform.od.impl.OoConnectionPool.getConnection(OoConnectionPool.java:180)
	at eu.scenari.transform.od.impl.TfmUpdate.transform(TfmUpdate.java:120)
	at eu.scenari.transform.od.TfmOpenDocument.transform(TfmOpenDocument.java:137)
	at com.scenari.m.co.ant.TransformTask.execute(TransformTask.java:96)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:390)
	at org.apache.tools.ant.Target.performTasks(Target.java:411)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at com.scenari.m.ge.generator.ant.AntGenerator.xGenerate(AntGenerator.java:440)
	at com.scenari.m.ge.generator.base.GeneratorStatic.generate(GeneratorStatic.java:647)
	at eu.scenari.wsp.module.gen.ThreadGen.call(ThreadGen.java:170)
	at eu.scenari.wsp.module.gen.ThreadGen.run(ThreadGen.java:157)
	at eu.scenari.core.universe.Universe$1.run(Universe.java:393)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
</details>
					</message>
				</message>
			</message>
		</message>
	</l>
	<end t="08/09/17 16:11:29"/>
</trace>

--- Js stack ---
cbLoadLog@chrome://scenariwsp/content/widgets/genBox/genBox.xbl.xml:805:11
CallbackWrapper.prototype.handleEvent@chrome://scenariwsp/content/commons/servers/HttpDataProvider.jsm:410:17


--- App context ---
timestamp: 8/9/2017 16:18:06
userAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 ch.4.2/4.2.104
coreVersion: 4.2.104
brandShortName: SCENARIchain
appVersion: 4.2.104
appBuildId: 201706281113
appDevelopmentStage: final

Ma version de libre office est 5.1.6.2, dois-je revenir vers une version 5.0 ?
Mon problème a-t-il une autre cause ?
Merci de votre aide

Bonjour,
Ce problème n’est pas lié à la version de LibreOffice.
Le lien entre votre environnement serveur (scenariserver4.2) et LibreOffice semble incorrect.
Avez-vous déclaré la variable d’environnement UNO_PATH sur le serveur (cf https://docs.kelis.fr/sc42/scsrv/adminTech/lin/co/configOs_lin.html#VVQVn2ssQTd0VYhNSn4oBd) ?
Cordialement,
Antoine
Kelis