|
View:
New views
19 Messages
—
Rating Filter:
Alert me
|
|
|
ObjectOutputStreamI am using weka (www.cs.waikato.ac.nz/ml/weka/) compiled with ikvmc from c#. I am having a problem with using java.io.ObjectOutputStream. When I try to use this to serialize a weka classifier object it seems to come out a bit mangled. The file is the same size as if serialized from native java and the java weka can load it fine. However it is obviously not the same object as, via c# or java, it gives completely different results when queried. The binary also differs somewhat from a java serialized equivalent.
Is there as special way java serialization has to be done from ikvm? Thanks for your help, Adam ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: ObjectOutputStreamIt should just work. What version of IKVM are you using? Can you send a repro (off list)?
> -----Original Message----- > From: ikvm-developers-bounces@... [mailto:ikvm- > developers-bounces@...] On Behalf Of Adam Bell > Sent: Saturday, May 03, 2008 07:23 > To: ikvm-developers@... > Subject: [Ikvm-developers] ObjectOutputStream > > I am using weka (www.cs.waikato.ac.nz/ml/weka/) compiled with ikvmc > from c#. I am having a problem with using java.io.ObjectOutputStream. > When I try to use this to serialize a weka classifier object it seems > to come out a bit mangled. The file is the same size as if serialized > from native java and the java weka can load it fine. However it is > obviously not the same object as, via c# or java, it gives completely > different results when queried. The binary also differs somewhat from > a java serialized equivalent. > > Is there as special way java serialization has to be done from ikvm? > > Thanks for your help, > Adam > > > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
undefined symbol: g_module_openCan anyone shed any light on this? We have code that uses RXTX, and so
the RXTX native library. Code has been run through IKVMC. This is on Debian XScale (NSLU2). Mono Version: SweetSpace:/home/MIX_CMIX# mono -V Mono JIT compiler version 1.9.1 (tarball) Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com TLS: normal GC: Included Boehm (with typed GC) SIGSEGV: normal Notifications: epoll Architecture: arm Disabled: none ikvm-0.36.0.11 with the libikvm-native.so build for XScale. Running the application gets this error about the time in the application when I would expect the native library to be loaded. mono: symbol lookup error: /home/MIX_CMIX/libikvm-native.so: undefined symbol: g_module_open It seems this may be a problem with later versions of Mono, that is, I think that this problem does not exist with, say 1.2.6, but haven't confirmed that yet. Any thoughts? Ideas? 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 Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: undefined symbol: g_module_openHi Jim,
This is really way outstide of my area of expertise. Googling found this similar error on Ubuntu x64: https://bugs.launchpad.net/ubuntu/+source/mono/+bug/220935 I would try asking on the Mono list. Regards, Jeroen > -----Original Message----- > From: ikvm-developers-bounces@... [mailto:ikvm- > developers-bounces@...] On Behalf Of Jim Redman > Sent: Friday, May 16, 2008 19:59 > Cc: ikvm-developers@... > Subject: [Ikvm-developers] undefined symbol: g_module_open > > Can anyone shed any light on this? We have code that uses RXTX, and so > the RXTX native library. Code has been run through IKVMC. This is on > Debian XScale (NSLU2). > > Mono Version: > > SweetSpace:/home/MIX_CMIX# mono -V > Mono JIT compiler version 1.9.1 (tarball) Copyright (C) 2002-2007 > Novell, Inc and Contributors. www.mono-project.com > TLS: normal > GC: Included Boehm (with typed GC) > SIGSEGV: normal > Notifications: epoll > Architecture: arm > Disabled: none > > > ikvm-0.36.0.11 with the libikvm-native.so build for XScale. > > Running the application gets this error about the time in the > application when I would expect the native library to be loaded. > > mono: symbol lookup error: /home/MIX_CMIX/libikvm-native.so: undefined > symbol: g_module_open > > It seems this may be a problem with later versions of Mono, that is, I > think that this problem does not exist with, say 1.2.6, but haven't > confirmed that yet. > > Any thoughts? Ideas? > > 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 > Ikvm-developers@... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers ------------------------------------------------------------------------- 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 Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: undefined symbol: g_module_openJeroen,
I assume that this is a change in Mono that has broken IKVM. ikvm_LoadLibrary is just a call to this method. I'll ask on the Mono list and dig some more. Thanks, Jim Jeroen Frijters wrote: > Hi Jim, > > This is really way outstide of my area of expertise. Googling found this similar error on Ubuntu x64: > https://bugs.launchpad.net/ubuntu/+source/mono/+bug/220935 > > I would try asking on the Mono list. > > Regards, > Jeroen > >> -----Original Message----- >> From: ikvm-developers-bounces@... [mailto:ikvm- >> developers-bounces@...] On Behalf Of Jim Redman >> Sent: Friday, May 16, 2008 19:59 >> Cc: ikvm-developers@... >> Subject: [Ikvm-developers] undefined symbol: g_module_open >> >> Can anyone shed any light on this? We have code that uses RXTX, and so >> the RXTX native library. Code has been run through IKVMC. This is on >> Debian XScale (NSLU2). >> >> Mono Version: >> >> SweetSpace:/home/MIX_CMIX# mono -V >> Mono JIT compiler version 1.9.1 (tarball) Copyright (C) 2002-2007 >> Novell, Inc and Contributors. www.mono-project.com >> TLS: normal >> GC: Included Boehm (with typed GC) >> SIGSEGV: normal >> Notifications: epoll >> Architecture: arm >> Disabled: none >> >> >> ikvm-0.36.0.11 with the libikvm-native.so build for XScale. >> >> Running the application gets this error about the time in the >> application when I would expect the native library to be loaded. >> >> mono: symbol lookup error: /home/MIX_CMIX/libikvm-native.so: undefined >> symbol: g_module_open >> >> It seems this may be a problem with later versions of Mono, that is, I >> think that this problem does not exist with, say 1.2.6, but haven't >> confirmed that yet. >> >> Any thoughts? Ideas? >> >> 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 >> Ikvm-developers@... >> https://lists.sourceforge.net/lists/listinfo/ikvm-developers -- 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 Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: undefined symbol: g_module_openJeroen,
I _think_ that this is a build problem. The .so that was installed on FC8 (yum, rpm??) has this profile: [jim@localhost mono]$ ldd /usr/lib/libikvm-native.so linux-gate.so.1 => (0x00110000) libgmodule-2.0.so.0 => /lib/libgmodule-2.0.so.0 (0x00116000) libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x0011a000) libdl.so.2 => /lib/libdl.so.2 (0x001e4000) libpthread.so.0 => /lib/libpthread.so.0 (0x001e9000) libm.so.6 => /lib/libm.so.6 (0x00202000) libc.so.6 => /lib/libc.so.6 (0x0022b000) /lib/ld-linux.so.2 (0x00b93000) the .so that is built with "nant -t:mono-1.0 classpath" has this profile. [jim@localhost mono]$ ldd /home/jim/Development/ikvm/ikvm-0.36.0.11/native/libikvm-native.so linux-gate.so.1 => (0x00110000) libc.so.6 => /lib/libc.so.6 (0x00117000) /lib/ld-linux.so.2 (0x00b93000) without the libgmodule reference, which I think is the cause of the problem. Any thoughts on how to fix this? Thanks, Jim Jeroen Frijters wrote: > Hi Jim, > > This is really way outstide of my area of expertise. Googling found this similar error on Ubuntu x64: > https://bugs.launchpad.net/ubuntu/+source/mono/+bug/220935 > > I would try asking on the Mono list. > > Regards, > Jeroen > >> -----Original Message----- >> From: ikvm-developers-bounces@... [mailto:ikvm- >> developers-bounces@...] On Behalf Of Jim Redman >> Sent: Friday, May 16, 2008 19:59 >> Cc: ikvm-developers@... >> Subject: [Ikvm-developers] undefined symbol: g_module_open >> >> Can anyone shed any light on this? We have code that uses RXTX, and so >> the RXTX native library. Code has been run through IKVMC. This is on >> Debian XScale (NSLU2). >> >> Mono Version: >> >> SweetSpace:/home/MIX_CMIX# mono -V >> Mono JIT compiler version 1.9.1 (tarball) Copyright (C) 2002-2007 >> Novell, Inc and Contributors. www.mono-project.com >> TLS: normal >> GC: Included Boehm (with typed GC) >> SIGSEGV: normal >> Notifications: epoll >> Architecture: arm >> Disabled: none >> >> >> ikvm-0.36.0.11 with the libikvm-native.so build for XScale. >> >> Running the application gets this error about the time in the >> application when I would expect the native library to be loaded. >> >> mono: symbol lookup error: /home/MIX_CMIX/libikvm-native.so: undefined >> symbol: g_module_open >> >> It seems this may be a problem with later versions of Mono, that is, I >> think that this problem does not exist with, say 1.2.6, but haven't >> confirmed that yet. >> >> Any thoughts? Ideas? >> >> 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 >> Ikvm-developers@... >> https://lists.sourceforge.net/lists/listinfo/ikvm-developers -- 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 Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: undefined symbol: g_module_openHi Jim,
Like I said, this is really outside of my area. Here's what in the nant file: gcc -o libikvm-native.so --shared -fPIC `pkg-config --cflags gmodule-2.0` jni.c os.c My guess is that pkg-config is returning the wrong options. Regards, Jeroen > -----Original Message----- > From: Jim Redman [mailto:jredman@...] > Sent: Saturday, May 17, 2008 17:44 > To: Jeroen Frijters > Cc: ikvm-developers@... > Subject: Re: [Ikvm-developers] undefined symbol: g_module_open > > Jeroen, > > I _think_ that this is a build problem. > > The .so that was installed on FC8 (yum, rpm??) has this profile: > > [jim@localhost mono]$ ldd /usr/lib/libikvm-native.so > linux-gate.so.1 => (0x00110000) > libgmodule-2.0.so.0 => /lib/libgmodule-2.0.so.0 (0x00116000) > libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x0011a000) > libdl.so.2 => /lib/libdl.so.2 (0x001e4000) > libpthread.so.0 => /lib/libpthread.so.0 (0x001e9000) > libm.so.6 => /lib/libm.so.6 (0x00202000) > libc.so.6 => /lib/libc.so.6 (0x0022b000) > /lib/ld-linux.so.2 (0x00b93000) > > > the .so that is built with "nant -t:mono-1.0 classpath" > has this profile. > > [jim@localhost mono]$ ldd > /home/jim/Development/ikvm/ikvm-0.36.0.11/native/libikvm-native.so > linux-gate.so.1 => (0x00110000) > libc.so.6 => /lib/libc.so.6 (0x00117000) > /lib/ld-linux.so.2 (0x00b93000) > > without the libgmodule reference, which I think is the cause of the > problem. > > Any thoughts on how to fix this? > > Thanks, > > Jim > > > Jeroen Frijters wrote: > > Hi Jim, > > > > This is really way outstide of my area of expertise. Googling found > this similar error on Ubuntu x64: > > https://bugs.launchpad.net/ubuntu/+source/mono/+bug/220935 > > > > I would try asking on the Mono list. > > > > Regards, > > Jeroen > > > >> -----Original Message----- > >> From: ikvm-developers-bounces@... [mailto:ikvm- > >> developers-bounces@...] On Behalf Of Jim Redman > >> Sent: Friday, May 16, 2008 19:59 > >> Cc: ikvm-developers@... > >> Subject: [Ikvm-developers] undefined symbol: g_module_open > >> > >> Can anyone shed any light on this? We have code that uses RXTX, and > >> so the RXTX native library. Code has been run through IKVMC. This > >> is on Debian XScale (NSLU2). > >> > >> Mono Version: > >> > >> SweetSpace:/home/MIX_CMIX# mono -V > >> Mono JIT compiler version 1.9.1 (tarball) Copyright (C) 2002-2007 > >> Novell, Inc and Contributors. www.mono-project.com > >> TLS: normal > >> GC: Included Boehm (with typed GC) > >> SIGSEGV: normal > >> Notifications: epoll > >> Architecture: arm > >> Disabled: none > >> > >> > >> ikvm-0.36.0.11 with the libikvm-native.so build for XScale. > >> > >> Running the application gets this error about the time in the > >> application when I would expect the native library to be loaded. > >> > >> mono: symbol lookup error: /home/MIX_CMIX/libikvm-native.so: > >> undefined > >> symbol: g_module_open > >> > >> It seems this may be a problem with later versions of Mono, that is, > >> I think that this problem does not exist with, say 1.2.6, but > haven't > >> confirmed that yet. > >> > >> Any thoughts? Ideas? > >> > >> 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 > >> Ikvm-developers@... > >> https://lists.sourceforge.net/lists/listinfo/ikvm-developers > > -- > 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 Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: undefined symbol: g_module_openJeroen,
If you change this line in the native/native.build file: <exec program="/bin/bash" commandline="-c 'gcc -o libikvm-native.so --shared -fPIC `pkg-config --cflags gmodule-2.0` `pkg-config --libs gmodule-2.0` jni.c os.c'"/> adding `pkg-config --libs gmodule-2.0` it seems to resolve the problem. On FC8 everything seems to be working fine. On XScale I now have an java.lang.UnsatisfiedLinkError:.. librxtxSerial.so already loaded in another classloader.. but I assume that is just a configuration error since it doesn't show up on FC8. Jim Jeroen Frijters wrote: > Hi Jim, > > This is really way outstide of my area of expertise. Googling found this similar error on Ubuntu x64: > https://bugs.launchpad.net/ubuntu/+source/mono/+bug/220935 > > I would try asking on the Mono list. > > Regards, > Jeroen > >> -----Original Message----- >> From: ikvm-developers-bounces@... [mailto:ikvm- >> developers-bounces@...] On Behalf Of Jim Redman >> Sent: Friday, May 16, 2008 19:59 >> Cc: ikvm-developers@... >> Subject: [Ikvm-developers] undefined symbol: g_module_open >> >> Can anyone shed any light on this? We have code that uses RXTX, and so >> the RXTX native library. Code has been run through IKVMC. This is on >> Debian XScale (NSLU2). >> >> Mono Version: >> >> SweetSpace:/home/MIX_CMIX# mono -V >> Mono JIT compiler version 1.9.1 (tarball) Copyright (C) 2002-2007 >> Novell, Inc and Contributors. www.mono-project.com >> TLS: normal >> GC: Included Boehm (with typed GC) >> SIGSEGV: normal >> Notifications: epoll >> Architecture: arm >> Disabled: none >> >> >> ikvm-0.36.0.11 with the libikvm-native.so build for XScale. >> >> Running the application gets this error about the time in the >> application when I would expect the native library to be loaded. >> >> mono: symbol lookup error: /home/MIX_CMIX/libikvm-native.so: undefined >> symbol: g_module_open >> >> It seems this may be a problem with later versions of Mono, that is, I >> think that this problem does not exist with, say 1.2.6, but haven't >> confirmed that yet. >> >> Any thoughts? Ideas? >> >> 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 >> Ikvm-developers@... >> https://lists.sourceforge.net/lists/listinfo/ikvm-developers -- 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 Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: undefined symbol: g_module_openThanks Jim. I will add the --libs option to pkg-config.
Regards, Jeroen > -----Original Message----- > From: Jim Redman [mailto:jredman@...] > Sent: Saturday, May 17, 2008 19:32 > To: Jeroen Frijters > Cc: ikvm-developers@... > Subject: Re: [Ikvm-developers] undefined symbol: g_module_open > > Jeroen, > > If you change this line in the native/native.build file: > > <exec program="/bin/bash" commandline="-c 'gcc -o libikvm-native.so -- > shared -fPIC `pkg-config --cflags gmodule-2.0` `pkg-config --libs > gmodule-2.0` jni.c os.c'"/> > > adding `pkg-config --libs gmodule-2.0` it seems to resolve the problem. > On FC8 everything seems to be working fine. > > On XScale I now have an java.lang.UnsatisfiedLinkError:.. > librxtxSerial.so already loaded in another classloader.. > but I assume that is just a configuration error since it doesn't show > up on FC8. > > Jim > > Jeroen Frijters wrote: > > Hi Jim, > > > > This is really way outstide of my area of expertise. Googling found > this similar error on Ubuntu x64: > > https://bugs.launchpad.net/ubuntu/+source/mono/+bug/220935 > > > > I would try asking on the Mono list. > > > > Regards, > > Jeroen > > > >> -----Original Message----- > >> From: ikvm-developers-bounces@... [mailto:ikvm- > >> developers-bounces@...] On Behalf Of Jim Redman > >> Sent: Friday, May 16, 2008 19:59 > >> Cc: ikvm-developers@... > >> Subject: [Ikvm-developers] undefined symbol: g_module_open > >> > >> Can anyone shed any light on this? We have code that uses RXTX, and > >> so the RXTX native library. Code has been run through IKVMC. This > >> is on Debian XScale (NSLU2). > >> > >> Mono Version: > >> > >> SweetSpace:/home/MIX_CMIX# mono -V > >> Mono JIT compiler version 1.9.1 (tarball) Copyright (C) 2002-2007 > >> Novell, Inc and Contributors. www.mono-project.com > >> TLS: normal > >> GC: Included Boehm (with typed GC) > >> SIGSEGV: normal > >> Notifications: epoll > >> Architecture: arm > >> Disabled: none > >> > >> > >> ikvm-0.36.0.11 with the libikvm-native.so build for XScale. > >> > >> Running the application gets this error about the time in the > >> application when I would expect the native library to be loaded. > >> > >> mono: symbol lookup error: /home/MIX_CMIX/libikvm-native.so: > >> undefined > >> symbol: g_module_open > >> > >> It seems this may be a problem with later versions of Mono, that is, > >> I think that this problem does not exist with, say 1.2.6, but > haven't > >> confirmed that yet. > >> > >> Any thoughts? Ideas? > >> > >> 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 > >> Ikvm-developers@... > >> https://lists.sourceforge.net/lists/listinfo/ikvm-developers > > -- > 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 Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
RXTX already loaded in another classloaderI'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 Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: RXTX already loaded in another classloaderThis 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: ikvm-developers-bounces@... [mailto:ikvm- > developers-bounces@...] On Behalf Of Jim Redman > Sent: Friday, May 23, 2008 04:23 > To: ikvm-developers@... > 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 > Ikvm-developers@... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers ------------------------------------------------------------------------- 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 Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: RXTX already loaded in another classloaderJeroen,
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: ikvm-developers-bounces@... [mailto:ikvm- >> developers-bounces@...] On Behalf Of Jim Redman >> Sent: Friday, May 23, 2008 04:23 >> To: ikvm-developers@... >> 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 >> Ikvm-developers@... >> https://lists.sourceforge.net/lists/listinfo/ikvm-developers -- 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 Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: RXTX already loaded in another classloaderJim Redman wrote:
> 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:08.14348 main] loadLibrary: /home/MIX_CMIX/librxtxSerial.so, > class loader: ikvm.runtime.AssemblyClassLoader@BE18F840 The first attempt was made by the null class loader, which is very unlikely, because the bootstrap classes don't know about this library. So it looks very likely that it is a stack walking issue. You could try working around it by moving the first loadLibrary call around. I don't really know how to help you debug the issue and since I don't have a Debian/ARM system I can't debug it myself either. It would help if you could try it with Mono 1.9.1 on an x86 Linux and see if that also has the problem, because then it would be easier to track down. Regards, Jeroen ------------------------------------------------------------------------- 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 Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: RXTX already loaded in another classloader |