You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Aaron Kasman <ak...@us.ibm.com> on 2008/05/26 22:55:09 UTC
if controller missing ;
Hi,
I'm running a scenario involving several nested While and If Controllers
that are called via a Module Controller. I'm occasionally coming up
against stack trace errors in jmeter.log that look like this:
2008/05/26 15:59:57 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)
Sometimes they are preceded by
2008/05/26 16:09:25 INFO - jmeter.protocol.http.sampler.HTTPSampler:
Error Response Code: 404
2008/05/26 16:09:26 INFO - jmeter.protocol.http.sampler.HTTPSampler:
Error Response Code: 404
2008/05/26 16:09:26 INFO - jmeter.protocol.http.sampler.HTTPSampler:
Error Response Code: 404
These 404 errors are not of concern, but I am including them as I am
wondering if there may be a pattern relating them and the
EvaluatorExceptions.
I have checked my Javascript Syntax in the If Controllers for errors, and
nothing stands out to my eyes, but I am also not a javascript expert. I
have also tried to nail down which of the specific controllers is the
culprit by disabling others, but I think that my problem may be pervasive.
Is it possible to configure logging to show which specific instance of an
If Controller is failing as well as any more details of the exception?
I have looked for whitespace around functions as suggested in postings in
the list's archives.
Thanks,
Aaron
Re: if controller missing ;
Posted by sebb <se...@gmail.com>.
On 26/05/2008, Aaron Kasman <ak...@us.ibm.com> wrote:
> Hi,
>
> I'm running a scenario involving several nested While and If Controllers
> that are called via a Module Controller. I'm occasionally coming up
> against stack trace errors in jmeter.log that look like this:
>
>
> 2008/05/26 15:59:57 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)
>
>
> Sometimes they are preceded by
>
> 2008/05/26 16:09:25 INFO - jmeter.protocol.http.sampler.HTTPSampler:
> Error Response Code: 404
> 2008/05/26 16:09:26 INFO - jmeter.protocol.http.sampler.HTTPSampler:
> Error Response Code: 404
> 2008/05/26 16:09:26 INFO - jmeter.protocol.http.sampler.HTTPSampler:
> Error Response Code: 404
>
> These 404 errors are not of concern, but I am including them as I am
> wondering if there may be a pattern relating them and the
> EvaluatorExceptions.
>
> I have checked my Javascript Syntax in the If Controllers for errors, and
> nothing stands out to my eyes, but I am also not a javascript expert. I
> have also tried to nail down which of the specific controllers is the
> culprit by disabling others, but I think that my problem may be pervasive.
> Is it possible to configure logging to show which specific instance of an
> If Controller is failing as well as any more details of the exception?
>
> I have looked for whitespace around functions as suggested in postings in
> the list's archives.
>
Most likely is a space at the end of the Javascript script.
Probably easiest to check in the JMX file.
> Thanks,
>
>
> Aaron
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org