It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
I'm getting the following error when trying to add a custom script listener.
Problem loading class: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /var/atlassian/application-data/jira/scripts/JDEMgrCritical.groovy: 47: Invalid duplicate class definition of class JDEMgrCritical : The sources /var/atlassian/application-data/jira/scripts/JDEMgrCritical.groovy and file:/var/atlassian/application-data/jira/scripts/JDEMgrCritical.groovy each contain a class with the name JDEMgrCritical. @ line 47, column 1. public class JDEMgrCritical extends AbstractIssueEventListener { ^ 1 error
It looks like the class JDEMgrCritical has been declared twice.
/var/atlassian/application-data/jira/scripts/JDEMgrCritical.groovy and file:/var/atlassian/application-data/jira/scripts/JDEMgrCritical.groovy are the same file and there is only one class declaration in it. I don't know why it's comparing the file on the file system to itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can I ask you from where are you running that file? is it from the Script Console?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you also post the code of JDEMgrCritical and share the version of Jira and Script Runner your instance is running?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It started as any story starts, on a normal, rainy day. Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.