On 7/12/05, Grigoryan, Lilit <[EMAIL PROTECTED]> wrote:
> Even so I downloaded the jar, I cant get it working.
> The log file says
>
> 2005/07/12 14:44:06 WARN - jmeter.functions.BeanShell:
> java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.jmeter.functions.BeanShell.execute(BeanShell.java:107)
> at
> org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.
> java:150)
> at
> org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.
> java:113)
> at
> org.apache.jmeter.testelement.property.FunctionProperty.getStringValue(F
> unctionProperty.java:99)
> at
> org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsString(Ab
> stractTestElement.java:234)
> at
> org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.getQuery(JDBCSampler
> .java:260)
> at
> org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.toString(JDBCSampler
> .java:266)
> at
> org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.j
> ava:82)
> at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: Sourced file: inline evaluation of:
> ``vars.get("componentID1");'' : Attempt to resolve method: get() on
> undefined variable or class name: vars : at Line: 1 : in file: inline
> evaluation of: ``vars.get("componentID1");'' : vars .get (
> "componentID1" )
>
> at bsh.UtilEvalError.toEvalError(Unknown Source)
> at bsh.UtilEvalError.toEvalError(Unknown Source)
> at bsh.BSHMethodInvocation.eval(Unknown Source)
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
> at bsh.Interpreter.eval(Unknown Source)
> at bsh.Interpreter.eval(Unknown Source)
> at bsh.Interpreter.eval(Unknown Source)
>
> I looked in the manual, but I could not find anything about vars.
See:
http://jakarta.apache.org/jmeter/usermanual/functions.html#__BeanShell
Works for me with 2.0.3 + bsh-2.0b1.jar
What version of JMeter are you using?
S.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]