performance - Jmeter BSF shel l: Response message: org.apache.bsf.BSFException: unable to load language: java -


i want run java code in jmeter using bsf shell shows error:

"response message: org.apache.bsf.bsfexception: unable load language: java". 

please provide url can download java language jar jmeter.

  1. easy way: switch beanshell test elements, beanshell quite java-compliant (apart modern features generics, switch statement on strings, etc.

  2. hard way: patch bsf-2.4.0.jar file (lives under /lib folder of jmeter installation) add javaengine class it.

  3. right way:

    from bsf sampler documentation:

    the bsf api has been largely superseded jsr-223, included in java 6 onwards. scripting languages include support jsr-223; please use jsr223 sampler instead. bsf sampler should needed supporting legacy languages/test scripts.

    so consider using jsr223 test elements , groovy language instead. in 99% of cases valid groovy code valid java code it's unlikely you'll have change anything. see beanshell vs jsr223 vs java jmeter scripting: performance-off you've been waiting for! guide details.


Comments

Popular posts from this blog

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -