Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #9980
| From | Edek <edek.pienkowski@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: JNI lib crash, with a change in a .c file which is not included in the Makefile |
| Date | 2011-09-09 16:05 +0200 |
| Organization | ATMAN - ATM S.A. |
| Message-ID | <j4d6lg$mff$1@node2.news.atman.pl> (permalink) |
| References | <b6c8d5cc-4703-4072-940b-f7436a655c3a@i2g2000yqm.googlegroups.com> |
On 09/09/2011 10:44 AM, aqura wrote: > We are facing an unusual problem, our JNI lib crashes at load time. we > use CentOS 5.4/G++ and VS2005 for development. > [...] > to pass on the result of our new enhancement. > [...] > call(which we have added, as part of our new enhancement). [...] I just love the word 'enhancement' used in this context. > > this is the error log we see > > AgentServer#0 started: OK 12750 [Connection#Cnx:#0.0.1026:0 - > Session#c0s1] ERROR com.xx.xxx.xxxx - Unable to load JNI BBBController > Library java.lang.UnsatisfiedLinkError: /opt/XXXXX/lib/libjnixxx.so: > Can't load IA 32-bit .so on a IA 32-bit platform at > java.lang.ClassLoader$NativeLibrary.load(Native Method) at > java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at > java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at > java.lang.Runtime.loadLibrary0(Runtime.java:822) at > java.lang.System.loadLibrary(System.java:993) - ldd the lib in question, with same path as Java does it - make sure there is no uncaught exception - make sure you compile against the right headers - google - try getting obtaining the same result with a simple test, things to try are countless (exception, unclean build (Makefiles), JNI API misuse, .so depended on another DSO together with placing them on different paths and with different -Djava.library.path settings, DSO with unresolved symbols like using newer another DSO's headers than the other DSO itself, using relative paths, or absolute paths, full lib name, or just a short name, checking -rpaths and sonames, and the list goes on) HTH Edek
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
JNI lib crash, with a change in a .c file which is not included in the Makefile aqura <chandra.vikas21@gmail.com> - 2011-09-09 01:44 -0700
Re: JNI lib crash, with a change in a .c file which is not included in the Makefile jacob navia <jacob@spamsink.net> - 2011-09-09 11:17 +0200
Re: JNI lib crash, with a change in a .c file which is not included in the Makefile aqura <chandra.vikas21@gmail.com> - 2011-09-09 03:41 -0700
Re: JNI lib crash, with a change in a .c file which is not included in the Makefile jacob navia <jacob@spamsink.net> - 2011-09-09 13:52 +0200
Re: JNI lib crash, with a change in a .c file which is not included in the Makefile aqura <chandra.vikas21@gmail.com> - 2011-09-09 05:50 -0700
Re: JNI lib crash, with a change in a .c file which is not included in the Makefile Edek <edek.pienkowski@gmail.com> - 2011-09-09 16:05 +0200
Re: JNI lib crash, with a change in a .c file which is not included in the Makefile jacob navia <jacob@spamsink.net> - 2011-09-09 16:22 +0200
Re: JNI lib crash, with a change in a .c file which is not included in the Makefile Victor Bazarov <v.bazarov@comcast.invalid> - 2011-09-09 10:39 -0400
csiph-web