Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error message when using groovy script

CAMPAGNOLE Philippe April 10, 2021

Hello,

We have a problem when we try to delete an array via a groovy script on a page in confluence.

It works very well in production with confluence 7.4.3.

But in test environment with confluence 7.4.6, we have an error message on the page, on the screen.

I put here the beginning of the error message :

groovy: Error parsing script

Error information
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during instruction selection: java.lang.NoClassDefFoundError: com.atlassian.confluence.content.Content

java.lang.RuntimeException: java.lang.NoClassDefFoundError: com.atlassian.confluence.content.Content
at org.codehaus.groovy.control.CompilationUnit$IPrimaryClassNodeOperation.doPhaseOperation(CompilationUnit.java:976)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:671)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:635)
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)

 

I am looking forward from your reply.

Best regards.

Philippe Campagnole

 

1 answer

0 votes
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 11, 2021

Hi @CAMPAGNOLE Philippe ,

welcome to the Atlassian community!

Would you please share the groovy script here? What kind of array are you trying to delete?

Thank you.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events