On Sat, Nov 16, 2002 at 01:10:35PM -0700, Tom Tromey wrote: > Kenneth> The error I got from gij (below my signature) it a little out > Kenneth> of my league. > > You're getting an UnsatisfiedLinkError. That probably means that some > native code wasn't loaded by the application. Without knowing more > about the code I couldn't say what caused it. It could be a gij bug, > but it could also be some system configuration problem. > > Can you tell me how to reproduce the problem? In particular what do I > download?
Tom - I've built a new version (2.0-4) of my libnbio2-java package that can be used for testing. If you use this apt source: # Cedar Solutions updates deb ftp://cedar-solutions.com/debian unstable main deb-src ftp://cedar-solutions.com/debian unstable main you can get the latest version using apt-get. Otherwise, you can just FTP here to grab everything: ftp://cedar-solutions.com/debian/java/libnbio2-java/ The typescript log below my signature shows how to reproduce the problem. Briefly: install the .deb, then go into the source tree to: nbio-2.0/seda/src/seda/nbio/test/test and build all of the files in that directory using 'make'. Once that's done, you should be able to start the individual test clients. The typescript log just shows NBIOSelectServer, but when I test, I usually make sure that NBIOSelectServer and NBIOClient communicate with each other. Please feel free to write with any questions you have. I hope I've provided enough information for you to reproduce this. KEN -- Kenneth J. Pronovici <[EMAIL PROTECTED]> Personal Homepage: http://www.skyjammer.com/~pronovic/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759 Script started on Sat Nov 16 20:54:32 2002 User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> uname -a Linux agamemnon 2.4.18 #1 Sun Jul 28 16:52:21 CDT 2002 i686 unknown unknown GNU/Linux User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> which gcc-3.2 /usr/bin/gcc-3.2 User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> gcc-3.2 -v Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/specs Configured with: /home/packages/gcc/3.2/gcc-3.2-3.2.1ds5/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux Thread model: posix gcc version 3.2.1 20021111 (Debian prerelease) User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> ls -l /etc/alternatives/javac lrwxrwxrwx 1 root root 24 2002-11-16 01:49 /etc/alternatives/javac -> /usr/bin/gcj-wrapper-3.2* User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> gcj-3.2 -v Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/specs Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/../../../libgcj.spec rename spec lib to liborig Configured with: /home/packages/gcc/3.2/gcc-3.2-3.2.1ds5/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux Thread model: posix gcc version 3.2.1 20021111 (Debian prerelease) User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> ls -l /etc/alternatives/java lrwxrwxrwx 1 root root 23 2002-11-16 20:46 /etc/alternatives/java -> /usr/lib/kaffe/bin/java* User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> kaffe -version Kaffe Virtual Machine Copyright (c) 1996-2002 Kaffe.org project contributors (please see the source code for a full list of contributors). All rights reservced. Portions Copyright (c) 1996-2002 Transvirtual Technologies, Inc. The Kaffe virtual machine is free software, licensed under the terms of the GNU General Public License. Kaffe.org is a an independent, free software community project, not directly affiliated with Transvirtual Technologies, Inc. Kaffe is a Trademark of Transvirtual Technologies, Inc. Kaffe comes with ABSOLUTELY NO WARRANTY. Engine: Just-in-time Version: 1.0.7 Java Version: 1.1 User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> ls -l /usr/bin/gij lrwxrwxrwx 1 root root 7 2002-11-16 20:53 /usr/bin/gij -> gij-3.0 User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> gij --version gij (GNU libgcj) version 0.0.7 Copyright (C) 2001 Free Software Foundation. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> ldd $(which gij) libgcj.so.2 => /usr/lib/libgcj.so.2 (0x4001d000) libdl.so.2 => /lib/libdl.so.2 (0x403d0000) libgcjgc.so.1 => /usr/lib/libgcjgc.so.1 (0x403d3000) libpthread.so.0 => /lib/libpthread.so.0 (0x403f1000) libz.so.1 => /usr/lib/libz.so.1 (0x40441000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4044f000) libm.so.6 => /lib/libm.so.6 (0x40457000) libc.so.6 => /lib/libc.so.6 (0x40479000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> make ... seda/nbio/test/test javac BlockingClient.java javac BlockingServer.java javac NBIOClient.java javac NBIOSelectServer.java javac NBIOServer.java User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> echo $CLASSPATH /usr/share/java/nbio2.jar:. User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> echo $LD_LIBRARY_PATH /usr/lib/java/jni-1.2 User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> java NBIOSelectServer NBIO server starting... SelectSet: Using poll(2) Waiting for connection... User: pronovic Group: users agamemnon:/home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test> gij NBIOSelectServer NBIO server starting... Exception in thread "main" java.lang.UnsatisfiedLinkError: NBIO: Cannot resolve field buf ([B) in nbio_init_fids() -- this is a bug, please contact <[EMAIL PROTECTED] at 0x4017224b: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libgcj.so.2) at 0x401687eb: java.lang.Error.Error(java.lang.String) (/usr/lib/libgcj.so.2) at 0x4016a92f: java.lang.LinkageError.LinkageError(java.lang.String) (/usr/lib/libgcj.so.2) at 0x401725a7: java.lang.UnsatisfiedLinkError.UnsatisfiedLinkError(java.lang.String) (/usr/lib/libgcj.so.2) at 0x40239263: ffi_call_SYSV (/usr/lib/libgcj.so.2) at 0x40238f7e: ffi_call (/usr/lib/libgcj.so.2) at 0x401605b1: _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], jvalue, jvalue) (/usr/lib/libgcj.so.2) at 0x401607c4: _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/usr/lib/libgcj.so.2) at 0x4015efd5: java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (/usr/lib/libgcj.so.2) at 0x40140b02: ?? (??:0) at 0x4001351c: ?? (??:0) at 0x40013ae3: Java_seda_nbio_NonblockingSocketImpl_nbSocketCreate (/usr/lib/java/jni-1.2/libNBIO2.so) at 0x40239263: ffi_call_SYSV (/usr/lib/libgcj.so.2) at 0x4023922b: ffi_raw_call (/usr/lib/libgcj.so.2) at 0x40141c22: _Jv_JNIMethod.call(ffi_cif, void, ffi_raw, void) (/usr/lib/libgcj.so.2) at 0x40239118: ?? (??:0) at 0x40239263: ffi_call_SYSV (/usr/lib/libgcj.so.2) at 0x4023922b: ffi_raw_call (/usr/lib/libgcj.so.2) at 0x4014c8db: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.2) at 0x40150703: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.2) at 0x4014c671: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/libgcj.so.2) at 0x40239118: ?? (??:0) at 0x40239263: ffi_call_SYSV (/usr/lib/libgcj.so.2) at 0x4023922b: ffi_raw_call (/usr/lib/libgcj.so.2) at 0x4014c8db: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.2) at 0x40150703: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.2) at 0x4014c671: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/libgcj.so.2) at 0x40239118: ?? (??:0) at 0x40239263: ffi_call_SYSV (/usr/lib/libgcj.so.2) at 0x4023922b: ffi_raw_call (/usr/lib/libgcj.so.2) at 0x4014c8db: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.2) at 0x40150703: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.2) at 0x4014c671: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/libgcj.so.2) at 0x40239118: ?? (??:0) at 0x40239263: ffi_call_SYSV (/usr/lib/libgcj.so.2) at 0x4023922b: ffi_raw_call (/usr/lib/libgcj.so.2) at 0x4014c8db: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.2) at 0x40150703: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.2) at 0x4014c671: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/libgcj.so.2) at 0x40239118: ?? (??:0) at 0x4015365f: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.2) at 0x4015db63: java.lang.Thread.run_(java.lang.Object) (/usr/lib/libgcj.so.2) at 0x402386a8: ?? (??:0) at 0x403def76: GC_start_routine (/usr/lib/libgcjgc.so.1) at 0x403f7048: ?? (??:0) at 0x4053d9b4: __clone (/lib/libc.so.6) Script done on Sat Nov 16 20:55:48 2002 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]