RE: [Ikvm-developers] Mono JNI bug (mostly there!)
Brought to you by:
jfrijters
From: Jeroen F. <je...@su...> - 2003-06-02 13:38:02
|
Hi Zoltan,=20 I've added you as a "Developer" to the ikvm project. I'm pretty clueless = about sourceforge, so let me know if I need to do something else. Regards, Jeroen >=20 > -----Original Message----- > From: Varga Zoltan [mailto:va...@fr...]=20 > Sent: Monday, June 02, 2003 15:16 > To: Pablo Baena > Cc: ikvm list >=20 >=20 > Hi, >=20 > I merged your changes and made a new snapshot available at the > website (Jun-02). It also fixes the compilation problem you > reported. >=20 > Jeroen: Would it be possible to add the Mono JNI provider to the > IKVM CVS repository? My sourceforge user id is 'vargaz'. >=20 > bye >=20 > Zoltan >=20 > Pablo Baena <pb...@uo...> =EDrta: >=20 > > I almost got it working. I was forgetting to pass the env > variable to > > the methods!!! That's why I got a NullReferenceException. > >=20 > > Attached is the correct patch. > >=20 > > Now I get another error but I'm getting there. :) > >=20 > > On Sun, 2003-06-01 at 19:37, Pablo Baena wrote: > > > It works! Still, I have a few problems trying to run a > java-gnome app. > > >=20 > > > Lurking at the code, I made mono-jni.patch, which fixes > something I > > > think is wrong. jbyte should be translated to gchar, not > guchar as it is > > > transformed now. > > >=20 > > > java-gnome looks for the JNI function ExceptionCheck, > which I > > > implemented in mono-jni.patch1 and JIT.cs-patch, > although it is a > > > complete hack, since I don't know a thing about JNI so > it is mostly cut > > > & paste. > > >=20 > > > Then it complained about not having CallVoidMethod, so I > implemented it > > > in mono-jni.patch2 (by the very popular method of monkey > programming, > > > also known as cut & paste). > > >=20 > > > Anyway, it isn't working. I get: > > >=20 > > > Unhandled Exception: System.NullReferenceException: A > null value was > > > found where an object instance was required > > > =20 > > > Can you see what is wrong in my patches? > > >=20 > > > Cheers! > > >=20 > > > PS: The world trembles as I look further to implement > StringFromUTF8!!! > > >=20 > > > On Sun, 2003-06-01 at 12:13, Varga Zoltan wrote: > > > > Hi, > > > >=20 > > > > I fixed this in Mono CVS. Tomorrow's Mono snapshot > should work > > > > again. > > > >=20 > > > > bye > > > >=20 > > > > Zoltan > > > >=20 > > > >=20 > > > > Pablo Baena <pb...@uo...> =EDrta: > > > >=20 > > > > > Does it work for you? I get this: > > > > >=20 > > > > >=20 > > > > >=20 > > > > > tetsuo@hal:~/soft/ikvm-mono-bin-31-May-03$ javap MyClass > > > > > Compiled from MyClass.java > > > > > public class MyClass extends java.lang.Object { > > > > > public MyClass(); > > > > > public static void main(java.lang.String[]); > > > > > } > > > > > tetsuo@hal:~/soft/ikvm-mono-bin-31-May-03$ mono ikvm.exe > > > > MyClass > > > > > FINISHING MyClass > > > > > =20 > > > > > ** ERROR **: file metadata.c: line 867 > > > > (mono_metadata_decode_row): > > > > > assertion failed: (res_size =3D=3D count) > > > > > aborting... > > > > > Killed > > > > >=20 > > > > >=20 > > > > > I have yesterday's CVS snapshot. > > > > > Pablo > > > > >=20 > > > > > On Sat, 2003-05-31 at 11:40, Varga Zoltan wrote: > > > > > > Hi, > > > > > >=20 > > > > > > Apply the attached patch to > IK.VM.NET/classpath.cs and > > > > > > it should=20 > > > > > > work. > > > > > >=20 > > > > > >=20 > > > > > > I uploaded a new snapshot to the website which > works with > > > > > > current > > > > > > IKVM CVS, and also includes this patch. > > > > > >=20 > > > > > >=20 > > > > > > bye > > > > > >=20 > > > > > > Zoltan > > > > > >=20 > > > > > >=20 > > > > > > Pablo Baena <pb...@uo...> =EDrta: > > > > > >=20 > > > > > > > When trying to load native libraries from other > directory > > > > > > which isn't > > > > > > > the current one, it fails, even adding a > LD_LIBRARY_PATH. > > > > > > >=20 > > > > > > > This is the log: > > > > > > > ------------ > > > > > > > tetsuo@hal:~/soft/ikvm-mono-bin$ ls test=20 > > > > > > > total 32K > > > > > > > -rwxr-xr-x 1 tetsuo tetsuo 29K May > 31 00:11 > > > > > > libhello.so > > > > > > > tetsuo@hal:~/soft/ikvm-mono-bin$ > > > > > > IKVM_JNI_PROVIDER=3DMono.IKVM.JNI.dll > > > > > > > LD_LIBRARY_PATH=3D.:/test mono > --optimize=3D-fcmov,-all,shared > > > > > > ikvm.exe > > > > > > > HelloWorld > > > > > > > FINISHING HelloWorld > > > > > > > LoadNativeLibrary : ./libhello.so > > > > > > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: > > > > > > Could not > > > > > > > find library hello. > > > > > > > at java.lang.Runtime.loadLibrary(Unknown > Source) > > > > > > > at java.lang.System.loadLibrary(Unknown > Source) > > > > > > > at HelloWorld.<clinit>(Unknown Source) > > > > > > > ------------ > > > > > > >=20 > > > > > > > Attached are the sources for the class and the > library. > > > > > > >=20 > > > > > > > Regards! > > > > > > > --=20 > > > > > > > Pablo Baena <pb...@uo...> > > > > > > >=20 > > > > > --=20 > > > > > Pablo Baena <pb...@uo...> > > > > >=20 > > > > >=20 > > > > >=20 > > > > >=20 > > > >=20 > > > >=20 > > > >=20 > > > >=20 > > > >=20 > > > >=20 > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: eBay > > > > Get office equipment for less on eBay! > > > > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > > > > _______________________________________________ > > > > Ikvm-developers mailing list > > > > Ikv...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > > --=20 > > Pablo Baena <pb...@uo...> > >=20 >=20 >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Ikvm-developers mailing list > Ikv...@li... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers >=20 |