From owner-freebsd-java@FreeBSD.ORG Tue Nov 18 15:56:49 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3F4A16A4CE for ; Tue, 18 Nov 2003 15:56:49 -0800 (PST) Received: from ms-smtp-03-eri0.southeast.rr.com (ms-smtp-03-lbl.southeast.rr.com [24.25.9.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67BDF43F85 for ; Tue, 18 Nov 2003 15:56:38 -0800 (PST) (envelope-from mmercer@nc.rr.com) Received: from [192.168.1.2] (rdu88-246-041.nc.rr.com [24.88.246.41]) hAINuRmS029770 for ; Tue, 18 Nov 2003 18:56:27 -0500 (EST) From: "Michael E. Mercer" To: freebsd-java@freebsd.org Content-Type: text/plain Message-Id: <1069199786.74803.13.camel@dual.mmercer.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 18 Nov 2003 18:56:27 -0500 Content-Transfer-Encoding: 7bit Subject: SOLVED: I'm stumped... JNI crashes JVM X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2003 23:56:49 -0000 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