Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@apache.org Received: (qmail 3951 invoked from network); 3 Apr 2003 18:35:03 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 3 Apr 2003 18:35:03 -0000 Received: (qmail 28639 invoked by uid 97); 3 Apr 2003 18:36:55 -0000 Delivered-To: qmlist-jakarta-archive-jmeter-user@nagoya.betaversion.org Received: (qmail 28632 invoked from network); 3 Apr 2003 18:36:55 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 3 Apr 2003 18:36:55 -0000 Received: (qmail 3686 invoked by uid 500); 3 Apr 2003 18:35:00 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 3627 invoked from network); 3 Apr 2003 18:34:59 -0000 Received: from mailg.telia.com (194.22.194.26) by daedalus.apache.org with SMTP; 3 Apr 2003 18:34:59 -0000 Received: from bigfoot.com (h52n2fls35o895.telia.com [217.211.109.52]) by mailg.telia.com (8.12.9/8.12.9) with ESMTP id h33IZ1eV016385 for ; Thu, 3 Apr 2003 20:35:01 +0200 (CEST) X-Original-Recipient: Message-ID: <3E8C7EEC.3050702@bigfoot.com> Date: Thu, 03 Apr 2003 20:35:24 +0200 From: Jeremy Arnold User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: JMeter Users List Subject: Re: JavaSampler.teardownTest() not being called References: <0B71B6D11D3DD211BCFD00805FA7F0EB0D41A424@atlexc04ntms.hboc.com> In-Reply-To: <0B71B6D11D3DD211BCFD00805FA7F0EB0D41A424@atlexc04ntms.hboc.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello, The JavaSampler was broken in 1.8.1 (and earlier versions -- I don't know the whole history, but I don't think it has ever worked quite the way you would expect it to). The good news is that it has been fixed in the last month or so. So if you're willing to use a recent nightly build or pull it from CVS then it should work for you. Note, however, that the API has also changed a bit, so you'll have to make a few modifications to your JavaSamplerClient implementation. They are pretty simple changes though. Take a look at the new org.apache.jmeter.protocol.java.test.SleepTest code and the JavaDoc for some tips on how to do it. Finally, you shouldn't have been extending JavaSampler (not that it would have made a difference). So you will need to change it to extend the new AbstractJavaSamplerClient (or implement the JavaSamplerClient interface directly). Let me know if you have any questions. Jeremy Gardner, Chris wrote: >In jmeter 1.8.1 on Windows 2K, I've created a class that extends >JavaSampler to call a Java object. I overrode teardownTest() to remove >the data from a database that the called Java object effectively >inserted. Unfortunately, teardownTest() is not being called. What am I >doing wrong? > >Thanks. > >Chris Gardner > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org