The problem is that the JDBC Sampler is not setting the ResponseCode (which is really for HTTP Samples) and the default value of null has exposed a bug in the BeanShellInterpreter class.
Oops! sorry about that. The only work-round I can think of is very messy - extract the response using Regex Extractor into a variable, put the variable in a Java Sampler, and then apply the BeanShell Assertion to that. OK for testing the concept, but horrible for serious testing. I'll fix this shortly. Thanks for the report. S. On 4/20/05, sebb <[EMAIL PROTECTED]> wrote: > OK, I see. > > I should be able to look at this tonight. > > S. > On 4/20/05, Luigi Quitadamo <[EMAIL PROTECTED]> wrote: > > Thank you for the reply. > > > > I use: > > Jmeter: 2.0.3; > > BeanShell: I try with 2.0b1 and 2.0b2; > > java version 1.4.2_03-b02 > > OS: win 2k pro > > > > In my tests the problem occurs when I use Bean Shell Assertion after a > > JDBCRequest. > > When I use Bean Shell Assertion after a HttpRequest it's ok. > > Bye, > > Luigi > > > > > > -----Original Message----- > > From: sebb [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, April 20, 2005 3:24 PM > > To: JMeter Users List > > Subject: Re: BeanShell Assertion > > > > 2.0B1 should work OK. What version of JMeter are you using? JVM? OS? > > > > S. > > On 4/20/05, Luigi Quitadamo <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > when I use BeanShell Assertion > > > it fails and logs the following: > > > 2005/04/20 14:43:31 ERROR - jmeter.util.BeanShellInterpreter: Error > > > invoking bsh method set java.lang.IllegalArgumentException > > > at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > > > Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at > > > org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpr > > > et > > > er.java:137) > > > at > > > org.apache.jmeter.util.BeanShellInterpreter.set(BeanShellInterpreter.j > > > av > > > a:162) > > > at > > > org.apache.jmeter.assertions.BeanShellAssertion.getResult(BeanShellAss > > > er > > > tion.java:111) > > > at > > > org.apache.jmeter.threads.JMeterThread.checkAssertions(JMeterThread.ja > > > va > > > :428) > > > at > > > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:285) > > > at java.lang.Thread.run(Unknown Source) > > > > > > 2005/04/20 14:43:31 ERROR - jmeter.threads.JMeterThread: Test failed! > > > org.apache.jorphan.util.JMeterError: Error invoking bsh method set > > > at > > > org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpr > > > et > > > er.java:145) > > > at > > > org.apache.jmeter.util.BeanShellInterpreter.set(BeanShellInterpreter.j > > > av > > > a:162) > > > at > > > org.apache.jmeter.assertions.BeanShellAssertion.getResult(BeanShellAss > > > er > > > tion.java:111) > > > at > > > org.apache.jmeter.threads.JMeterThread.checkAssertions(JMeterThread.ja > > > va > > > :428) > > > at > > > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:285) > > > at java.lang.Thread.run(Unknown Source) Caused by: > > > java.lang.IllegalArgumentException > > > at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > > > Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at > > > org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpr > > > et > > > er.java:137) > > > ... 5 more > > > > > > Waht version of BeanShell have I to use? > > > Thank you > > > Luigi Quitadamo > > > > > > --------------------------------------------------------------------- > > > 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] > > > > --------------------------------------------------------------------- > > 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]

