You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Shelli D. Orton" <sh...@wmode.com> on 2006/04/25 19:31:17 UTC

Request Not Executing

Hello All,

I am writing a functional web application test which includes both JDBC and
HTTP requests.  Before I can do the HTTP requests, I need to make sure the
database is set up correctly.  My plan looks something like this:

Thread Group
 | 
 |__ JDB Connection Configuration
 |
 |__ HTTP Request Defaults
 |
 |__ HTTP Header Manager
 |
 |__ View Results Tree
 |
 |__ Simple Controller
     |
     |__ JDBC Request (make sure consumer exists in db)
     |
     |__ If Controller (if consumer exists)
         |
         |__ JDBC Request (check for valid subscription)
             |
             |__ If Controller (if subscription exists)
                 |
                 |__ JDBC Request (remove subscription)
         |
         |__ HTTP Request (display subscription form)
         |
         |__ HTTP Request (submit subscription form)


In my View Results Tree I see the first JDBC request (ensure consumer
exists) and the first HTTP request (display subscription form).  I do not
see the second JDBC request (and subsequently the third JDBC request) and do
not know why.  The test that the consumer exists must pass because the HTTP
requests are nested in that controller (as well as the other JDBC requests).
The second HTTP request is not executed because the validation of the first
HTTP request fails (consumer already has a subscription).

As I was building up the test plan, I originally had the JDBC and HTTP
requests in separate thread groups (and set the number of threads for the
HTTP one to zero so it would not execute).  However, now that they are in
the same thread group, it skips over the second JDBC request.  Does anyone
have any thoughts on why this would be?

All help greatly appreciated,
Shelli




---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Request Not Executing

Posted by sebb <se...@gmail.com>.
On 25/04/06, Shelli D. Orton <sh...@wmode.com> wrote:
> I originally added the modifier to the thread group. As per your suggestion,
> I've added it to the specific request and now I get all the JDBC requests
> executing (and the HTTP ones).  So, I guess the moral of the story is that
> if you are using mixed samplers, you can't add the modifier to the thread
> group.

For now, this is true.

But it is now fixed in SVN, and will be in the next release (and the
next nightly)

> Thanks for your help!

Thanks for reporting the problem and testing the work-round.

S

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Request Not Executing

Posted by "Shelli D. Orton" <sh...@wmode.com>.
I originally added the modifier to the thread group. As per your suggestion,
I've added it to the specific request and now I get all the JDBC requests
executing (and the HTTP ones).  So, I guess the moral of the story is that
if you are using mixed samplers, you can't add the modifier to the thread
group.

Thanks for your help!

Shelli 

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Tuesday, April 25, 2006 4:25 PM
To: JMeter Users List
Subject: Re: Request Not Executing

On 25/04/06, Shelli D. Orton <sh...@wmode.com> wrote:
> I've tracked the issue down to the presence of the HTTP URL Re-writing
> Modifier (which I forgot to model in my earlier e-mails).  Without it, all
> JDBC requests are processed; with it, only the first one is.  However,
> without it the second HTTP request fails because the jsessionid from the
> first request is not added.  Should I report this as a bug?  Is there

I think the problem may be that the URL modifier is expecting an
HTTPSampler, but is being passed a different kind of Sampler - e.g.
JDBC.

Where did you add the URL modifier?
If there were some non-HTTP samplers in scope, it will fail...

I've fixed that (no need to raise a bug).

Meanwhile, try adding it as the child of the request you want to modify.

> another way to add the jsessionid to the second HTTP request? It's not a
> parameter, so I can't use that approach.
>
> Thanks again,
> Shelli
>
> -----Original Message-----
> From: Shelli D. Orton [mailto:shelli.orton@wmode.com]
> Sent: Tuesday, April 25, 2006 12:58 PM
> To: 'JMeter Users List'
> Subject: RE: Request Not Executing
>
> Sorry, missed the jmeter.log thing the first time around.  I do have a
> couple of exceptions, but not sure what to make of them.  Here's the
entire
> log for the test run:
>
> 2006/04/25 12:55:34 INFO  - jmeter.util.JMeterUtils: Setting Locale to
en_US
>
> 2006/04/25 12:55:34 INFO  - jmeter.JMeter: Version 2.1.1
> 2006/04/25 12:55:34 INFO  - jmeter.JMeter: java.version=1.4.2_09
> 2006/04/25 12:55:34 INFO  - jmeter.JMeter: Locale=English (United States)
> 2006/04/25 12:55:34 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The
> Apache Software Foundation
> 2006/04/25 12:55:34 INFO  - jmeter.JMeter: Loaded icon properties from
> org/apache/jmeter/images/icon.properties
> 2006/04/25 12:55:36 INFO  -
> jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Entered access log
> sampler bean info
> 2006/04/25 12:55:36 INFO  -
> jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: found parsers:
> [org.apache.jmeter.protocol.http.util.accesslog.OrderPreservingLogParser,
> org.apache.jmeter.protocol.http.util.accesslog.SharedTCLogParser,
> org.apache.jmeter.protocol.http.util.accesslog.TCLogParser]
> 2006/04/25 12:55:36 INFO  -
> jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Got to end of
access
> log samper bean info init
> 2006/04/25 12:55:36 INFO  - jmeter.samplers.SampleResult: Note: Sample
> TimeStamps are END times
> 2006/04/25 12:55:36 INFO  - jmeter.samplers.SampleResult:
> sampleresult.default.encoding is set to ISO-8859-1
> 2006/04/25 12:56:00 INFO  - jmeter.gui.action.Load: Loading file:
> C:\Stuff\JMeterTests\PETest.jmx
> 2006/04/25 12:56:00 INFO  - jmeter.protocol.http.sampler.HTTPSampler2:
> httpsampler2.basicauth=false
> 2006/04/25 12:56:00 INFO  - jmeter.save.SaveService: Using SaveService
> properties file 1.7
> 2006/04/25 12:56:00 INFO  - jmeter.save.SaveService: All converter
versions
> present and correct
> 2006/04/25 12:56:03 INFO  - jmeter.engine.StandardJMeterEngine: Running
the
> test!
> 2006/04/25 12:56:03 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(true,local)
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1
> threads for group PE Test. Ramp up = 0.
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Test will
> stop on error
> 2006/04/25 12:56:04 WARN  - jmeter.threads.JMeterThread:
> jmeterthread.startearlier=true (see jmeter.properties)
> 2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Thread PE Test
1-1
> started
> 2006/04/25 12:56:04 ERROR - jmeter.threads.JMeterThread:
> java.lang.ClassCastException
>         at
>
org.apache.jmeter.protocol.http.modifier.URLRewritingModifier.process(URLRew
> ritingModifier.java:118)
>         at
>
org.apache.jmeter.threads.TestCompiler.runPreProcessors(TestCompiler.java:12
> 3)
>         at
>
org.apache.jmeter.threads.TestCompiler.configureSampler(TestCompiler.java:11
> 0)
>         at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:236)
>         at java.lang.Thread.run(Unknown Source)
>
> 2006/04/25 12:56:04 ERROR - jmeter.control.IfController: missing ; before
> statement SyntaxError: missing ; before statement (<cmd>; line 1)
>         at
> org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)
>         at
>
org.mozilla.javascript.TokenStream.reportSyntaxError(TokenStream.java:1324)
>         at org.mozilla.javascript.Parser.reportError(Parser.java:73)
>         at org.mozilla.javascript.Parser.wellTerminated(Parser.java:357)
>         at org.mozilla.javascript.Parser.statementHelper(Parser.java:841)
>         at org.mozilla.javascript.Parser.statement(Parser.java:387)
>         at org.mozilla.javascript.Parser.parse(Parser.java:128)
>         at org.mozilla.javascript.Context.compile(Context.java:1995)
>         at org.mozilla.javascript.Context.compile(Context.java:1948)
>         at org.mozilla.javascript.Context.compileReader(Context.java:899)
>         at org.mozilla.javascript.Context.evaluateReader(Context.java:817)
>         at org.mozilla.javascript.Context.evaluateString(Context.java:784)
>         at
>
org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:9
> 5)
>         at
> org.apache.jmeter.control.IfController.next(IfController.java:146)
>         at
>
org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
> ler.java:132)
>         at
>
org.apache.jmeter.control.GenericController.next(GenericController.java:102)
>         at
> org.apache.jmeter.control.IfController.next(IfController.java:148)
>         at
>
org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
> ler.java:132)
>         at
>
org.apache.jmeter.control.GenericController.next(GenericController.java:102)
>         at
>
org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
> ler.java:132)
>         at
>
org.apache.jmeter.control.GenericController.next(GenericController.java:102)
>         at
org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
>         at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:233)
>         at java.lang.Thread.run(Unknown Source)
>
> 2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Stop Test
detected
> by thread PE Test 1-1
> 2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Thread PE Test
1-1
> is done
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Ending
> thread 0
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Stopping
> test
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Notifying
> test listeners of end of test
> 2006/04/25 12:56:04 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(false,local)
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Test has
> ended
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Tuesday, April 25, 2006 12:01 PM
> To: JMeter Users List
> Subject: Re: Request Not Executing
>
> On 25/04/06, Shelli D. Orton <sh...@wmode.com> wrote:
> > I've removed all references to the HTTP stuff in the test plan so that
it
> > looked like this:
> >
> > Thread Group
> >  |
> >  |__ JDB Connection Configuration
> >  |
> >  |__ View Results Tree
> >  |
> >  |__ Simple Controller
> >     |
> >     |__ JDBC Request (make sure consumer exists in db)
> >     |
> >     |__ If Controller (if consumer exists)
> >         |
> >         |__ JDBC Request (check for valid subscription)
> >             |
> >             |__ If Controller (if subscription exists)
> >                 |
> >                 |__ JDBC Request (remove subscription)
> >
> > And that works fine (i.e. all 3 JDBC requests are executed).  So, I
don't
> > think it's how the if controller is set up. I've only dabbled in JMeter
> > before and this is my first plan that uses JDBC requests.  I was
wondering
> > if it's the combination of the two types of requests within the same
> thread
> > group that was causing the issues.  Maybe JMeter isn't meant to have
> "mixed"
> > test plans?
> >
>
> You can mix as many different samplers as you like.
>
> There must be some other problem - did you check jmeter.log ?
>
> S.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Request Not Executing

Posted by sebb <se...@gmail.com>.
On 25/04/06, Shelli D. Orton <sh...@wmode.com> wrote:
> I've tracked the issue down to the presence of the HTTP URL Re-writing
> Modifier (which I forgot to model in my earlier e-mails).  Without it, all
> JDBC requests are processed; with it, only the first one is.  However,
> without it the second HTTP request fails because the jsessionid from the
> first request is not added.  Should I report this as a bug?  Is there

I think the problem may be that the URL modifier is expecting an
HTTPSampler, but is being passed a different kind of Sampler - e.g.
JDBC.

Where did you add the URL modifier?
If there were some non-HTTP samplers in scope, it will fail...

I've fixed that (no need to raise a bug).

Meanwhile, try adding it as the child of the request you want to modify.

> another way to add the jsessionid to the second HTTP request? It's not a
> parameter, so I can't use that approach.
>
> Thanks again,
> Shelli
>
> -----Original Message-----
> From: Shelli D. Orton [mailto:shelli.orton@wmode.com]
> Sent: Tuesday, April 25, 2006 12:58 PM
> To: 'JMeter Users List'
> Subject: RE: Request Not Executing
>
> Sorry, missed the jmeter.log thing the first time around.  I do have a
> couple of exceptions, but not sure what to make of them.  Here's the entire
> log for the test run:
>
> 2006/04/25 12:55:34 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US
>
> 2006/04/25 12:55:34 INFO  - jmeter.JMeter: Version 2.1.1
> 2006/04/25 12:55:34 INFO  - jmeter.JMeter: java.version=1.4.2_09
> 2006/04/25 12:55:34 INFO  - jmeter.JMeter: Locale=English (United States)
> 2006/04/25 12:55:34 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The
> Apache Software Foundation
> 2006/04/25 12:55:34 INFO  - jmeter.JMeter: Loaded icon properties from
> org/apache/jmeter/images/icon.properties
> 2006/04/25 12:55:36 INFO  -
> jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Entered access log
> sampler bean info
> 2006/04/25 12:55:36 INFO  -
> jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: found parsers:
> [org.apache.jmeter.protocol.http.util.accesslog.OrderPreservingLogParser,
> org.apache.jmeter.protocol.http.util.accesslog.SharedTCLogParser,
> org.apache.jmeter.protocol.http.util.accesslog.TCLogParser]
> 2006/04/25 12:55:36 INFO  -
> jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Got to end of access
> log samper bean info init
> 2006/04/25 12:55:36 INFO  - jmeter.samplers.SampleResult: Note: Sample
> TimeStamps are END times
> 2006/04/25 12:55:36 INFO  - jmeter.samplers.SampleResult:
> sampleresult.default.encoding is set to ISO-8859-1
> 2006/04/25 12:56:00 INFO  - jmeter.gui.action.Load: Loading file:
> C:\Stuff\JMeterTests\PETest.jmx
> 2006/04/25 12:56:00 INFO  - jmeter.protocol.http.sampler.HTTPSampler2:
> httpsampler2.basicauth=false
> 2006/04/25 12:56:00 INFO  - jmeter.save.SaveService: Using SaveService
> properties file 1.7
> 2006/04/25 12:56:00 INFO  - jmeter.save.SaveService: All converter versions
> present and correct
> 2006/04/25 12:56:03 INFO  - jmeter.engine.StandardJMeterEngine: Running the
> test!
> 2006/04/25 12:56:03 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(true,local)
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1
> threads for group PE Test. Ramp up = 0.
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Test will
> stop on error
> 2006/04/25 12:56:04 WARN  - jmeter.threads.JMeterThread:
> jmeterthread.startearlier=true (see jmeter.properties)
> 2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Thread PE Test 1-1
> started
> 2006/04/25 12:56:04 ERROR - jmeter.threads.JMeterThread:
> java.lang.ClassCastException
>         at
> org.apache.jmeter.protocol.http.modifier.URLRewritingModifier.process(URLRew
> ritingModifier.java:118)
>         at
> org.apache.jmeter.threads.TestCompiler.runPreProcessors(TestCompiler.java:12
> 3)
>         at
> org.apache.jmeter.threads.TestCompiler.configureSampler(TestCompiler.java:11
> 0)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:236)
>         at java.lang.Thread.run(Unknown Source)
>
> 2006/04/25 12:56:04 ERROR - jmeter.control.IfController: missing ; before
> statement SyntaxError: missing ; before statement (<cmd>; line 1)
>         at
> org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)
>         at
> org.mozilla.javascript.TokenStream.reportSyntaxError(TokenStream.java:1324)
>         at org.mozilla.javascript.Parser.reportError(Parser.java:73)
>         at org.mozilla.javascript.Parser.wellTerminated(Parser.java:357)
>         at org.mozilla.javascript.Parser.statementHelper(Parser.java:841)
>         at org.mozilla.javascript.Parser.statement(Parser.java:387)
>         at org.mozilla.javascript.Parser.parse(Parser.java:128)
>         at org.mozilla.javascript.Context.compile(Context.java:1995)
>         at org.mozilla.javascript.Context.compile(Context.java:1948)
>         at org.mozilla.javascript.Context.compileReader(Context.java:899)
>         at org.mozilla.javascript.Context.evaluateReader(Context.java:817)
>         at org.mozilla.javascript.Context.evaluateString(Context.java:784)
>         at
> org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:9
> 5)
>         at
> org.apache.jmeter.control.IfController.next(IfController.java:146)
>         at
> org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
> ler.java:132)
>         at
> org.apache.jmeter.control.GenericController.next(GenericController.java:102)
>         at
> org.apache.jmeter.control.IfController.next(IfController.java:148)
>         at
> org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
> ler.java:132)
>         at
> org.apache.jmeter.control.GenericController.next(GenericController.java:102)
>         at
> org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
> ler.java:132)
>         at
> org.apache.jmeter.control.GenericController.next(GenericController.java:102)
>         at org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:233)
>         at java.lang.Thread.run(Unknown Source)
>
> 2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Stop Test detected
> by thread PE Test 1-1
> 2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Thread PE Test 1-1
> is done
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Ending
> thread 0
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Stopping
> test
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Notifying
> test listeners of end of test
> 2006/04/25 12:56:04 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(false,local)
> 2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Test has
> ended
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Tuesday, April 25, 2006 12:01 PM
> To: JMeter Users List
> Subject: Re: Request Not Executing
>
> On 25/04/06, Shelli D. Orton <sh...@wmode.com> wrote:
> > I've removed all references to the HTTP stuff in the test plan so that it
> > looked like this:
> >
> > Thread Group
> >  |
> >  |__ JDB Connection Configuration
> >  |
> >  |__ View Results Tree
> >  |
> >  |__ Simple Controller
> >     |
> >     |__ JDBC Request (make sure consumer exists in db)
> >     |
> >     |__ If Controller (if consumer exists)
> >         |
> >         |__ JDBC Request (check for valid subscription)
> >             |
> >             |__ If Controller (if subscription exists)
> >                 |
> >                 |__ JDBC Request (remove subscription)
> >
> > And that works fine (i.e. all 3 JDBC requests are executed).  So, I don't
> > think it's how the if controller is set up. I've only dabbled in JMeter
> > before and this is my first plan that uses JDBC requests.  I was wondering
> > if it's the combination of the two types of requests within the same
> thread
> > group that was causing the issues.  Maybe JMeter isn't meant to have
> "mixed"
> > test plans?
> >
>
> You can mix as many different samplers as you like.
>
> There must be some other problem - did you check jmeter.log ?
>
> S.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Request Not Executing

Posted by "Shelli D. Orton" <sh...@wmode.com>.
I've tracked the issue down to the presence of the HTTP URL Re-writing
Modifier (which I forgot to model in my earlier e-mails).  Without it, all
JDBC requests are processed; with it, only the first one is.  However,
without it the second HTTP request fails because the jsessionid from the
first request is not added.  Should I report this as a bug?  Is there
another way to add the jsessionid to the second HTTP request? It's not a
parameter, so I can't use that approach.

Thanks again,
Shelli

-----Original Message-----
From: Shelli D. Orton [mailto:shelli.orton@wmode.com] 
Sent: Tuesday, April 25, 2006 12:58 PM
To: 'JMeter Users List'
Subject: RE: Request Not Executing

Sorry, missed the jmeter.log thing the first time around.  I do have a
couple of exceptions, but not sure what to make of them.  Here's the entire
log for the test run:

2006/04/25 12:55:34 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US

2006/04/25 12:55:34 INFO  - jmeter.JMeter: Version 2.1.1 
2006/04/25 12:55:34 INFO  - jmeter.JMeter: java.version=1.4.2_09 
2006/04/25 12:55:34 INFO  - jmeter.JMeter: Locale=English (United States) 
2006/04/25 12:55:34 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The
Apache Software Foundation 
2006/04/25 12:55:34 INFO  - jmeter.JMeter: Loaded icon properties from
org/apache/jmeter/images/icon.properties 
2006/04/25 12:55:36 INFO  -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Entered access log
sampler bean info 
2006/04/25 12:55:36 INFO  -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: found parsers:
[org.apache.jmeter.protocol.http.util.accesslog.OrderPreservingLogParser,
org.apache.jmeter.protocol.http.util.accesslog.SharedTCLogParser,
org.apache.jmeter.protocol.http.util.accesslog.TCLogParser] 
2006/04/25 12:55:36 INFO  -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Got to end of access
log samper bean info init 
2006/04/25 12:55:36 INFO  - jmeter.samplers.SampleResult: Note: Sample
TimeStamps are END times 
2006/04/25 12:55:36 INFO  - jmeter.samplers.SampleResult:
sampleresult.default.encoding is set to ISO-8859-1 
2006/04/25 12:56:00 INFO  - jmeter.gui.action.Load: Loading file:
C:\Stuff\JMeterTests\PETest.jmx 
2006/04/25 12:56:00 INFO  - jmeter.protocol.http.sampler.HTTPSampler2:
httpsampler2.basicauth=false 
2006/04/25 12:56:00 INFO  - jmeter.save.SaveService: Using SaveService
properties file 1.7 
2006/04/25 12:56:00 INFO  - jmeter.save.SaveService: All converter versions
present and correct 
2006/04/25 12:56:03 INFO  - jmeter.engine.StandardJMeterEngine: Running the
test! 
2006/04/25 12:56:03 INFO  - jmeter.gui.util.JMeterMenuBar:
setRunning(true,local) 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1
threads for group PE Test. Ramp up = 0. 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Test will
stop on error 
2006/04/25 12:56:04 WARN  - jmeter.threads.JMeterThread:
jmeterthread.startearlier=true (see jmeter.properties) 
2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Thread PE Test 1-1
started 
2006/04/25 12:56:04 ERROR - jmeter.threads.JMeterThread:
java.lang.ClassCastException
	at
org.apache.jmeter.protocol.http.modifier.URLRewritingModifier.process(URLRew
ritingModifier.java:118)
	at
org.apache.jmeter.threads.TestCompiler.runPreProcessors(TestCompiler.java:12
3)
	at
org.apache.jmeter.threads.TestCompiler.configureSampler(TestCompiler.java:11
0)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:236)
	at java.lang.Thread.run(Unknown Source)

2006/04/25 12:56:04 ERROR - jmeter.control.IfController: missing ; before
statement SyntaxError: missing ; before statement (<cmd>; line 1)
	at
org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)
	at
org.mozilla.javascript.TokenStream.reportSyntaxError(TokenStream.java:1324)
	at org.mozilla.javascript.Parser.reportError(Parser.java:73)
	at org.mozilla.javascript.Parser.wellTerminated(Parser.java:357)
	at org.mozilla.javascript.Parser.statementHelper(Parser.java:841)
	at org.mozilla.javascript.Parser.statement(Parser.java:387)
	at org.mozilla.javascript.Parser.parse(Parser.java:128)
	at org.mozilla.javascript.Context.compile(Context.java:1995)
	at org.mozilla.javascript.Context.compile(Context.java:1948)
	at org.mozilla.javascript.Context.compileReader(Context.java:899)
	at org.mozilla.javascript.Context.evaluateReader(Context.java:817)
	at org.mozilla.javascript.Context.evaluateString(Context.java:784)
	at
org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:9
5)
	at
org.apache.jmeter.control.IfController.next(IfController.java:146)
	at
org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
ler.java:132)
	at
org.apache.jmeter.control.GenericController.next(GenericController.java:102)
	at
org.apache.jmeter.control.IfController.next(IfController.java:148)
	at
org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
ler.java:132)
	at
org.apache.jmeter.control.GenericController.next(GenericController.java:102)
	at
org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
ler.java:132)
	at
org.apache.jmeter.control.GenericController.next(GenericController.java:102)
	at org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:233)
	at java.lang.Thread.run(Unknown Source)

2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Stop Test detected
by thread PE Test 1-1 
2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Thread PE Test 1-1
is done 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Ending
thread 0 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Stopping
test 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Notifying
test listeners of end of test 
2006/04/25 12:56:04 INFO  - jmeter.gui.util.JMeterMenuBar:
setRunning(false,local) 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Test has
ended 

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Tuesday, April 25, 2006 12:01 PM
To: JMeter Users List
Subject: Re: Request Not Executing

On 25/04/06, Shelli D. Orton <sh...@wmode.com> wrote:
> I've removed all references to the HTTP stuff in the test plan so that it
> looked like this:
>
> Thread Group
>  |
>  |__ JDB Connection Configuration
>  |
>  |__ View Results Tree
>  |
>  |__ Simple Controller
>     |
>     |__ JDBC Request (make sure consumer exists in db)
>     |
>     |__ If Controller (if consumer exists)
>         |
>         |__ JDBC Request (check for valid subscription)
>             |
>             |__ If Controller (if subscription exists)
>                 |
>                 |__ JDBC Request (remove subscription)
>
> And that works fine (i.e. all 3 JDBC requests are executed).  So, I don't
> think it's how the if controller is set up. I've only dabbled in JMeter
> before and this is my first plan that uses JDBC requests.  I was wondering
> if it's the combination of the two types of requests within the same
thread
> group that was causing the issues.  Maybe JMeter isn't meant to have
"mixed"
> test plans?
>

You can mix as many different samplers as you like.

There must be some other problem - did you check jmeter.log ?

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Request Not Executing

Posted by "Shelli D. Orton" <sh...@wmode.com>.
Sorry, missed the jmeter.log thing the first time around.  I do have a
couple of exceptions, but not sure what to make of them.  Here's the entire
log for the test run:

2006/04/25 12:55:34 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US

2006/04/25 12:55:34 INFO  - jmeter.JMeter: Version 2.1.1 
2006/04/25 12:55:34 INFO  - jmeter.JMeter: java.version=1.4.2_09 
2006/04/25 12:55:34 INFO  - jmeter.JMeter: Locale=English (United States) 
2006/04/25 12:55:34 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The
Apache Software Foundation 
2006/04/25 12:55:34 INFO  - jmeter.JMeter: Loaded icon properties from
org/apache/jmeter/images/icon.properties 
2006/04/25 12:55:36 INFO  -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Entered access log
sampler bean info 
2006/04/25 12:55:36 INFO  -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: found parsers:
[org.apache.jmeter.protocol.http.util.accesslog.OrderPreservingLogParser,
org.apache.jmeter.protocol.http.util.accesslog.SharedTCLogParser,
org.apache.jmeter.protocol.http.util.accesslog.TCLogParser] 
2006/04/25 12:55:36 INFO  -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Got to end of access
log samper bean info init 
2006/04/25 12:55:36 INFO  - jmeter.samplers.SampleResult: Note: Sample
TimeStamps are END times 
2006/04/25 12:55:36 INFO  - jmeter.samplers.SampleResult:
sampleresult.default.encoding is set to ISO-8859-1 
2006/04/25 12:56:00 INFO  - jmeter.gui.action.Load: Loading file:
C:\Stuff\JMeterTests\PETest.jmx 
2006/04/25 12:56:00 INFO  - jmeter.protocol.http.sampler.HTTPSampler2:
httpsampler2.basicauth=false 
2006/04/25 12:56:00 INFO  - jmeter.save.SaveService: Using SaveService
properties file 1.7 
2006/04/25 12:56:00 INFO  - jmeter.save.SaveService: All converter versions
present and correct 
2006/04/25 12:56:03 INFO  - jmeter.engine.StandardJMeterEngine: Running the
test! 
2006/04/25 12:56:03 INFO  - jmeter.gui.util.JMeterMenuBar:
setRunning(true,local) 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1
threads for group PE Test. Ramp up = 0. 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Test will
stop on error 
2006/04/25 12:56:04 WARN  - jmeter.threads.JMeterThread:
jmeterthread.startearlier=true (see jmeter.properties) 
2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Thread PE Test 1-1
started 
2006/04/25 12:56:04 ERROR - jmeter.threads.JMeterThread:
java.lang.ClassCastException
	at
org.apache.jmeter.protocol.http.modifier.URLRewritingModifier.process(URLRew
ritingModifier.java:118)
	at
org.apache.jmeter.threads.TestCompiler.runPreProcessors(TestCompiler.java:12
3)
	at
org.apache.jmeter.threads.TestCompiler.configureSampler(TestCompiler.java:11
0)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:236)
	at java.lang.Thread.run(Unknown Source)

2006/04/25 12:56:04 ERROR - jmeter.control.IfController: missing ; before
statement SyntaxError: missing ; before statement (<cmd>; line 1)
	at
org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)
	at
org.mozilla.javascript.TokenStream.reportSyntaxError(TokenStream.java:1324)
	at org.mozilla.javascript.Parser.reportError(Parser.java:73)
	at org.mozilla.javascript.Parser.wellTerminated(Parser.java:357)
	at org.mozilla.javascript.Parser.statementHelper(Parser.java:841)
	at org.mozilla.javascript.Parser.statement(Parser.java:387)
	at org.mozilla.javascript.Parser.parse(Parser.java:128)
	at org.mozilla.javascript.Context.compile(Context.java:1995)
	at org.mozilla.javascript.Context.compile(Context.java:1948)
	at org.mozilla.javascript.Context.compileReader(Context.java:899)
	at org.mozilla.javascript.Context.evaluateReader(Context.java:817)
	at org.mozilla.javascript.Context.evaluateString(Context.java:784)
	at
org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:9
5)
	at
org.apache.jmeter.control.IfController.next(IfController.java:146)
	at
org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
ler.java:132)
	at
org.apache.jmeter.control.GenericController.next(GenericController.java:102)
	at
org.apache.jmeter.control.IfController.next(IfController.java:148)
	at
org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
ler.java:132)
	at
org.apache.jmeter.control.GenericController.next(GenericController.java:102)
	at
org.apache.jmeter.control.GenericController.nextIsAController(GenericControl
ler.java:132)
	at
org.apache.jmeter.control.GenericController.next(GenericController.java:102)
	at org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:233)
	at java.lang.Thread.run(Unknown Source)

2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Stop Test detected
by thread PE Test 1-1 
2006/04/25 12:56:04 INFO  - jmeter.threads.JMeterThread: Thread PE Test 1-1
is done 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Ending
thread 0 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Stopping
test 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Notifying
test listeners of end of test 
2006/04/25 12:56:04 INFO  - jmeter.gui.util.JMeterMenuBar:
setRunning(false,local) 
2006/04/25 12:56:04 INFO  - jmeter.engine.StandardJMeterEngine: Test has
ended 

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Tuesday, April 25, 2006 12:01 PM
To: JMeter Users List
Subject: Re: Request Not Executing

On 25/04/06, Shelli D. Orton <sh...@wmode.com> wrote:
> I've removed all references to the HTTP stuff in the test plan so that it
> looked like this:
>
> Thread Group
>  |
>  |__ JDB Connection Configuration
>  |
>  |__ View Results Tree
>  |
>  |__ Simple Controller
>     |
>     |__ JDBC Request (make sure consumer exists in db)
>     |
>     |__ If Controller (if consumer exists)
>         |
>         |__ JDBC Request (check for valid subscription)
>             |
>             |__ If Controller (if subscription exists)
>                 |
>                 |__ JDBC Request (remove subscription)
>
> And that works fine (i.e. all 3 JDBC requests are executed).  So, I don't
> think it's how the if controller is set up. I've only dabbled in JMeter
> before and this is my first plan that uses JDBC requests.  I was wondering
> if it's the combination of the two types of requests within the same
thread
> group that was causing the issues.  Maybe JMeter isn't meant to have
"mixed"
> test plans?
>

You can mix as many different samplers as you like.

There must be some other problem - did you check jmeter.log ?

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Request Not Executing

Posted by sebb <se...@gmail.com>.
On 25/04/06, Shelli D. Orton <sh...@wmode.com> wrote:
> I've removed all references to the HTTP stuff in the test plan so that it
> looked like this:
>
> Thread Group
>  |
>  |__ JDB Connection Configuration
>  |
>  |__ View Results Tree
>  |
>  |__ Simple Controller
>     |
>     |__ JDBC Request (make sure consumer exists in db)
>     |
>     |__ If Controller (if consumer exists)
>         |
>         |__ JDBC Request (check for valid subscription)
>             |
>             |__ If Controller (if subscription exists)
>                 |
>                 |__ JDBC Request (remove subscription)
>
> And that works fine (i.e. all 3 JDBC requests are executed).  So, I don't
> think it's how the if controller is set up. I've only dabbled in JMeter
> before and this is my first plan that uses JDBC requests.  I was wondering
> if it's the combination of the two types of requests within the same thread
> group that was causing the issues.  Maybe JMeter isn't meant to have "mixed"
> test plans?
>

You can mix as many different samplers as you like.

There must be some other problem - did you check jmeter.log ?

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Request Not Executing

Posted by "Shelli D. Orton" <sh...@wmode.com>.
I've removed all references to the HTTP stuff in the test plan so that it
looked like this:

Thread Group
 | 
 |__ JDB Connection Configuration
 |
 |__ View Results Tree
 |
 |__ Simple Controller
     |
     |__ JDBC Request (make sure consumer exists in db)
     |
     |__ If Controller (if consumer exists)
         |
         |__ JDBC Request (check for valid subscription)
             |
             |__ If Controller (if subscription exists)
                 |
                 |__ JDBC Request (remove subscription)

And that works fine (i.e. all 3 JDBC requests are executed).  So, I don't
think it's how the if controller is set up. I've only dabbled in JMeter
before and this is my first plan that uses JDBC requests.  I was wondering
if it's the combination of the two types of requests within the same thread
group that was causing the issues.  Maybe JMeter isn't meant to have "mixed"
test plans?

Shelli

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Tuesday, April 25, 2006 11:42 AM
To: JMeter Users List
Subject: Re: Request Not Executing

On 25/04/06, Shelli D. Orton <sh...@wmode.com> wrote:
> Hello All,
>
> I am writing a functional web application test which includes both JDBC
and
> HTTP requests.  Before I can do the HTTP requests, I need to make sure the
> database is set up correctly.  My plan looks something like this:
>
> Thread Group
>  |
>  |__ JDB Connection Configuration
>  |
>  |__ HTTP Request Defaults
>  |
>  |__ HTTP Header Manager
>  |
>  |__ View Results Tree
>  |
>  |__ Simple Controller
>     |
>     |__ JDBC Request (make sure consumer exists in db)
>     |
>     |__ If Controller (if consumer exists)
>         |
>         |__ JDBC Request (check for valid subscription)
>             |
>             |__ If Controller (if subscription exists)
>                 |
>                 |__ JDBC Request (remove subscription)
>         |
>         |__ HTTP Request (display subscription form)
>         |
>         |__ HTTP Request (submit subscription form)
>
>
> In my View Results Tree I see the first JDBC request (ensure consumer
> exists) and the first HTTP request (display subscription form).  I do not
> see the second JDBC request (and subsequently the third JDBC request) and
do
> not know why.  The test that the consumer exists must pass because the
HTTP
> requests are nested in that controller (as well as the other JDBC
requests).
> The second HTTP request is not executed because the validation of the
first
> HTTP request fails (consumer already has a subscription).
>
> As I was building up the test plan, I originally had the JDBC and HTTP
> requests in separate thread groups (and set the number of threads for the
> HTTP one to zero so it would not execute).  However, now that they are in
> the same thread group, it skips over the second JDBC request.  Does anyone
> have any thoughts on why this would be?
>

Most likely the If Controller condition is not doing what you think.
Are there any relevant messages in jmeter.log (or possibly console)?

What happens if you remove the nested If controller?

A good way of testing the logic of a Test Plan is to use the Java Sampler.

If all fails, and you think there is a bug, please see:

http://wiki.apache.org/jakarta-jmeter/FaultReporting

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Request Not Executing

Posted by sebb <se...@gmail.com>.
On 25/04/06, Shelli D. Orton <sh...@wmode.com> wrote:
> Hello All,
>
> I am writing a functional web application test which includes both JDBC and
> HTTP requests.  Before I can do the HTTP requests, I need to make sure the
> database is set up correctly.  My plan looks something like this:
>
> Thread Group
>  |
>  |__ JDB Connection Configuration
>  |
>  |__ HTTP Request Defaults
>  |
>  |__ HTTP Header Manager
>  |
>  |__ View Results Tree
>  |
>  |__ Simple Controller
>     |
>     |__ JDBC Request (make sure consumer exists in db)
>     |
>     |__ If Controller (if consumer exists)
>         |
>         |__ JDBC Request (check for valid subscription)
>             |
>             |__ If Controller (if subscription exists)
>                 |
>                 |__ JDBC Request (remove subscription)
>         |
>         |__ HTTP Request (display subscription form)
>         |
>         |__ HTTP Request (submit subscription form)
>
>
> In my View Results Tree I see the first JDBC request (ensure consumer
> exists) and the first HTTP request (display subscription form).  I do not
> see the second JDBC request (and subsequently the third JDBC request) and do
> not know why.  The test that the consumer exists must pass because the HTTP
> requests are nested in that controller (as well as the other JDBC requests).
> The second HTTP request is not executed because the validation of the first
> HTTP request fails (consumer already has a subscription).
>
> As I was building up the test plan, I originally had the JDBC and HTTP
> requests in separate thread groups (and set the number of threads for the
> HTTP one to zero so it would not execute).  However, now that they are in
> the same thread group, it skips over the second JDBC request.  Does anyone
> have any thoughts on why this would be?
>

Most likely the If Controller condition is not doing what you think.
Are there any relevant messages in jmeter.log (or possibly console)?

What happens if you remove the nested If controller?

A good way of testing the logic of a Test Plan is to use the Java Sampler.

If all fails, and you think there is a bug, please see:

http://wiki.apache.org/jakarta-jmeter/FaultReporting

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org