Turns out that the JMeter thread logic was not handling samplers that return null results correctly.
I've committed a fix, and uploaded a new build to the nightly directory. It seems to work for me, but no guarantees ... S. On 03/12/06, sebb <[EMAIL PROTECTED]> wrote:
There's definitely a bug there - I also got lots of Class Cast exceptions when I tried adding the Test Action (and a Table Viewer) to the plan. Until this is fixed, there are some workrounds: You could add a Java Request/Sleep Test sampler instead. Howevr, this will generate an extra sample for each loop. Or you can add a Timer - however, timers are always executed before the samples to which they apply, so you would need to add it to the first sampler. I've not tried this, but you might be able to use a variable for the wait time - set it to 0 initially, and then set it to 5 minutes later in the script. Or you could attach a BeanShell Post-Processor to the last sampler and use a script that just waits, e.g. Thread.sleep(1000); would wait 1 second. You'll need to download the BeanShell jar and put it in the lib directory first. The Post-Processor does not seem to get called if there is no result data, but that is unlikely to be the case. S. On 03/12/06, tetsuo10 <[EMAIL PROTECTED]> wrote: > > I found out that it's the Test Action Sampler I put at the end of my test to > pause my testing. I tried it with the demo SimpleTestPalm.jmx, added a Test > Action Sampler with 10sec pause, set the loop for forever, and the error > happens on the 3rd test loop. > > I was using it to run my test every 5 minutes. Is there a different way to > do this? > > Thanks > > > tetsuo10 wrote: > > > > I new at Jmeter. I've created a test plan to run forever. It runs fine > > the first 2 iterations, but after that I noticed some samplers were > > skipped. I checked the jmeter.log and found this. Anyone know why this > > occurs? Thanks > > > > 2006/12/02 18:11:56 ERROR - jmeter.threads.JMeterThread: > > java.lang.ClassCastException: > > org.apache.jmeter.testelement.property.NullProperty > > at org.apache.jmeter.config.Arguments.getArguments(Arguments.java:63) > > at org.apache.jmeter.config.Arguments.iterator(Arguments.java:152) > > at > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.getQueryString(HTTPSamplerBase.java:548) > > at > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.getUrl(HTTPSamplerBase.java:527) > > at > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658) > > at > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:647) > > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) > > at java.lang.Thread.run(Unknown Source) > > > > > > -- > View this message in context: http://www.nabble.com/java.lang.ClassCastException%3A-org.apache.jmeter.testelement.property.NullProperty-tf2745371.html#a7660957 > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

