On 26/09/2008, Fabien D. <[EMAIL PROTECTED]> wrote:
>
>  Hi everybody,
>
>  I'm new user of jmeter, and I have a problem.
>
>  I actually use BeanShell to manipulate data. To my data (a string), I want
>  to replace a string by another one. Example : ${id} => 654789
>  In my script, I do this :
>  mystring = mystring.replaceAll("${id}", "654789");
>
>  In jmeter log :
>  2008/09/26 16:17:40 WARN  - jmeter.modifiers.BeanShellPreProcessor: Problem
>  in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking
>  bsh method: eval        Parse error at line 12, column 117.  Encountered: ;
>  2008/09/26 16:17:40 ERROR - jmeter.util.BeanShellInterpreter: Error invoking
>  bsh method: eval        Parse error at line 12, column 117.  Encountered: ;
>
>  So my question is : how can i do a replacement in a BeanShell??
>

Look at the error message - line 12 column 117 - which bears no
relation to the sample you posted.

There must be a problem somewhere else in the script, possibly even in
an initialisation script.

>  thank you in advance
>
> --
>  View this message in context: 
> http://www.nabble.com/BeanShell-replace-String-tp19689516p19689516.html
>  Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to