Page 1 of 1
invoke identify in java runtime
Posted: 2008-03-17T10:19:36-07:00
by janet
Hi, I installed imageMagick 6.3.9 and GhostScript 8.62 separately on my mac. I was able to use the command "/ImageMagick-6.3.9/bin/identify -verbose /test.pdf" in terminal to get size and color information. But when I run the same command in the java runtime, I got the following errors:
info for indentify:Error: /undefinedfilename in (/var/tmp/magick-pBrsuBg3)
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push
Dictionary stack:
--dict:1153/1684(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--
Current allocation mode is local
Last OS error: 13
identify error:GPL Ghostscript 8.62: Unrecoverable error, exit code 1identify: Postscript delegate failed `/test.pdf': No such file or directory.
Identify returned with code: 1
I wonder if there is anything I missed and any configuration I need to do.
Re: invoke identify in java runtime
Posted: 2008-03-18T11:56:26-07:00
by janet
Hi, I can get it work in terminal but not in java application. Can someone shed some light? I turned on debug for "Identify" and got some detailed errors as follow:
2008-03-18 14:28:41,784 INFO info for indentify:14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: utility.c/ExpandFilenames/805/Configure
Command line: /sw/bin/identify{-debug}{all}{-verbose}{/test.pdf}
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/lib/ImageMagick-6.2.8/config/coder.xml"
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/share/ImageMagick-6.2.8/config/coder.xml"
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/share/doc/ImageMagick-6.2.8/coder.xml"
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/share/ImageMagick-6.2.8/coder.xml"
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "coder.xml"
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: coder.c/LoadCoderList/612/Configure
Loading coder file "/sw/share/ImageMagick-6.2.8/config/coder.xml" ...
14:28:41 0:01 0.000u 6.2.8 Module identify[95624]: module.c/OpenModule/1065/Module
Searching for module "PDF" using filename "pdf.la"
14:28:41 0:01 0.000u 6.2.8 Module identify[95624]: module.c/GetMagickModulePath/582/Module
Searching for coder module file "pdf.la" ...
14:28:41 0:01 0.000u 6.2.8 Module identify[95624]: module.c/OpenModule/1085/Module
Opening module at path "/sw/lib/ImageMagick-6.2.8/modules-Q16/coders/pdf.la"
14:28:41 0:01 0.000u 6.2.8 Module identify[95624]: module.c/OpenModule/1120/Module
Method "RegisterPDFImage" in module "PDF" at address 0x73de00
14:28:41 0:01 0.000u 6.2.8 Module identify[95624]: module.c/OpenModule/1135/Module
Method "UnregisterPDFImage" in module "PDF" at address 0x73dee0
14:28:41 0:01 0.000u 6.2.8 Blob identify[95624]: blob.c/OpenBlob/2021/Blob
read 4096 magic header bytes
14:28:41 0:01 0.000u 6.2.8 Cache identify[95624]: cache.c/DestroyCacheInfo/1837/Cache
destroy
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/lib/ImageMagick-6.2.8/config/magic.xml"
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/share/ImageMagick-6.2.8/config/magic.xml"
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/share/doc/ImageMagick-6.2.8/magic.xml"
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/share/ImageMagick-6.2.8/magic.xml"
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "magic.xml"
14:28:41 0:01 0.000u 6.2.8 Configure identify[95624]: magic.c/LoadMagicList/671/Configure
Loading magic file "/sw/share/ImageMagick-6.2.8/config/magic.xml" ...
14:28:41 0:01 0.000u 6.2.8 Blob identify[95624]: blob.c/OpenBlob/2021/Blob
read 4096 magic header bytes
14:28:41 0:01 0.000u 6.2.8 Cache identify[95624]: cache.c/DestroyCacheInfo/1837/Cache
destroy
14:28:41 0:01 0.000u 6.2.8 Blob identify[95624]: blob.c/OpenBlob/2021/Blob
read 4096 magic header bytes
14:28:41 0:01 0.000u 6.2.8 Resource identify[95624]: resource.c/AcquireUniqueFileResource/395/Resource
/var/tmp/magick-xb04rhtV
14:28:41 0:01 0.000u 6.2.8 Resource identify[95624]: resource.c/RelinquishUniqueFileResource/835/Resource
/var/tmp/magick-xb04rhtV
14:28:41 0:01 0.030u 6.2.8 Resource identify[95624]: resource.c/AcquireUniqueFileResource/395/Resource
/var/tmp/magick-UEknkaDN
14:28:41 0:01 0.030u 6.2.8 Cache identify[95624]: cache.c/DestroyCacheInfo/1837/Cache
destroy
14:28:41 0:01 0.030u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/lib/ImageMagick-6.2.8/config/delegates.xml"
14:28:41 0:01 0.030u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/share/ImageMagick-6.2.8/config/delegates.xml"
14:28:41 0:01 0.030u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/share/doc/ImageMagick-6.2.8/delegates.xml"
14:28:41 0:01 0.030u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "/sw/share/ImageMagick-6.2.8/delegates.xml"
14:28:41 0:01 0.030u 6.2.8 Configure identify[95624]: configure.c/GetConfigureOptions/486/Configure
Searching for configure file: "delegates.xml"
14:28:41 0:01 0.030u 6.2.8 Configure identify[95624]: delegate.c/LoadDelegateList/1159/Configure
Loading delegate file "/sw/lib/ImageMagick-6.2.8/config/delegates.xml" ...
14:28:41 0:01 0.040u 6.2.8 Resource identify[95624]: resource.c/AcquireUniqueFileResource/395/Resource
/var/tmp/magick-zIlrIxRV
Error: /undefinedfilename in (/var/tmp/magick-UEknkaDN)
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push
Dictionary stack:
--dict:1128/1686(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--
Current allocation mode is local
Last OS error: 13
14:28:41 0:01 0.040u 6.2.8 Blob identify[95624]: blob.c/OpenBlob/2021/Blob
read 0 magic header bytes
14:28:41 0:01 0.040u 6.2.8 Cache identify[95624]: cache.c/DestroyCacheInfo/1837/Cache
destroy
14:28:41 0:01 0.040u 6.2.8 Module identify[95624]: module.c/OpenModule/1065/Module
Searching for module "AVI" using filename "avi.la"
14:28:41 0:01 0.040u 6.2.8 Module identify[95624]: module.c/GetMagickModulePath/582/Module
Searching for coder module file "avi.la" ...
14:28:41 0:01 0.040u 6.2.8 Module identify[95624]: module.c/OpenModule/1085/Module
Opening module at path "/sw/lib/ImageMagick-6.2.8/modules-Q16/coders/avi.la"
14:28:41 0:01 0.040u 6.2.8 Module identify[95624]: module.c/OpenModule/1120/Module
Method "RegisterAVIImage" in module "AVI" at address 0x753870
14:28:41 0:01 0.040u 6.2.8 Module identify[95624]: module.c/OpenModule/1135/Module
Method "UnregisterAVIImage" in module "AVI" at address 0x7538e0
14:28:41 0:01 0.040u 6.2.8 Blob identify[95624]: blob.c/OpenBlob/2021/Blob
read 0 magic header bytes
14:28:41 0:01 0.040u 6.2.8 Cache identify[95624]: cache.c/DestroyCacheInfo/1837/Cache
destroy
14:28:41 0:01 0.040u 6.2.8 Resource identify[95624]: resource.c/RelinquishUniqueFileResource/835/Resource
/var/tmp/magick-UEknkaDN
14:28:41 0:01 0.040u 6.2.8 Resource identify[95624]: resource.c/RelinquishUniqueFileResource/835/Resource
/var/tmp/magick-zIlrIxRV
14:28:41 0:01 0.040u 6.2.8 Resource identify[95624]: resource.c/RelinquishUniqueFileResource/835/Resource
/var/tmp/magick-xb04rhtV
14:28:41 0:01 0.040u 6.2.8 Locale identify[95624]: locale.c/GetLocaleOptions/501/Locale
Searching for locale file: "/sw/lib/ImageMagick-6.2.8/config/locale.xml"
14:28:41 0:01 0.040u 6.2.8 Locale identify[95624]: locale.c/GetLocaleOptions/501/Locale
Searching for locale file: "/sw/share/ImageMagick-6.2.8/config/locale.xml"
14:28:41 0:01 0.040u 6.2.8 Locale identify[95624]: locale.c/GetLocaleOptions/501/Locale
Searching for locale file: "/sw/share/doc/ImageMagick-6.2.8/locale.xml"
14:28:41 0:01 0.040u 6.2.8 Locale identify[95624]: locale.c/GetLocaleOptions/501/Locale
Searching for locale file: "/sw/share/ImageMagick-6.2.8/locale.xml"
14:28:41 0:01 0.040u 6.2.8 Locale identify[95624]: locale.c/GetLocaleOptions/501/Locale
Searching for locale file: "locale.xml"
14:28:41 0:01 0.060u 6.2.8 Exception identify[95624]: pdf.c/ReadPDFImage/516/Exception
Postscript delegate failed `/test.pdf'