jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Arnold <>
Subject Re: JavaSampler.teardownTest() not being called
Date Thu, 03 Apr 2003 18:35:24 GMT
    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 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.


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?
>Chris Gardner 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message