Groovy script throws java.lang.NoClassDefFoundError: groovy/lang/Reference #16657
Labels
:Core/Infra/Scripting
Scripting abstractions, Painless, and Mustache
>enhancement
good first issue
low hanging fruit
Elasticsearch 2.2.0.
Combination of
def
keyword and closure gives the exception.This gives java.lang.NoClassDefFoundError: groovy/lang/Reference:
This is fine:
Adding
permission org.elasticsearch.script.ClassPermission "groovy.lang.Reference"
inmodules/lang-groovy/plugin-security.policy
seems to fix the issue.The text was updated successfully, but these errors were encountered: