You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Michael McDonnell <bz...@gmail.com> on 2008/07/10 21:08:42 UTC

Http Sampler Problem with Name?

I have an HTTP Sampler, and if I have a sampler that has something in the
POST with the name of "maxRowCount", it causes this in the logs:

2008/07/10 14:05:13 ERROR - jmeter.control.IfController: missing ; before
statement (<cmd>#1) org.mozilla.javascript.EvaluatorException: missing ;
before statement (<cmd>#1)
    at
org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:98)
    at
org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:85)
    at org.mozilla.javascript.Parser.addError(Parser.java:126)
    at org.mozilla.javascript.Parser.reportError(Parser.java:132)
    at org.mozilla.javascript.Parser.statementHelper(Parser.java:1175)
    at org.mozilla.javascript.Parser.statement(Parser.java:623)
    at org.mozilla.javascript.Parser.parse(Parser.java:355)
    at org.mozilla.javascript.Parser.parse(Parser.java:293)
    at org.mozilla.javascript.Context.compileImpl(Context.java:2238)
    at org.mozilla.javascript.Context.compileString(Context.java:1284)
    at org.mozilla.javascript.Context.compileString(Context.java:1273)
    at org.mozilla.javascript.Context.evaluateString(Context.java:1129)
    at
org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:100)
    at org.apache.jmeter.control.IfController.next(IfController.java:151)
    at
org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:130)
    at
org.apache.jmeter.control.GenericController.next(GenericController.java:100)
    at org.apache.jmeter.control.LoopController.next(LoopController.java:91)
    at org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:248)
    at java.lang.Thread.run(Unknown Source)

I took it out, and it ran, (of course, my sampler fails because its
dependent on that, but still...) then I put it back in, and it failed (both
manually and through the proxy recording).....

Any suggestions?

Re: Http Sampler Problem with Name?

Posted by Michael McDonnell <bz...@gmail.com>.
The logs now show no errors.
its entirely possible I did have a space after the -1, because when I ran it
again (of course, this is after a multitude of other changes) it seemed to
run fine (this was to test for you).

Sorry to cause commotion.

Michael

On Thu, Jul 10, 2008 at 3:24 PM, sebb <se...@gmail.com> wrote:

> Again, that does not make sense.
>
> What does the log message show?
>
> Are you sure that there was no space after the -1 beforehand?
>
> On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> > I'm not sure but doing this:
> >  ${__log(${WORKITEMSEQID} == -1)}
> >
> >  Seemed to work to get rid of the exception.
> >
> >
> >  On Thu, Jul 10, 2008 at 3:05 PM, sebb <se...@gmail.com> wrote:
> >
> >  > What was the problem?
> >  >
> >  > On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> >  > > That worked! Thanks Sebb!
> >  > >
> >  > >
> >  > >  On Thu, Jul 10, 2008 at 3:00 PM, sebb <se...@gmail.com> wrote:
> >  > >
> >  > >  > On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> >  > >  > > But the only thing I have in my If Controller (I only have one)
> is:
> >  > >  > >
> >  > >  > >  ${WORKITEMSEQID} == -1
> >  > >  > >
> >  > >  > >  And the Error Goes away when I run it without that maxRowCount
> >  > >  > >
> >  > >  >
> >  > >  > That does not make sense, unless the variable WORKITEMSEQID is
> somehow
> >  > >  > set to something other than a number when maxRowCount is used.
> >  > >  >
> >  > >  > What happens if you replace the If Controller condition with
> "true" or
> >  > >  > "false"?
> >  > >  >
> >  > >  > Or you could try setting the If Controller condition to:
> >  > >  >
> >  > >  > ${__log(${WORKITEMSEQID} == -1)}
> >  > >  >
> >  > >  > This will log the expression.
> >  > >  >
> >  > >  > >
> >  > >  > >  On Thu, Jul 10, 2008 at 2:36 PM, sebb <se...@gmail.com>
> wrote:
> >  > >  > >
> >  > >  > >  > On 10/07/2008, Michael McDonnell <bz...@gmail.com>
> wrote:
> >  > >  > >  > > I have an HTTP Sampler, and if I have a sampler that has
> >  > something
> >  > >  > in the
> >  > >  > >  > >  POST with the name of "maxRowCount", it causes this in
> the
> >  > logs:
> >  > >  > >  > >
> >  > >  > >  > >  2008/07/10 14:05:13 ERROR - jmeter.control.IfController:
> >  > missing ;
> >  > >  > >  > before
> >  > >  > >  > >  statement (<cmd>#1)
> org.mozilla.javascript.EvaluatorException:
> >  > >  > missing ;
> >  > >  > >  > >  before statement (<cmd>#1)
> >  > >  > >  > >     at
> >  > >  > >  >
> >  > >  > >  > That's nothing to do with maxRowCount, it's an error in the
> If
> >  > >  > >  > Controller condition.
> >  > >  > >  >
> >  > >  > >  > Probably trailing spaces.
> >  > >  > >  >
> >  > >  > >  > >
> >  > >  > >  >
> >  > >  >
> >  >
>  org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:98)
> >  > >  > >  > >     at
> >  > >  > >  > >
> >  > >  > >  >
> >  > >  >
> >  >
>  org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:85)
> >  > >  > >  > >     at
> org.mozilla.javascript.Parser.addError(Parser.java:126)
> >  > >  > >  > >     at
> >  > org.mozilla.javascript.Parser.reportError(Parser.java:132)
> >  > >  > >  > >     at
> >  > >  > org.mozilla.javascript.Parser.statementHelper(Parser.java:1175)
> >  > >  > >  > >     at
> org.mozilla.javascript.Parser.statement(Parser.java:623)
> >  > >  > >  > >     at
> org.mozilla.javascript.Parser.parse(Parser.java:355)
> >  > >  > >  > >     at
> org.mozilla.javascript.Parser.parse(Parser.java:293)
> >  > >  > >  > >     at
> >  > org.mozilla.javascript.Context.compileImpl(Context.java:2238)
> >  > >  > >  > >     at
> >  > >  > org.mozilla.javascript.Context.compileString(Context.java:1284)
> >  > >  > >  > >     at
> >  > >  > org.mozilla.javascript.Context.compileString(Context.java:1273)
> >  > >  > >  > >     at
> >  > >  > org.mozilla.javascript.Context.evaluateString(Context.java:1129)
> >  > >  > >  > >     at
> >  > >  > >  > >
> >  > >  > >  >
> >  > >  >
> >  >
>  org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:100)
> >  > >  > >  > >     at
> >  > >  >
> org.apache.jmeter.control.IfController.next(IfController.java:151)
> >  > >  > >  > >     at
> >  > >  > >  > >
> >  > >  > >  >
> >  > >  >
> >  >
>  org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:130)
> >  > >  > >  > >     at
> >  > >  > >  > >
> >  > >  > >  >
> >  > >  >
> >  >
>  org.apache.jmeter.control.GenericController.next(GenericController.java:100)
> >  > >  > >  > >     at
> >  > >  > >  >
> >  > org.apache.jmeter.control.LoopController.next(LoopController.java:91)
> >  > >  > >  > >     at
> >  > >  > org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
> >  > >  > >  > >     at
> >  > >  > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:248)
> >  > >  > >  > >     at java.lang.Thread.run(Unknown Source)
> >  > >  > >  > >
> >  > >  > >  > >  I took it out, and it ran, (of course, my sampler fails
> >  > because its
> >  > >  > >  > >  dependent on that, but still...) then I put it back in,
> and it
> >  > >  > failed
> >  > >  > >  > (both
> >  > >  > >  > >  manually and through the proxy recording).....
> >  > >  > >  > >
> >  > >  > >  > >  Any suggestions?
> >  > >  > >  > >
> >  > >  > >  >
> >  > >  > >
> >  > >  > > >
> >  > ---------------------------------------------------------------------
> >  > >  > >  > 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: Http Sampler Problem with Name?

Posted by sebb <se...@gmail.com>.
Again, that does not make sense.

What does the log message show?

Are you sure that there was no space after the -1 beforehand?

On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> I'm not sure but doing this:
>  ${__log(${WORKITEMSEQID} == -1)}
>
>  Seemed to work to get rid of the exception.
>
>
>  On Thu, Jul 10, 2008 at 3:05 PM, sebb <se...@gmail.com> wrote:
>
>  > What was the problem?
>  >
>  > On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
>  > > That worked! Thanks Sebb!
>  > >
>  > >
>  > >  On Thu, Jul 10, 2008 at 3:00 PM, sebb <se...@gmail.com> wrote:
>  > >
>  > >  > On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
>  > >  > > But the only thing I have in my If Controller (I only have one) is:
>  > >  > >
>  > >  > >  ${WORKITEMSEQID} == -1
>  > >  > >
>  > >  > >  And the Error Goes away when I run it without that maxRowCount
>  > >  > >
>  > >  >
>  > >  > That does not make sense, unless the variable WORKITEMSEQID is somehow
>  > >  > set to something other than a number when maxRowCount is used.
>  > >  >
>  > >  > What happens if you replace the If Controller condition with "true" or
>  > >  > "false"?
>  > >  >
>  > >  > Or you could try setting the If Controller condition to:
>  > >  >
>  > >  > ${__log(${WORKITEMSEQID} == -1)}
>  > >  >
>  > >  > This will log the expression.
>  > >  >
>  > >  > >
>  > >  > >  On Thu, Jul 10, 2008 at 2:36 PM, sebb <se...@gmail.com> wrote:
>  > >  > >
>  > >  > >  > On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
>  > >  > >  > > I have an HTTP Sampler, and if I have a sampler that has
>  > something
>  > >  > in the
>  > >  > >  > >  POST with the name of "maxRowCount", it causes this in the
>  > logs:
>  > >  > >  > >
>  > >  > >  > >  2008/07/10 14:05:13 ERROR - jmeter.control.IfController:
>  > missing ;
>  > >  > >  > before
>  > >  > >  > >  statement (<cmd>#1) org.mozilla.javascript.EvaluatorException:
>  > >  > missing ;
>  > >  > >  > >  before statement (<cmd>#1)
>  > >  > >  > >     at
>  > >  > >  >
>  > >  > >  > That's nothing to do with maxRowCount, it's an error in the If
>  > >  > >  > Controller condition.
>  > >  > >  >
>  > >  > >  > Probably trailing spaces.
>  > >  > >  >
>  > >  > >  > >
>  > >  > >  >
>  > >  >
>  >  org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:98)
>  > >  > >  > >     at
>  > >  > >  > >
>  > >  > >  >
>  > >  >
>  >  org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:85)
>  > >  > >  > >     at org.mozilla.javascript.Parser.addError(Parser.java:126)
>  > >  > >  > >     at
>  > org.mozilla.javascript.Parser.reportError(Parser.java:132)
>  > >  > >  > >     at
>  > >  > org.mozilla.javascript.Parser.statementHelper(Parser.java:1175)
>  > >  > >  > >     at org.mozilla.javascript.Parser.statement(Parser.java:623)
>  > >  > >  > >     at org.mozilla.javascript.Parser.parse(Parser.java:355)
>  > >  > >  > >     at org.mozilla.javascript.Parser.parse(Parser.java:293)
>  > >  > >  > >     at
>  > org.mozilla.javascript.Context.compileImpl(Context.java:2238)
>  > >  > >  > >     at
>  > >  > org.mozilla.javascript.Context.compileString(Context.java:1284)
>  > >  > >  > >     at
>  > >  > org.mozilla.javascript.Context.compileString(Context.java:1273)
>  > >  > >  > >     at
>  > >  > org.mozilla.javascript.Context.evaluateString(Context.java:1129)
>  > >  > >  > >     at
>  > >  > >  > >
>  > >  > >  >
>  > >  >
>  >  org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:100)
>  > >  > >  > >     at
>  > >  > org.apache.jmeter.control.IfController.next(IfController.java:151)
>  > >  > >  > >     at
>  > >  > >  > >
>  > >  > >  >
>  > >  >
>  >  org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:130)
>  > >  > >  > >     at
>  > >  > >  > >
>  > >  > >  >
>  > >  >
>  >  org.apache.jmeter.control.GenericController.next(GenericController.java:100)
>  > >  > >  > >     at
>  > >  > >  >
>  > org.apache.jmeter.control.LoopController.next(LoopController.java:91)
>  > >  > >  > >     at
>  > >  > org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
>  > >  > >  > >     at
>  > >  > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:248)
>  > >  > >  > >     at java.lang.Thread.run(Unknown Source)
>  > >  > >  > >
>  > >  > >  > >  I took it out, and it ran, (of course, my sampler fails
>  > because its
>  > >  > >  > >  dependent on that, but still...) then I put it back in, and it
>  > >  > failed
>  > >  > >  > (both
>  > >  > >  > >  manually and through the proxy recording).....
>  > >  > >  > >
>  > >  > >  > >  Any suggestions?
>  > >  > >  > >
>  > >  > >  >
>  > >  > >
>  > >  > > >
>  > ---------------------------------------------------------------------
>  > >  > >  > 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: Http Sampler Problem with Name?

Posted by Michael McDonnell <bz...@gmail.com>.
I'm not sure but doing this:
${__log(${WORKITEMSEQID} == -1)}

Seemed to work to get rid of the exception.

On Thu, Jul 10, 2008 at 3:05 PM, sebb <se...@gmail.com> wrote:

> What was the problem?
>
> On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> > That worked! Thanks Sebb!
> >
> >
> >  On Thu, Jul 10, 2008 at 3:00 PM, sebb <se...@gmail.com> wrote:
> >
> >  > On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> >  > > But the only thing I have in my If Controller (I only have one) is:
> >  > >
> >  > >  ${WORKITEMSEQID} == -1
> >  > >
> >  > >  And the Error Goes away when I run it without that maxRowCount
> >  > >
> >  >
> >  > That does not make sense, unless the variable WORKITEMSEQID is somehow
> >  > set to something other than a number when maxRowCount is used.
> >  >
> >  > What happens if you replace the If Controller condition with "true" or
> >  > "false"?
> >  >
> >  > Or you could try setting the If Controller condition to:
> >  >
> >  > ${__log(${WORKITEMSEQID} == -1)}
> >  >
> >  > This will log the expression.
> >  >
> >  > >
> >  > >  On Thu, Jul 10, 2008 at 2:36 PM, sebb <se...@gmail.com> wrote:
> >  > >
> >  > >  > On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> >  > >  > > I have an HTTP Sampler, and if I have a sampler that has
> something
> >  > in the
> >  > >  > >  POST with the name of "maxRowCount", it causes this in the
> logs:
> >  > >  > >
> >  > >  > >  2008/07/10 14:05:13 ERROR - jmeter.control.IfController:
> missing ;
> >  > >  > before
> >  > >  > >  statement (<cmd>#1) org.mozilla.javascript.EvaluatorException:
> >  > missing ;
> >  > >  > >  before statement (<cmd>#1)
> >  > >  > >     at
> >  > >  >
> >  > >  > That's nothing to do with maxRowCount, it's an error in the If
> >  > >  > Controller condition.
> >  > >  >
> >  > >  > Probably trailing spaces.
> >  > >  >
> >  > >  > >
> >  > >  >
> >  >
>  org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:98)
> >  > >  > >     at
> >  > >  > >
> >  > >  >
> >  >
>  org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:85)
> >  > >  > >     at org.mozilla.javascript.Parser.addError(Parser.java:126)
> >  > >  > >     at
> org.mozilla.javascript.Parser.reportError(Parser.java:132)
> >  > >  > >     at
> >  > org.mozilla.javascript.Parser.statementHelper(Parser.java:1175)
> >  > >  > >     at org.mozilla.javascript.Parser.statement(Parser.java:623)
> >  > >  > >     at org.mozilla.javascript.Parser.parse(Parser.java:355)
> >  > >  > >     at org.mozilla.javascript.Parser.parse(Parser.java:293)
> >  > >  > >     at
> org.mozilla.javascript.Context.compileImpl(Context.java:2238)
> >  > >  > >     at
> >  > org.mozilla.javascript.Context.compileString(Context.java:1284)
> >  > >  > >     at
> >  > org.mozilla.javascript.Context.compileString(Context.java:1273)
> >  > >  > >     at
> >  > org.mozilla.javascript.Context.evaluateString(Context.java:1129)
> >  > >  > >     at
> >  > >  > >
> >  > >  >
> >  >
>  org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:100)
> >  > >  > >     at
> >  > org.apache.jmeter.control.IfController.next(IfController.java:151)
> >  > >  > >     at
> >  > >  > >
> >  > >  >
> >  >
>  org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:130)
> >  > >  > >     at
> >  > >  > >
> >  > >  >
> >  >
>  org.apache.jmeter.control.GenericController.next(GenericController.java:100)
> >  > >  > >     at
> >  > >  >
> org.apache.jmeter.control.LoopController.next(LoopController.java:91)
> >  > >  > >     at
> >  > org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
> >  > >  > >     at
> >  > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:248)
> >  > >  > >     at java.lang.Thread.run(Unknown Source)
> >  > >  > >
> >  > >  > >  I took it out, and it ran, (of course, my sampler fails
> because its
> >  > >  > >  dependent on that, but still...) then I put it back in, and it
> >  > failed
> >  > >  > (both
> >  > >  > >  manually and through the proxy recording).....
> >  > >  > >
> >  > >  > >  Any suggestions?
> >  > >  > >
> >  > >  >
> >  > >
> >  > > >
> ---------------------------------------------------------------------
> >  > >  > 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: Http Sampler Problem with Name?

Posted by sebb <se...@gmail.com>.
What was the problem?

On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> That worked! Thanks Sebb!
>
>
>  On Thu, Jul 10, 2008 at 3:00 PM, sebb <se...@gmail.com> wrote:
>
>  > On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
>  > > But the only thing I have in my If Controller (I only have one) is:
>  > >
>  > >  ${WORKITEMSEQID} == -1
>  > >
>  > >  And the Error Goes away when I run it without that maxRowCount
>  > >
>  >
>  > That does not make sense, unless the variable WORKITEMSEQID is somehow
>  > set to something other than a number when maxRowCount is used.
>  >
>  > What happens if you replace the If Controller condition with "true" or
>  > "false"?
>  >
>  > Or you could try setting the If Controller condition to:
>  >
>  > ${__log(${WORKITEMSEQID} == -1)}
>  >
>  > This will log the expression.
>  >
>  > >
>  > >  On Thu, Jul 10, 2008 at 2:36 PM, sebb <se...@gmail.com> wrote:
>  > >
>  > >  > On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
>  > >  > > I have an HTTP Sampler, and if I have a sampler that has something
>  > in the
>  > >  > >  POST with the name of "maxRowCount", it causes this in the logs:
>  > >  > >
>  > >  > >  2008/07/10 14:05:13 ERROR - jmeter.control.IfController: missing ;
>  > >  > before
>  > >  > >  statement (<cmd>#1) org.mozilla.javascript.EvaluatorException:
>  > missing ;
>  > >  > >  before statement (<cmd>#1)
>  > >  > >     at
>  > >  >
>  > >  > That's nothing to do with maxRowCount, it's an error in the If
>  > >  > Controller condition.
>  > >  >
>  > >  > Probably trailing spaces.
>  > >  >
>  > >  > >
>  > >  >
>  >  org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:98)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:85)
>  > >  > >     at org.mozilla.javascript.Parser.addError(Parser.java:126)
>  > >  > >     at org.mozilla.javascript.Parser.reportError(Parser.java:132)
>  > >  > >     at
>  > org.mozilla.javascript.Parser.statementHelper(Parser.java:1175)
>  > >  > >     at org.mozilla.javascript.Parser.statement(Parser.java:623)
>  > >  > >     at org.mozilla.javascript.Parser.parse(Parser.java:355)
>  > >  > >     at org.mozilla.javascript.Parser.parse(Parser.java:293)
>  > >  > >     at org.mozilla.javascript.Context.compileImpl(Context.java:2238)
>  > >  > >     at
>  > org.mozilla.javascript.Context.compileString(Context.java:1284)
>  > >  > >     at
>  > org.mozilla.javascript.Context.compileString(Context.java:1273)
>  > >  > >     at
>  > org.mozilla.javascript.Context.evaluateString(Context.java:1129)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:100)
>  > >  > >     at
>  > org.apache.jmeter.control.IfController.next(IfController.java:151)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:130)
>  > >  > >     at
>  > >  > >
>  > >  >
>  >  org.apache.jmeter.control.GenericController.next(GenericController.java:100)
>  > >  > >     at
>  > >  > org.apache.jmeter.control.LoopController.next(LoopController.java:91)
>  > >  > >     at
>  > org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
>  > >  > >     at
>  > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:248)
>  > >  > >     at java.lang.Thread.run(Unknown Source)
>  > >  > >
>  > >  > >  I took it out, and it ran, (of course, my sampler fails because its
>  > >  > >  dependent on that, but still...) then I put it back in, and it
>  > failed
>  > >  > (both
>  > >  > >  manually and through the proxy recording).....
>  > >  > >
>  > >  > >  Any suggestions?
>  > >  > >
>  > >  >
>  > >
>  > > > ---------------------------------------------------------------------
>  > >  > 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: Http Sampler Problem with Name?

Posted by Michael McDonnell <bz...@gmail.com>.
That worked! Thanks Sebb!

On Thu, Jul 10, 2008 at 3:00 PM, sebb <se...@gmail.com> wrote:

> On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> > But the only thing I have in my If Controller (I only have one) is:
> >
> >  ${WORKITEMSEQID} == -1
> >
> >  And the Error Goes away when I run it without that maxRowCount
> >
>
> That does not make sense, unless the variable WORKITEMSEQID is somehow
> set to something other than a number when maxRowCount is used.
>
> What happens if you replace the If Controller condition with "true" or
> "false"?
>
> Or you could try setting the If Controller condition to:
>
> ${__log(${WORKITEMSEQID} == -1)}
>
> This will log the expression.
>
> >
> >  On Thu, Jul 10, 2008 at 2:36 PM, sebb <se...@gmail.com> wrote:
> >
> >  > On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> >  > > I have an HTTP Sampler, and if I have a sampler that has something
> in the
> >  > >  POST with the name of "maxRowCount", it causes this in the logs:
> >  > >
> >  > >  2008/07/10 14:05:13 ERROR - jmeter.control.IfController: missing ;
> >  > before
> >  > >  statement (<cmd>#1) org.mozilla.javascript.EvaluatorException:
> missing ;
> >  > >  before statement (<cmd>#1)
> >  > >     at
> >  >
> >  > That's nothing to do with maxRowCount, it's an error in the If
> >  > Controller condition.
> >  >
> >  > Probably trailing spaces.
> >  >
> >  > >
> >  >
>  org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:98)
> >  > >     at
> >  > >
> >  >
>  org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:85)
> >  > >     at org.mozilla.javascript.Parser.addError(Parser.java:126)
> >  > >     at org.mozilla.javascript.Parser.reportError(Parser.java:132)
> >  > >     at
> org.mozilla.javascript.Parser.statementHelper(Parser.java:1175)
> >  > >     at org.mozilla.javascript.Parser.statement(Parser.java:623)
> >  > >     at org.mozilla.javascript.Parser.parse(Parser.java:355)
> >  > >     at org.mozilla.javascript.Parser.parse(Parser.java:293)
> >  > >     at org.mozilla.javascript.Context.compileImpl(Context.java:2238)
> >  > >     at
> org.mozilla.javascript.Context.compileString(Context.java:1284)
> >  > >     at
> org.mozilla.javascript.Context.compileString(Context.java:1273)
> >  > >     at
> org.mozilla.javascript.Context.evaluateString(Context.java:1129)
> >  > >     at
> >  > >
> >  >
>  org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:100)
> >  > >     at
> org.apache.jmeter.control.IfController.next(IfController.java:151)
> >  > >     at
> >  > >
> >  >
>  org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:130)
> >  > >     at
> >  > >
> >  >
>  org.apache.jmeter.control.GenericController.next(GenericController.java:100)
> >  > >     at
> >  > org.apache.jmeter.control.LoopController.next(LoopController.java:91)
> >  > >     at
> org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
> >  > >     at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:248)
> >  > >     at java.lang.Thread.run(Unknown Source)
> >  > >
> >  > >  I took it out, and it ran, (of course, my sampler fails because its
> >  > >  dependent on that, but still...) then I put it back in, and it
> failed
> >  > (both
> >  > >  manually and through the proxy recording).....
> >  > >
> >  > >  Any suggestions?
> >  > >
> >  >
> >
> > > ---------------------------------------------------------------------
> >  > 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: Http Sampler Problem with Name?

Posted by sebb <se...@gmail.com>.
On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> But the only thing I have in my If Controller (I only have one) is:
>
>  ${WORKITEMSEQID} == -1
>
>  And the Error Goes away when I run it without that maxRowCount
>

That does not make sense, unless the variable WORKITEMSEQID is somehow
set to something other than a number when maxRowCount is used.

What happens if you replace the If Controller condition with "true" or "false"?

Or you could try setting the If Controller condition to:

${__log(${WORKITEMSEQID} == -1)}

This will log the expression.

>
>  On Thu, Jul 10, 2008 at 2:36 PM, sebb <se...@gmail.com> wrote:
>
>  > On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
>  > > I have an HTTP Sampler, and if I have a sampler that has something in the
>  > >  POST with the name of "maxRowCount", it causes this in the logs:
>  > >
>  > >  2008/07/10 14:05:13 ERROR - jmeter.control.IfController: missing ;
>  > before
>  > >  statement (<cmd>#1) org.mozilla.javascript.EvaluatorException: missing ;
>  > >  before statement (<cmd>#1)
>  > >     at
>  >
>  > That's nothing to do with maxRowCount, it's an error in the If
>  > Controller condition.
>  >
>  > Probably trailing spaces.
>  >
>  > >
>  >  org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:98)
>  > >     at
>  > >
>  >  org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:85)
>  > >     at org.mozilla.javascript.Parser.addError(Parser.java:126)
>  > >     at org.mozilla.javascript.Parser.reportError(Parser.java:132)
>  > >     at org.mozilla.javascript.Parser.statementHelper(Parser.java:1175)
>  > >     at org.mozilla.javascript.Parser.statement(Parser.java:623)
>  > >     at org.mozilla.javascript.Parser.parse(Parser.java:355)
>  > >     at org.mozilla.javascript.Parser.parse(Parser.java:293)
>  > >     at org.mozilla.javascript.Context.compileImpl(Context.java:2238)
>  > >     at org.mozilla.javascript.Context.compileString(Context.java:1284)
>  > >     at org.mozilla.javascript.Context.compileString(Context.java:1273)
>  > >     at org.mozilla.javascript.Context.evaluateString(Context.java:1129)
>  > >     at
>  > >
>  >  org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:100)
>  > >     at org.apache.jmeter.control.IfController.next(IfController.java:151)
>  > >     at
>  > >
>  >  org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:130)
>  > >     at
>  > >
>  >  org.apache.jmeter.control.GenericController.next(GenericController.java:100)
>  > >     at
>  > org.apache.jmeter.control.LoopController.next(LoopController.java:91)
>  > >     at org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
>  > >     at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:248)
>  > >     at java.lang.Thread.run(Unknown Source)
>  > >
>  > >  I took it out, and it ran, (of course, my sampler fails because its
>  > >  dependent on that, but still...) then I put it back in, and it failed
>  > (both
>  > >  manually and through the proxy recording).....
>  > >
>  > >  Any suggestions?
>  > >
>  >
>
> > ---------------------------------------------------------------------
>  > 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: Http Sampler Problem with Name?

Posted by Michael McDonnell <bz...@gmail.com>.
But the only thing I have in my If Controller (I only have one) is:

${WORKITEMSEQID} == -1

And the Error Goes away when I run it without that maxRowCount

On Thu, Jul 10, 2008 at 2:36 PM, sebb <se...@gmail.com> wrote:

> On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> > I have an HTTP Sampler, and if I have a sampler that has something in the
> >  POST with the name of "maxRowCount", it causes this in the logs:
> >
> >  2008/07/10 14:05:13 ERROR - jmeter.control.IfController: missing ;
> before
> >  statement (<cmd>#1) org.mozilla.javascript.EvaluatorException: missing ;
> >  before statement (<cmd>#1)
> >     at
>
> That's nothing to do with maxRowCount, it's an error in the If
> Controller condition.
>
> Probably trailing spaces.
>
> >
>  org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:98)
> >     at
> >
>  org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:85)
> >     at org.mozilla.javascript.Parser.addError(Parser.java:126)
> >     at org.mozilla.javascript.Parser.reportError(Parser.java:132)
> >     at org.mozilla.javascript.Parser.statementHelper(Parser.java:1175)
> >     at org.mozilla.javascript.Parser.statement(Parser.java:623)
> >     at org.mozilla.javascript.Parser.parse(Parser.java:355)
> >     at org.mozilla.javascript.Parser.parse(Parser.java:293)
> >     at org.mozilla.javascript.Context.compileImpl(Context.java:2238)
> >     at org.mozilla.javascript.Context.compileString(Context.java:1284)
> >     at org.mozilla.javascript.Context.compileString(Context.java:1273)
> >     at org.mozilla.javascript.Context.evaluateString(Context.java:1129)
> >     at
> >
>  org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:100)
> >     at org.apache.jmeter.control.IfController.next(IfController.java:151)
> >     at
> >
>  org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:130)
> >     at
> >
>  org.apache.jmeter.control.GenericController.next(GenericController.java:100)
> >     at
> org.apache.jmeter.control.LoopController.next(LoopController.java:91)
> >     at org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
> >     at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:248)
> >     at java.lang.Thread.run(Unknown Source)
> >
> >  I took it out, and it ran, (of course, my sampler fails because its
> >  dependent on that, but still...) then I put it back in, and it failed
> (both
> >  manually and through the proxy recording).....
> >
> >  Any suggestions?
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Http Sampler Problem with Name?

Posted by sebb <se...@gmail.com>.
On 10/07/2008, Michael McDonnell <bz...@gmail.com> wrote:
> I have an HTTP Sampler, and if I have a sampler that has something in the
>  POST with the name of "maxRowCount", it causes this in the logs:
>
>  2008/07/10 14:05:13 ERROR - jmeter.control.IfController: missing ; before
>  statement (<cmd>#1) org.mozilla.javascript.EvaluatorException: missing ;
>  before statement (<cmd>#1)
>     at

That's nothing to do with maxRowCount, it's an error in the If
Controller condition.

Probably trailing spaces.

>  org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:98)
>     at
>  org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:85)
>     at org.mozilla.javascript.Parser.addError(Parser.java:126)
>     at org.mozilla.javascript.Parser.reportError(Parser.java:132)
>     at org.mozilla.javascript.Parser.statementHelper(Parser.java:1175)
>     at org.mozilla.javascript.Parser.statement(Parser.java:623)
>     at org.mozilla.javascript.Parser.parse(Parser.java:355)
>     at org.mozilla.javascript.Parser.parse(Parser.java:293)
>     at org.mozilla.javascript.Context.compileImpl(Context.java:2238)
>     at org.mozilla.javascript.Context.compileString(Context.java:1284)
>     at org.mozilla.javascript.Context.compileString(Context.java:1273)
>     at org.mozilla.javascript.Context.evaluateString(Context.java:1129)
>     at
>  org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:100)
>     at org.apache.jmeter.control.IfController.next(IfController.java:151)
>     at
>  org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:130)
>     at
>  org.apache.jmeter.control.GenericController.next(GenericController.java:100)
>     at org.apache.jmeter.control.LoopController.next(LoopController.java:91)
>     at org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
>     at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:248)
>     at java.lang.Thread.run(Unknown Source)
>
>  I took it out, and it ran, (of course, my sampler fails because its
>  dependent on that, but still...) then I put it back in, and it failed (both
>  manually and through the proxy recording).....
>
>  Any suggestions?
>

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