jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: Groovy issue
Date Thu, 29 Nov 2012 10:03:41 GMT
Hello,
Did you put the groovy-all.jar in lib folder or part of libraries ?
Why not use JSR 223 ?

Regards
Philippe

On Thu, Nov 29, 2012 at 10:51 AM, ZK <stevesenior69@gmail.com> wrote:

> Hi,
> I am having an issue using jmeter.version=2.8 r1393162
>
> When attempting to use the BSF assertion with language set to GROOVY I get
> the following error:
>
> 2012/11/29 10:37:53 INFO  - jmeter.threads.JMeterThread: Thread started:
> Thread Group 1-1
> 2012/11/29 10:37:55 ERROR - org.apache.bsf.BSFManager: Exception :
> java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(Unknown Source)
>         at java.security.SecureClassLoader.defineClass(Unknown Source)
>         at java.net.URLClassLoader.defineClass(Unknown Source)
>         at java.net.URLClassLoader.access$100(Unknown Source)
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.Class.getDeclaredConstructors0(Native Method)
>         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
>         at java.lang.Class.getConstructor0(Unknown Source)
>         at java.lang.Class.newInstance0(Unknown Source)
>         at java.lang.Class.newInstance(Unknown Source)
>         at
>
> org.codehaus.groovy.vmplugin.VMPluginFactory.createPlugin(VMPluginFactory.java:56)
>         at
>
> org.codehaus.groovy.vmplugin.VMPluginFactory.<clinit>(VMPluginFactory.java:41)
>         at
>
> org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:101)
>         at
>
> org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:73)
>         at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:33)
>         at
> org.codehaus.groovy.runtime.InvokerHelper.<clinit>(InvokerHelper.java:62)
>         at
> groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)
>         at groovy.lang.Binding.<init>(Binding.java:33)
>         at groovy.lang.GroovyShell.<init>(GroovyShell.java:79)
>         at
> org.codehaus.groovy.bsf.GroovyEngine.initialize(GroovyEngine.java:122)
>         at org.apache.bsf.BSFManager$8.run(BSFManager.java:703)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:701)
>         at
>
> org.apache.jmeter.util.BSFTestElement.processFileOrScript(BSFTestElement.java:129)
>         at
> org.apache.jmeter.assertions.BSFAssertion.getResult(BSFAssertion.java:42)
>         at
>
> org.apache.jmeter.threads.JMeterThread.processAssertion(JMeterThread.java:697)
>         at
>
> org.apache.jmeter.threads.JMeterThread.checkAssertions(JMeterThread.java:688)
>         at
>
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:437)
>         at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.Opcodes
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         ... 36 more
>
> 2012/11/29 10:37:55 WARN  - jmeter.assertions.BSFAssertion: Problem in BSF
> script org.apache.bsf.BSFException: unable to load language: groovy
> 2012/11/29 10:37:55 INFO  - jmeter.threads.JMeterThread: Thread finished:
> Thread Group 1-1
> 2012/11/29 10:37:55 INFO  - jmeter.engine.StandardJMeterEngine: Notifying
> test listeners of end of test
> 2012/11/29 10:37:55 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(false,*local*)
>
>
> When I use JMeter 2.6 on the same PC everything is fine.
> I have tried with groovy jars version 2.0.2 and 2.0.5
>
> I created a test with a dummy sampler and a BSF assertion and the above
> error persists
>
>
> Is this a known issue? or is it just me?
>
>
> ZK
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Groovy-issue-tp5715418.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>


-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message