Hello there,
Yep, that's a typical error message due to conflicting versions of ASM
with the groovy.jar.
If you use groovy-all-1.0-jsr-01.jar (or something like that)
everything should be fine.
It seems you're using the non-embeddable version with groovy.jar and
asm-*.jar, and you must have an old version of asm on your classpath.
So check the version of ASM you're using (Groovy needs 1.5.2), or
else, the best alternative is to use the groovy-all.jar which uses its
own customized version of ASM inside its jar.
On 03/05/05, Ludovic Dubost <ludovic(a)xwiki.org> wrote:
There must be a groovy conflict.. check out groovy jars. you should have
only the groovy-jsr-all jar
Ludovic
Jiri Luzny a écrit :
>Hi Ludovic,
>
>it seems the Groovy support is broken. I'm getting the following
>exception when invoking a groovy script:
>
>Exception: Invocation of method 'getRenderedContent' in class
>com.xpn.xwiki.api.Document threw exception class
>java.lang.NoSuchMethodError :
>org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
>
>The same exception occurs when running GroovyRenderTest.testBasics()
>test and similar with GroovyRenderTest.testWithFunction().
>
>Maybe it is my local problem as I'm testing local build instead of the
>war...
>
>Thanks,
>Jiri.
--
Guillaume Laforge
Groovy Project Manager
http://glaforge.free.fr/weblog/?catid=2