Re: JNI FindClass(java/lang/string) causes core dump on AIX 5.2



abhijit.dhariya@xxxxxxxxx wrote:
I have a sample program, please see below.
This program exe runs fine with JRE 1.4 on AIX 5.2.
But same exe causes core dump with JRE 1.5 on AIX5.2.

Any idea why this should happen?
jclass cls = env->FindClass("java/lang/string");
You probably mean "java/lang/String" with capital "S".
Otherwise you'll get cls = NULL returned by FindClass(...)
which might well result in a crash in the following lines.
//jmethodID mid = env->GetStaticMethodID(cls, "test", "(I)V");
//env->CallStaticVoidMethod(cls, mid, 100);


--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')
.



Relevant Pages

  • Re: JNI FindClass coredumps with JRE 1.5
    ... This program exe runs fine with JRE 1.4 on AIX 5.2. ... But same exe causes core dump with JRE 1.5 on AIX5.2. ...
    (comp.lang.java.machine)
  • JNI FindClass coredumps with JRE 1.5
    ... This program exe runs fine with JRE 1.4 on AIX 5.2. ... But same exe causes core dump with JRE 1.5 on AIX5.2. ... Do I need to compile my sample program with JDK 1.5?? ... JavaVMInitArgs vm_args; ...
    (comp.lang.java.machine)
  • Re: JNI FindClass(java/lang/string) causes core dump on AIX 5.2
    ... This is only sample program. ... For any other class inside my jar, FindClass coredumps with JRE ... This program exe runs fine with JRE 1.4 on AIX 5.2. ... But same exe causes core dump with JRE 1.5 on AIX5.2. ...
    (comp.lang.java.programmer)
  • Accessing shared memory from external Application
    ... i have an application using jre 1.3 on aix 3.2. ... access shared memory, but it fails. ...
    (comp.unix.aix)
  • java client / web service question
    ... I have successfully called a web service using 1.4 JRE on windows, ... was wondering if it was possible using 1.3.1 JRE on AIX 5.1? ... tried to compile my client using the 1.3.1 JRE on windows I noticed ...
    (comp.lang.java.programmer)