Hello,A custom action launch some commands on the system (transformation picture, detection of barcode). All was working great on Alfresco 32r2, 3.3g on Windows and Linux but I try to use it on 3.4d Linux RHEL and I get problems… (all is ok with 34d on Windows).In my code…
Process proc = Runtime.getRuntime().exec(commands);
…
Content of the variables 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
With another command[/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.
The same command is working great on the server…Are there something change to use Runtime.getRuntime().exec with the 3.4d ? Perhaps new version of Tomcat…Thank you(on french forum : http://forums.alfresco.com/fr/viewtopic.php?f=11&t=4798&start=0#p21898)