Re: [Ikvm-developers] RXTX already loaded in another classloader
Brought to you by:
jfrijters
|
From: Jim R. <jr...@er...> - 2008-05-23 16:15:27
|
Jeroen, This seems to highlight another difference. On Debian/ARM I have 1.9.1, on FC8 1.2.6, which doesn't seem to support the app.config - or I'm doing it wrong. Here's the Debian output: Serial Port Name "/dev/ttyUSB0" [07:29:07.27525 main] loadLibrary: /home/MIX_CMIX/librxtxSerial.so, class loader: null [07:29:07.50823 main] Library loaded: /home/MIX_CMIX/librxtxSerial.so, handle = 0x48D730 [07:29:07.51389 main] Calling JNI_OnLoad on: /home/MIX_CMIX/librxtxSerial.so Experimental: JNI_OnLoad called. [07:29:08.11223 main] JNI_OnLoad returned: 0x00010002 [07:29:08.14348 main] loadLibrary: /home/MIX_CMIX/librxtxSerial.so, class loader: ikvm.runtime.AssemblyClassLoader@BE18F840 [07:29:08.15330 main] UnsatisfiedLinkError: Native library /home/MIX_CMIX/librxtxSerial.so already loaded in another classloader java.lang.UnsatisfiedLinkError: Native library /home/MIX_CMIX/librxtxSerial.so already loaded in another classloader thrown while loading gnu.io.RXTXCommDriver [07:29:08.44410 main] loadLibrary: /home/MIX_CMIX/librxtxSerial.so, class loader: ikvm.runtime.AssemblyClassLoader@BE18F840 [07:29:08.44761 main] UnsatisfiedLinkError: Native library /home/MIX_CMIX/librxtxSerial.so already loaded in another classloader Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for gnu.io.CommPortIdentifier ---> java.lang.UnsatisfiedLinkError: Native library /home/MIX_CMIX/librxtxSerial.so already loaded in another classloader--- End of inner exception stack trace --- at com.ergotech.vib.ports.SerialWrapper.setPort (Int32 ) [0x00000] This doesn't mean much to me. Any thoughts? Jim Jeroen Frijters wrote: > This could be caused by a stack walking difference in Mono on ARM. > > You can get more detailed information if you enable the JNI diagnostics switch in your app.config: > > <?xml version="1.0"?> > <configuration> > <system.diagnostics> > <switches> > <add name="jni" value="4" /> > </switches> > </system.diagnostics> > </configuration> > > Regards, > Jeroen > >> -----Original Message----- >> From: ikv...@li... [mailto:ikvm- >> dev...@li...] On Behalf Of Jim Redman >> Sent: Friday, May 23, 2008 04:23 >> To: ikv...@li... >> Subject: [Ikvm-developers] RXTX already loaded in another classloader >> >> I've been fighting with this for a while and made no progress, >> suggestions would be appreciated. >> >> This is code all works on FC8, on Debian/ARM I get the following error >> while trying to load the RXTX package. >> >> Experimental: JNI_OnLoad called. <<< this is the library loading >> java.lang.UnsatisfiedLinkError: Native library ./librxtxSerial.so >> already loaded in another classloader thrown while loading >> gnu.io.RXTXCommDriver >> >> Unhandled Exception: System.TypeInitializationException: An exception >> was thrown by the type initializer for gnu.io.CommPortIdentifier ---> >> java.lang.UnsatisfiedLinkError: Native library ./librxtxSerial.so >> already loaded in another classloader--- End of inner exception stack >> trace --- >> >> at com.ergotech.vib.ports.SerialWrapper.setPort (Int32 ) [0x00000] >> >> >> Thanks, >> >> Jim >> >> -- >> Jim Redman >> (505) 662 5156 x85 >> http://www.ergotech.com >> >> ----------------------------------------------------------------------- >> -- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Ikvm-developers mailing list >> Ikv...@li... >> https://lists.sourceforge.net/lists/listinfo/ikvm-developers -- Jim Redman (505) 662 5156 x85 http://www.ergotech.com |