Hello,Une de mes actions exécute des commandes externes (transformation d'image, détection de code-barres). Tout fonctionne à merveille avec Alfresco 32r2 et 3.3g sur Windows et Linux.J'aimerais mettre à jour pour 3.4d mais j'ai des problèmes sous Linux… (tout est ok sous Windows).Dans mon action…
Process proc = Runtime.getRuntime().exec(commands);
…
Variable commands
[/bin/sh, -c, convert -density 125 -threshold 46% "/opt/Alfresco/tomcat/temp/Alfresco/ReadBarcodesSplit1499126559/1_splitted.pdf" +adjoin "/opt/Alfresco/tomcat/temp/Alfresco/ReadBarcodesSplit1499126559/1_splitted.pdf_B.gif"]
Error execution stdInput
Error: /invalidfont in /findfontOperand stack: –dict:6/6(L)– F10 8 –dict:9/9(L)– –dict:9/9(L)– TimesNewRomanPSMT –dict:9/9(L)– Times-Roman Times-RomanExecution stack: %interp_exit .runexec2 –nostringval– –nostringval– –nostringval– 2 %stopped_push –nostringval– –nostringval– –nostringval– false 1 %stopped_push 1797 1 3 %oparray_pop 1796 1 3 %oparray_pop 1792 1 3 %oparray_pop –nostringval– –nostringval– 2 1 1 –nostringval– %for_pos_int_continue –nostringval– –nostringval– –nostringval– –nostringval– %array_continue –nostringval– false 1 %stopped_push –nostringval– %loop_continue –nostringval– –nostringval– –nostringval– –nostringval– –nostringval– –nostringval– –nostringval– 1767 9 9 %oparray_popDictionary stack: –dict:1086/1123(ro)(G)– –dict:2/20(G)– –dict:74/200(L)– –dict:74/200(L)– –dict:105/127(ro)(G)– –dict:259/300(ro)(G)– –dict:21/25(L)– –dict:4/6(L)– –dict:24/31(L)–Current allocation mode is localLast OS error: 2
Error execution stdError
GPL Ghostscript 8.56: Unrecoverable error, exit code 1.convert.bin: Postscript delegate failed `/opt/Alfresco/tomcat/temp/Alfresco/ReadBarcodesSplit1453127511/1_splitted.pdf': No such file or directory @ pdf.c/ReadPDFImage/612..convert.bin: missing an image filename `/opt/Alfresco/tomcat/temp/Alfresco/ReadBarcodesSplit1453127511/1_splitted.pdf_A.gif' @ convert.c/ConvertImageCommand/2775.
390
0
0
Une autre commande…[/bin/sh, -c, /usr/local/bin/zbarimg -q -Sdis -Sqrcode.en "/opt/Alfresco/tomcat/temp/Alfresco/ReadBarcodesSplit45676289/0_splitted.pdf_A.gif"]
Error execution stdErrorzbarimg: magick/cache.c:647: AcquireOnePixelFromCache: Assertion `image != (Image *) ((void *)0)' failed.
Les commandes effectuées sur le serveur fonctionne.Y-a-t'il eu des nouveautés liées au Runtime.getRuntime() ? Dois-je configurer autrement Tomcat ?Je remarque aussi avec la 34d que je dois préciser l'emplacement du programme (zbarimg) avec /usr/local/bin/ (j'ai un message qui me dit qu'il ne trouve pas le programme). Cela n'était pas le cas avant… Il semble que des variables ne sont pas accessibles depuis le tomcat…Merci bien(post anglais : http://forums.alfresco.com/en/viewtopic.php?f=10&t=37976)