Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 99993 invoked from network); 5 Mar 2003 20:53:07 -0000 Received: from host158-66.discord.birch.net (HELO email.advancedreality.com) (65.16.158.66) by daedalus.apache.org with SMTP; 5 Mar 2003 20:53:07 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: unit test failure w/junit task Date: Wed, 5 Mar 2003 14:53:11 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: unit test failure w/junit task Thread-Index: AcLjWB+GXA/d2kjBR8Cm38fMM/NujQAACrEg From: "Jim Allers" To: "Ant Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jvb.dll is probably a JNI library used during your test. You should fork your tests when running. "junit" has a "fork" property. The error means exactly what it says. "jvb.dll" cannot be loaded by more than one classloader. If the classloader that loaded jvb.dll is garbage collected, then "jvb.dll" can be loaded again by a different classloader. Since there is no way of guaranteeing that a classloader is garbage collected, I recommend forking. If you're really adventurous, there are various ways you can try to solve the problem without creating a new process, but I think you'll have to ask some real experts. -----Original Message----- From: Erik Price [mailto:eprice@ptc.com]=20 Sent: Wednesday, March 05, 2003 2:45 PM To: Ant Users List Subject: unit test failure w/junit task Hi, I just started using the task with , which is=20 great. In my very first unit test, which simply asserted something=20 which I knew to be true, everything worked perfectly. However, I've written a couple of "real" unit tests since then and I've=20 gotten an error message I've never seen before. This is in my report: testProjectNameHardCoded Error Native Library C:\WINNT\jvb.dll already=20 loaded in another classloader Does anyone know what that one means? That particular unit test really=20 can't fail, either -- it tests to see if a string in the unit test=20 matches a hard-coded string in the project, which I know for a fact=20 match. So there's something going wrong with either JUnit or ant, or=20 ... well I don't really know. Thanks, Erik --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org