Bonjour,
Alors que tout va bien avec la génération de fichiers PDF, je rencontre un problème de génération de document OpenOffice avec OptimOfficePlus 3. En effet, le document n’est pas produit et j’ai comme retour: « Généré en erreur ».
Je vous remercie d’avance de vos sages conseils!
Voici les détails techniques du rapport:
Generation failed.
java.lang.NullPointerException: Cannot invoke "com.scenari.src.ISrcContent.newInputStream(boolean)" because the return value of "eu.scenari.transform.od.OdFile.getSourceEntry(String)" is null
Cannot invoke "com.scenari.src.ISrcContent.newInputStream(boolean)" because the return value of "eu.scenari.transform.od.OdFile.getSourceEntry(String)" is null
Et voici le rapport complet:
Une erreur est survenue lors de la génération.
--- Admin details ---
<?xml version="1.0" encoding="UTF-8"?><trace>
<start t="08/08/24 10:16:36"/>
<l t="FatalError" d="08/08/24 10:16:36">
<message type="FatalError" ts="1723112196741" appCtx="chain" user="lisboarocha" thread="ForkJoinPool-1-worker-12" desc="Generation failed.">
<message type="Error" ts="1723112196739" appCtx="chain" user="lisboarocha" thread="ForkJoinPool-1-worker-12" desc="java.lang.NullPointerException: Cannot invoke "com.scenari.src.ISrcContent.newInputStream(boolean)" because the return value of "eu.scenari.transform.od.OdFile.getSourceEntry(String)" is null">
<message type="Exception" ts="1723112196739" appCtx="chain" user="lisboarocha" thread="ForkJoinPool-1-worker-12" desc="Cannot invoke "com.scenari.src.ISrcContent.newInputStream(boolean)" because the return value of "eu.scenari.transform.od.OdFile.getSourceEntry(String)" is null">
<details>java.lang.NullPointerException: Cannot invoke "com.scenari.src.ISrcContent.newInputStream(boolean)" because the return value of "eu.scenari.transform.od.OdFile.getSourceEntry(String)" is null
at eu.scenari.modeling.odstyle.OdStyle.initOdStyle(OdStyle.java:686)
at eu.scenari.modeling.odstyle.OdBlenderPage$OdBlenderContentHandler.initOdStyle(OdBlenderPage.java:861)
at eu.scenari.modeling.odstyle.OdBlenderPage.producePage(OdBlenderPage.java:1054)
at com.scenari.m.ge.generator.base.TemplatesMgr.producePage(TemplatesMgr.java:298)
at com.scenari.m.ge.generator.base.GeneratorStatic.wTreatStackPages(GeneratorStatic.java:186)
at com.scenari.m.ge.ant.BuildPageTask.execute(BuildPageTask.java:80)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
at com.scenari.m.ge.generator.ant.AntGenerator.xGenerate(AntGenerator.java:461)
at eu.scenari.gen.GenStatic.generate(GenStatic.java:262)
at eu.scenari.wsp.module.gen.ThreadGen.call(ThreadGen.java:179)
at eu.scenari.wsp.module.gen.ThreadGen.run(ThreadGen.java:166)
at eu.scenari.core.universe.Universe$2.run(Universe.java:472)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
</details>
</message>
</message>
</message>
</l>
<end t="08/08/24 10:16:36"/>
</trace>
--- Context ---
reg: {"envKeys":["itemType","securityCtx"],"parent":{"envKeys":["wsp","securityCtx","_srhStore_item","uiRoot","place","infoBroker","wedSearchCoord","histoEditMgr"],"parent":{"envKeys":["resolver","universe","securityCtx"],"parent":{"envKeys":["resolver","noAuthentication","remoteAuthentications","embeddedAuthentication","universe","securityCtx"]}}}}
uiContext: undefined
wsp: undefined
shortDesc: {"srcUri":"/laThese/_laThese.paper","srcSt":1,"srcDt":1721832341525,"srcRi":511,"srcRoles":["main:admin"],"srcId":"id:6kj80SBqhdys3vhus9IiCa","srcStamp":"MFAM7DH2odQ9kHNmMu7NcOYxR9cG6k3rUM5VEqhDbFY=","srcUser":"lisboarocha","itTi":"Actualité, enquête et démocratie","itSt":3,"itSgn":"@of_paper#Xml#Map","itModel":"of_paper"}
pubNode: {"ch":[{}]}
genInfo: {"codeGenStack":"paperLight","title":"OpenDocument de relecture","status":"failed","lastGen":1723112196737,"uriPub":"/6kh80SBqhdys3vhus9IiCa/FU67NL/O5R38T/O6NMDQ/51BVFD/2PA/paperLight/","uriTraces":"/6kh80SBqhdys3vhus9IiCa/FU67NL/O5R38T/O6NMDQ/51BVFD/2PA/paperLight/meta/~Traces.xml","skin":"default","user":"lisboarocha","skins":[{"code":"default","title":"Boxed"}]}
genProps: undefined
customDestPath: undefined
cidInfo: null
--- App context ---
url: https://xxxx.xxxx/scsuitestr63/~~static/fr-FR/home.xhtml#(wsp'6kh80SBqhdys3vhus9IiCa'srcRef'id%3A6kj80SBqhdys3vhus9IiCa'),
timestamp: 08/08/2024, 12:16:47
userAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) SCENARIclient6/6.3.10-final.202407081437 Chrome/122.0.6261.156 Electron/29.4.3 Safari/537.36
@led, voici le problème que j’ai mentionné.