It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

ScriptRunner, ConfigSlurper and ConfigObject

Executing the following snippet leads to the following exception:



import groovy.util.ConfigSlurper
import groovy.util.ConfigObject

String s = ""

ConfigSlurper cs = new ConfigSlurper()
ConfigObject a = cs.parse(s)

 

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Could not instantiate global transform class groovy.grape.GrabAnnotationTransformation specified at bundle://172.0:2/META-INF/services/org.codehaus.groovy.transform.ASTTransformation because of exception java.lang.ClassNotFoundException: groovy.grape.GrabAnnotationTransformation Could not instantiate global transform class org.codehaus.groovy.ast.builder.AstBuilderTransformation specified at bundle://172.0:2/META-INF/services/org.codehaus.groovy.transform.ASTTransformation because of exception java.lang.ClassNotFoundException: org.codehaus.groovy.ast.builder.AstBuilderTransformation Could not instantiate global transform class org.spockframework.compiler.SpockTransform specified at bundle://172.0:5/META-INF/services/org.codehaus.groovy.transform.ASTTransformation because of exception java.lang.ClassNotFoundException: org.spockframework.compiler.SpockTransform 3 errors 

I tried this using a real Jira instance with SR 5.5.9. and a local instance from the scriptrunner-samples with version 5.6.1. Can anyone tell me why this fails?

 

1 answer

0 votes

Hi @Max Berger 

What are you trying to do? If you can share some details then it will be a bit easier.

Ravi

Thanks for the reply! I solved the problem on my own without the use of ConfigSlurper, but I think it is important to note that ConfigSlurper seems generally broken with ScriptRunner.

Like Ravi Sagar -Adaptavist- likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

303 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you