Did you download the beanshell jar and put it in the lib directory?

On 08/12/06, Christensen, Alan <[EMAIL PROTECTED]> wrote:
Hi Sebb-

Your suggestion below sounded like a great idea.  However, when I tried
it, the sampler containing the beanshell processor did not show up in
the output in any way.

The jmeter.log shows
ShellPostProcessor: bsh.Interpreter
2006/12/08 08:37:52 INFO  - jmeter.threads.JMeterThread: Thread Thread
Group 1-1 started
2006/12/08 08:38:06 ERROR - jmeter.threads.JMeterThread:
java.lang.NullPointerException
       at
org.apache.jmeter.extractor.BeanShellPostProcessor.process(BeanShellPost
Processor.java:76)
       at
org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread.ja
va:428)
       at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)
       at java.lang.Thread.run(Unknown Source)

I am using the exact method that you have below in my beanshell post
processor, i.e.

prev.setResponseMessage("${extractedTime}");

It is the only line in the beanshell post processor in the script area.
Do I need more?

It doesn't seem to matter what I put inside the "" within the parameter
area of the method.  I can put "1" in there and it still returns the
same error.

Any suggestions?



-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 06, 2006 2:32 PM
To: JMeter Users List
Subject: Re: Yet another extractor question

On 06/12/06, Christensen, Alan <[EMAIL PROTECTED]> wrote:
>  My returned html pages include a number in them that corresponds to
> the back end time that was associated with processing the transaction.

> I'd like to figure out how I can extract this number and then have the

> listeners log this number along with the other data logged for each
> transaction.  Is there an easy way to do this?  I know that I can
> extract a value from one sampler and append the extracted value to the

> name field of the subsequent sampler.  But this associates the backend

> time with the wrong line in the report.  Any suggestions?


At present it is not possible to add extra details to the fields saved
by the listeners.
[There is an enhancement request to add extra fields to the listener
data, but no work has been done on it.]

However, you can use one of the existing fields, such as the
responseMessage, to store the value.

This could be done using a BeanShell Post-processor, for example:

prev.setResponseMessage("${extractedTime}");


> ---------------------------------------------------------------------
> 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]

Reply via email to