|
From: Jayesh S <Jay...@mi...> - 2008-07-01 10:50:53
|
Hi Jacob, Could you please explain more about GCJ? Thanks, Jayesh S| Associate | MindTree Ltd. | West Campus, Global Village, RVCE Post, Mysore Road, Bangalore-560 059, INDIA |Voice +91-80-26269110 |Fax +91 80 2626 4100 | Mob : 9886054341 |email: jay...@mi... |www.mindtree.com| ________________________________ From: jma...@li... [mailto:jma...@li...] On Behalf Of Jacob Nordfalk Sent: Tuesday, July 01, 2008 4:11 PM To: jma...@li... Subject: Re: [Jmagick-users] Exception in thread "main"java.lang.NullPointerException(sample application fails) 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 DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where. |