hi
there seems to be an error . Can you print out the value of time? or is
there more to the error in the log?
Run jmeter with jmeter.bat instead of jmeterw and use print("*" + text +
"*"); right after you get it

Im assuming you are running on java 1.5(which is what I tested on)?

regards
deepak

On Sat, Nov 20, 2010 at 11:56 AM, 5942marine <[email protected]> wrote:

>
> Thanks Deepak, this is all starting to make sense I think.
>
> Quick question, this is what my Beanshell is currently looking like...
>
> import java.security.MessageDigest;
> String text = vars.get("time");
> MessageDigest md = MessageDigest.getInstance("MD5");
> byte[] md5hash = new byte[32];
> md.update(text.getBytes("utf-8"), 0, text.length());
> md5hash = md.digest();
> vars.putObject("timehash",md5hash);
>
> However, when i run it, in the jmeter.log, this keeps showing...
>
> 2010/11/20 12:53:47 ERROR - jmeter.util.BeanShellInterpreter: Error
> invoking
> bsh method: eval        Sourced file: inline evaluation of: ``import
> java.security.MessageDigest; String text = vars.get("time"); MessageDige .
> .
> . ''
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Need-helping-creating-a-md5-hash-tp3273251p3273855.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]
>
>

Reply via email to