In some rare cases, testing a Groovy script in a Groovy editor can lead to a java.lang.NoClassDefFoundError exception. Usually, restarting Jira fixes the issue.