Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2003 18:56:27 -0500
From:      "Michael E. Mercer" <mmercer@nc.rr.com>
To:        freebsd-java@freebsd.org
Subject:   SOLVED: I'm stumped... JNI crashes JVM
Message-ID:  <1069199786.74803.13.camel@dual.mmercer.com>

next in thread | raw e-mail | index | archive | help
Me be dumb...

The answer was right there in front of me...

later
MEM

Hello Peoples,

This is on FreeBSD 4.9-Stable, with the latest 1.4.2p5 JDK.


I am trying to allocate an object array "NewObjectArray()"
where I verified busClass, initID, and env are not NULL.

the call is:
array = (*env)->NewObjectArray(env, 1, busClass, 
         (*env)->CallObjectMethod(env, busClass, initID));

This line crashes the JVM... if I change 

(*env)->CallObjectMethod(env, busClass, initID) ---> NULL

then it continues until it reaches this line:

(*env)->SetObjectArrayElement(env, array,0, jobjectBus);

crashes the JVM...

Any ideas to what I am doing wrong?

Thanks
Michael



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1069199786.74803.13.camel>