ISO: help resolving an "UnsatisfiedLinkError" message

ISO: help resolving an "UnsatisfiedLinkError" message

Post by lvir.. » Fri, 29 Mar 2002 00:36:38



On my Solaris 8 Sunblade, I am seeing the following behavior:
$ /usr/dt/bin/sdtpdasync                  
/usr/dt/appconfig/sdtpdasync/lib
/usr/dt/appconfig/sdtpdasync/classes
/usr/dt/appconfig/sdtpdasync/conduits
Exception in thread "main" java.lang.UnsatisfiedLinkError: exception occurred in JNI_OnLoad
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader$NativeLibrary.load(Compiled Code)
        at java.lang.ClassLoader.loadLibrary0(Compiled Code)
        at java.lang.ClassLoader.loadLibrary(Compiled Code)
        at java.lang.Runtime.loadLibrary0(Runtime.java:473)
        at java.lang.System.loadLibrary(System.java:778)
        at <Unloaded Method>
        at com.sun.pdasync.SyncUI.PDASyncDlgUI.<init>(PDASyncDlgUI.java:120)
        at com.sun.pdasync.PDASync.PDASync.<init>(PDASync.java:62)
        at com.sun.pdasync.PDASync.PDASync.main(Compiled Code)

with no output, etc.

I find no mention of this in Solaris Answerbook, and searching the internet
shows me that one or two others have asking about this but never any
useful replies.

Can someone provide me some ideas of where to look in terms of resolving this
problem?

(sdtpdasync is supposed to be Sun's PDA syncing program).
--
"I know of vanishingly few people ... who choose to use ksh." "I'm a minority!"

Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.

 
 
 

ISO: help resolving an "UnsatisfiedLinkError" message

Post by Steve Bellen » Fri, 29 Mar 2002 01:58:32



>On my Solaris 8 Sunblade, I am seeing the following behavior:
>$ /usr/dt/bin/sdtpdasync                  
>/usr/dt/appconfig/sdtpdasync/lib
>/usr/dt/appconfig/sdtpdasync/classes
>/usr/dt/appconfig/sdtpdasync/conduits
>Exception in thread "main" java.lang.UnsatisfiedLinkError: exception occurred in JNI_OnLoad
>        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>        at java.lang.ClassLoader$NativeLibrary.load(Compiled Code)
>        at java.lang.ClassLoader.loadLibrary0(Compiled Code)
>        at java.lang.ClassLoader.loadLibrary(Compiled Code)
>        at java.lang.Runtime.loadLibrary0(Runtime.java:473)
>        at java.lang.System.loadLibrary(System.java:778)
>        at <Unloaded Method>
>        at com.sun.pdasync.SyncUI.PDASyncDlgUI.<init>(PDASyncDlgUI.java:120)
>        at com.sun.pdasync.PDASync.PDASync.<init>(PDASync.java:62)
>        at com.sun.pdasync.PDASync.PDASync.main(Compiled Code)

>with no output, etc.

>I find no mention of this in Solaris Answerbook, and searching the internet
>shows me that one or two others have asking about this but never any
>useful replies.

>Can someone provide me some ideas of where to look in terms of resolving this
>problem?

>(sdtpdasync is supposed to be Sun's PDA syncing program).

I haven't used this program myself but my guess is that it is looking
for a unix library file and not finding it. (This would be a library
of C/C++ code that the Java code wants to call.)

Do a truss -f -o /tmp/truss.out /usr/dt/bin/sdtpdasync
and look at /tmp/truss.out and see what it is trying to open and
where it is looking for it.

--
http://www.math.fsu.edu/~bellenot
bellenot <At/> math.fsu.edu
+1.850.644.7189 (4053fax)

 
 
 

ISO: help resolving an "UnsatisfiedLinkError" message

Post by Gordon Beato » Fri, 29 Mar 2002 02:15:31




>>On my Solaris 8 Sunblade, I am seeing the following behavior:
>>$ /usr/dt/bin/sdtpdasync                  
>>/usr/dt/appconfig/sdtpdasync/lib
>>/usr/dt/appconfig/sdtpdasync/classes
>>/usr/dt/appconfig/sdtpdasync/conduits
>>Exception in thread "main" java.lang.UnsatisfiedLinkError: exception occurred in JNI_OnLoad
> I haven't used this program myself but my guess is that it is looking
> for a unix library file and not finding it. (This would be a library
> of C/C++ code that the Java code wants to call.)

Actually it looks to me like an exception in JNI_OnLoad() is causing
the load to fail. JNI_OnLoad() is implemented in the library itself,
and is called by the JVM when the library has loaded so that it can
initialize itself etc.

I would suggest that the vendor can tell you what the library is
trying to do here; however the problem could be something trivial like
trying to run a version of Java for which your OS is not properly
patched.

/gordon

--
[ do not send me private copies of your followups ]

 
 
 

ISO: help resolving an "UnsatisfiedLinkError" message

Post by lvir.. » Sat, 30 Mar 2002 04:06:59



:I would suggest that the vendor can tell you what the library is
:trying to do here; however the problem could be something trivial like
:trying to run a version of Java for which your OS is not properly
:patched.

Vendor is Sun - I've been trying for a couple of years to find someone
at Sun to take a look - to no avail to date.

As for 'run a version of Java for which your OS is not properly patched'
- possible.  I've tried it with the java that comes with Solaris, as well
as each subsequent release, since Solaris 8 first was released...

--
"I know of vanishingly few people ... who choose to use ksh." "I'm a minority!"

Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.