Mike -

Thanks for the quick response.  I downloaded the nightly build from
2001-08-28, and now I'm having different problems.  It looks like a fair
amount has changed since the base 1.6.1 and the current nightly builds, so
maybe I'm just doing something wrong.

Under the 1.6.1 revision, the "simple" way to sample multiple URLs was to
create a "Web Testing" item, and then append multiple "URL Config" children
to it.  This worked fine.

Under the current build, the "Web Testing" item no longer allows you to add
"URL Config" children - the "Add" menu shows "Cookie Manager", "Header
Manager", "Http Authorization", and a disabled "Assertions".  If I put the
url info directly in the Web Testing item, it will sample that URL, but
this obviously only works for one URL.  In the code that creates the menu
for the Web Testing item, I tried adding "addableList.add(new
UrlConfig().getClassLabel());".  This creates the menu item and allows you
to add URL Config children, but they do not sample properly.

I also tried adding an instance of "Simple Controller" to my test plan,
instead of "Web Testing".  The "Simple Controller" item allows you to add
URL Config children to it, but it does not seem to sample them when you run
the test (I suspect because the "Simple Controller" is a Logic Controller
and not a Generative Controller).

Is this broken, or am I doing something wrong here?

Thanks - Jonathan


-----Original Message-----
From: Stover, Michael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 8:04 AM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: Problem with InterleaveController?


Yes, the Interleave controller in 1.6.1 is broken in this way.  You can
download the nightly tar and it should be fixed there.  You'll have to do a
build after downloading to generate a new ApacheJMeter.jar file.

-Mike

> -----Original Message-----
> From: Jonathan O'Keeffe [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 27, 2001 10:20 PM
> To: [EMAIL PROTECTED]
> Subject: Problem with InterleaveController?
>
>
> Does anyone know of any problems using the InterleaveController?
>
> I am using JMeter 1.6.1 (first time using post-1.6 release,
> have previously
> used older versions).  In trying to use an InterleaveController, I am
> having the following problem:
>
> I have a ThreadGroup with the following setup:
>
> --- "Web Testing" with a child URL Sample to request page A
> --- "Interleave Logic", with a child "Web Testing", with
> several children
> URL Samples to request pages B, C, D, E, etc.
> --- "Web Testing" with a child URL Sample to request page Z
> --- Uniform Random Timer (default settings)
> --- Graph Results
>
> What I am expecting is to sequence through the pages like this:
> A, B, Z; A, C, Z; A, D, Z; A, E, Z; etc...
>
> Instead, JMeter requests page A, page B, and then throws a
> NullPointerException in InterleaveController:
>
> java.lang.NullPointerException
>         at
> org.apache.jmeter.control.GenericController.endEntryCycle(Gene
> ricController
> .java:311)
>         at
> org.apache.jmeter.control.InterleaveControl.nextEntry(Interlea
> veControl.jav
> a:116)
>         at
> org.apache.jmeter.control.GenericController.nextEntry(GenericC
> ontroller.jav
> a:225)
>         at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:116)
>         at java.lang.Thread.run(Thread.java:484)
>
> (The line numbers may be a bit off because I've been messing
> with adding
> debugging statements in the source.  Line 311 in
> GenericController.endEntryCycle is the first line of the
> method, which says
>
> if(controlIt.hasNext())
>
> I've verified that controlIt is null at this point, which is why it is
> throwing the NullPointerException.
>
> It seems to me that after the InterleaveControl requests its
> first sample,
> the next call to nextEntry() calls init().  At this point,
> controlIt.hasNext() == false, which ends up causing controlIt
> to be set to
> null.  Later on, endEntryCycle gets called, which assumes
> that controlIt is
> valid and fails.
>
> Is there a problem here, or do I have something configured wrong?
>
> Thanks in advance for any assistance.
>
> - Jonathan O'Keeffe
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to