Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Caused by: java.lang.NoClassDefFoundError: com.atlassian.greenhopper.manager.GreenHopperCache

Sema YILDIRIM
Contributor
August 3, 2020

what should I do?

Caused by: java.lang.NoClassDefFoundError: com.atlassian.greenhopper.manager.GreenHopperCache
at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveClass(AsmReferenceResolver.java:46)
at org.codehaus.groovy.ast.decompiled.ClassSignatureParser.configureClass(ClassSignatureParser.java:42)
at org.codehaus.groovy.ast.decompiled.DecompiledClassNode.lazyInitSupers(DecompiledClassNode.java:183)
at org.codehaus.groovy.ast.decompiled.DecompiledClassNode.getGenericsTypes(DecompiledClassNode.java:80)
at org.codehaus.groovy.control.GenericsVisitor.checkGenericsUsage(GenericsVisitor.java:131)
at org.codehaus.groovy.control.GenericsVisitor.visitDeclarationExpression(GenericsVisitor.java:104)
at org.codehaus.groovy.ast.expr.DeclarationExpression.visit(DeclarationExpression.java:89)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitExpressionStatement(CodeVisitorSupport.java:120)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitExpressionStatement(ClassCodeVisitorSupport.java:197)
at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:40)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:86)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:106)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:110)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:121)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:132)
at org.codehaus.groovy.control.GenericsVisitor.visitMethod(GenericsVisitor.java:91)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1103)
at org.codehaus.groovy.control.GenericsVisitor.visitClass(GenericsVisitor.java:65)
at org.codehaus.groovy.control.CompilationUnit$4.call(CompilationUnit.java:228)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1084)
... 379 more

2 answers

1 vote
Slava Dobromyslov
Contributor
August 26, 2024

I see that you use Adaptavist ScriptRunner and you imported the not-found class from the Jira Agile plugin.

When you require some class from a plugin you MUST use the special ScriptRunner annotation:

// For multiple used plugins
@WithPlugin
([
'com.pyxis.greenhopper.jira',
]
)

// Or simple for one used plugin
@WithPlugin('com.pyxis.greenhopper.jira')

You may find more details about this in the official ScriptRunner documentation:  https://docs.adaptavist.com/sr4js/latest/integrations/other-apps

 

Also if you need services from Jira Agile you may use @JiraAgileBean annotation as described here: https://docs.adaptavist.com/sr4js/latest/integrations/other-apps/jira-agile

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2020

When are you getting this error or what is triggering it?

Sema YILDIRIM
Contributor
August 6, 2020

i have a different problem? But I don't know what triggered it. When I say "log analyzer" I get

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events