|
From: Jacob N. <jac...@gm...> - 2008-07-01 10:41:36
|
2008/7/1 Jayesh S <Jay...@mi...>:
> Hi All,
>
>
>
> We have installed ImageMAgick 6.2.5 and JMagick 6.2.4-1 in our server box.
> The server OS is RHEL4.6(RHEL 4 with Nahant update 6).
>
> After the installation when we tried to run the standalone sample test
> program(in src/test/Test.java) using* make test* it's throwingthe
> following error.
> LD_LIBRARY_PATH=/usr/local/lib:../../lib:
> DYLD_LIBRARY_PATH=/usr/local/lib:../../lib: /usr/bin/java -classpath
> /usr/src/JMagick/JMagick-6.2.6-0/classes test.Test
> Scaled to 60x30
> Depth 8
> Exception in thread "main" java.lang.NullPointerException
> at _Jv_NewStringUTF (/usr/lib/libgcj.so.5.0.0)
> at throwMagickApiException (/usr/local/lib/libJMagick.so)
> at Java_magick_MagickImage_readImage (/usr/local/lib/libJMagick.so)
> at _Jv_JNIMethod.call(ffi_cif, void, ffi_raw, void)
> (/usr/lib/libgcj.so.5.0.0)
> at magick.MagickImage.MagickImage(magick.ImageInfo) (Unknown Source)
> at test.Test.main(java.lang.String[]) (Unknown Source)
> make: *** [test] Error 1
>
> ***********
>
This must come from the line
MagickImage image = new MagickImage(info);
calling the C code
image = ReadImage(imageInfo, &exception);
if (image == NULL) {
throwMagickApiException(env, "Unable to read image", &exception);
... which means you cant read an image at all.
I see you use GCJ, which I have never tried.
Have you tried with Sun JDK, to see if it makes a difference?
--
Jacob Nordfalk
http://javabog.dk
Skype: jacobnordfalk
|