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

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

    [ https://issues.apache.org/jira/browse/GROOVY-9579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17119481#comment-17119481 ] 

Paul King edited comment on GROOVY-9579 at 5/29/20, 10:47 AM:
--------------------------------------------------------------

Can you clarify what JVM versions you are using locally and on the server? This is similar to another bug we are looking at where JDK8 has such failures but seems to be some kind of classloader issue.


was (Author: paulk):
Can you clarify what JVM versions you are using locally and on the server? This looks like another bug we are looking at where JDK8 has such failures.

> 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
>            Priority: Major
>
> 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)