You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Mariusz Pala (Jira)" <ji...@apache.org> on 2020/05/29 07:43:00 UTC

[jira] [Created] (GROOVY-9579) TimedInterrupt config causes the scripting parsing to fail

Mariusz Pala created GROOVY-9579:
------------------------------------

             Summary: TimedInterrupt config causes the scripting parsing to fail
                 Key: GROOVY-9579
                 URL: https://issues.apache.org/jira/browse/GROOVY-9579
             Project: Groovy
          Issue Type: Bug
          Components: Compiler
    Affects Versions: 3.0.4
         Environment: Mac, Windows
            Reporter: Mariusz Pala


When I try to configure timeout interrupt on CompileConfiguration, it throws exception when I try to execute any script. It fails when run locally, but it works fine on a server. 

 

 
{code:java}
CompilerConfiguration cc = new CompilerConfiguration();
Map<String, Object> timeoutArgs = ImmutableMap.of("value", 60);
ASTTransformationCustomizer customizer = new ASTTransformationCustomizer(timeoutArgs, TimedInterrupt.class);
cc.addCompilationCustomizers(customizer);
{code}
 
{code:java}
GroovyShell gs = new GroovyShell(ScriptExecutor.class.getClassLoader(), binding, cc);
Script scr = gs.parse(script);
scr.run();{code}
 

Error stack trace:
{code:java}
General error during semantic analysis: java.lang.IllegalAccessError: tried to access method org.codehaus.groovy.transform.AbstractASTTransformation.init([Lorg/codehaus/groovy/ast/ASTNode;Lorg/codehaus/groovy/control/SourceUnit;)V from class org.codehaus.groovy.transform.AbstractASTTransformation$initGeneral error during semantic analysis: java.lang.IllegalAccessError: tried to access method org.codehaus.groovy.transform.AbstractASTTransformation.init([Lorg/codehaus/groovy/ast/ASTNode;Lorg/codehaus/groovy/control/SourceUnit;)V from class org.codehaus.groovy.transform.AbstractASTTransformation$init
java.lang.RuntimeException: java.lang.IllegalAccessError: tried to access method org.codehaus.groovy.transform.AbstractASTTransformation.init([Lorg/codehaus/groovy/ast/ASTNode;Lorg/codehaus/groovy/control/SourceUnit;)V from class org.codehaus.groovy.transform.AbstractASTTransformation$init at org.codehaus.groovy.control.CompilationUnit$IPrimaryClassNodeOperation.doPhaseOperation(CompilationUnit.java:955) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:650) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:627) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:389) at groovy.lang.GroovyClassLoader.lambda$parseClass$3(GroovyClassLoader.java:332) at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163) at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:330) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:526) at groovy.lang.GroovyShell.parse(GroovyShell.java:538) at groovy.lang.GroovyShell.parse(GroovyShell.java:570) at groovy.lang.GroovyShell.parse(GroovyShell.java:565){code}
Any help with this appreciated. Thank you!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)