I am developing elasticseach 2.2 plugin now. The plugin required file access, therefore I have added "plugin-security.policy" as following:
grant {
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
}
I have successfully developed and delopyed to the elastic server. Now I want to do the debugging in Eclipse. I have followed the link https://discuss.elastic.co/t/debug-es-2-0-plugin-in-eclipse/34911 to do the setup.
The plugin descriptor and policy have been copied to the es_path properly, however, I am getting the
"java.security.AccessControlException: access denied ("java.lang.reflect.ReflectPermission" "suppressAccessChecks")"
issue when the debugging start.
It seems that Elastic can't look up the policy file under this setup. Anybody get it works?