You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Andy Bell <an...@googlemail.com> on 2009/10/27 12:09:58 UTC
Beanshell parsing error
Hi
I have a problem getting beanshell to 'understand' this line:
brokerDtlsTemplate = "<BrokerDtls Id=\"%s\" Nm=\"Broker Volume\"
Ccy=\"GBP\">\n"
+ " <!--Zero or more
repetitions:--> \n"
+ "
<OtherId> \n"
+ "
<Id>%s</Id> \n"
+ "
<Tp>ExternalId</Tp> \n"
+ "
</OtherId> \n";
2009/10/27 11:00:16 ERROR - jmeter.util.BeanShellInterpreter: Error invoking
bsh method: eval Sourced file: inline evaluation of: ``brokerDtlsTemplate
= "<BrokerDtls Id=\"%s\" Nm=\"DST Broker Volume\" Ccy=\"GBP\" . . . '' :
Typed variable declaration : Object constructor
This happens whether or not I declare the type of brokerDtlsTemplate as
String. If I take out the %s substitution variable I still get the same
error...
--
Andy
Re: Beanshell parsing error
Posted by sebb <se...@gmail.com>.
On 27/10/2009, Andy Bell <an...@googlemail.com> wrote:
> Hi
>
> I have a problem getting beanshell to 'understand' this line:
>
> brokerDtlsTemplate = "<BrokerDtls Id=\"%s\" Nm=\"Broker Volume\"
> Ccy=\"GBP\">\n"
> + " <!--Zero or more
> repetitions:--> \n"
> + "
> <OtherId> \n"
> + "
> <Id>%s</Id> \n"
> + "
> <Tp>ExternalId</Tp> \n"
> + "
> </OtherId> \n";
>
> 2009/10/27 11:00:16 ERROR - jmeter.util.BeanShellInterpreter: Error invoking
> bsh method: eval Sourced file: inline evaluation of: ``brokerDtlsTemplate
> = "<BrokerDtls Id=\"%s\" Nm=\"DST Broker Volume\" Ccy=\"GBP\" . . . '' :
> Typed variable declaration : Object constructor
>
> This happens whether or not I declare the type of brokerDtlsTemplate as
> String. If I take out the %s substitution variable I still get the same
> error...
Works fine for me in the BeanShellSampler.
> --
>
> Andy
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org