GifImageDecoder, UnsatisfiedLinkError Exception

J

joes

Hello there

I am getting the following exception during rendering pdf with fop and
java. The stack trace is attached at the end of this message. It seems
that the gif images could not be decoded because of a missing native
library. The application is running on a sun solaris environment with
JRE 1.3.1_04-b02.

Does anyone know what could be missining ? I guess the GIF decoding is
not part of the JVM and needs some additional *.so libraries ? If yes
which ones ?

Where is the java doc and source code for the class "
sun.awt.image.GifImageDecoder" available ?

Thank you for any hints.

regards
Mark

java.lang.UnsatisfiedLinkError: exception occurred in JNI_OnLoad
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1414)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1330)
at java.lang.Runtime.loadLibrary0(Runtime.java:744)
at java.lang.System.loadLibrary(System.java:815)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:48)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.image.NativeLibLoader.loadLibraries(NativeLibLoader.java:36)
at sun.awt.image.GifImageDecoder.<clinit>(GifImageDecoder.java:362)
at sun.awt.image.InputStreamImageSource.getDecoder(InputStreamImageSource.java:217)
at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:137)
at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)
at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:167)
at sun.awt.image.ImageFetcher.run(ImageFetcher.java:135)
 
M

Marco Schmidt

joes:

[...]
Does anyone know what could be missining ? I guess the GIF decoding is
not part of the JVM and needs some additional *.so libraries ? If yes
which ones ?
Where is the java doc and source code for the class "
sun.awt.image.GifImageDecoder" available ?

Docs - I don't know. The sun.* packages are typically not documented.
Source - j2sdk-1_4_2-src-scsl.zip (directory
\j2se\src\share\classes\sun\awt\image) from
<http://wwws.sun.com/software/communitysource/j2se/java2/index.html>.
The code is a static initializer and loads native libraries. This
seems to verify your guess that some library is missing. Or maybe it
is simply not found.

Regards,
Marco
 
J

joes

Thank you for the hints, you have right about the static load of the
libraries.

I did a recompilation of some classes and saw that a library "awt" is
requested. Here the snippet line:

AccessController.doPrivileged(new LoadLibraryAction("awt"));

Has anyone experience on Sun Solaris which native library are
therefore needed ?

thank you regards
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,701
Latest member
XavierQ83

Latest Threads

Top