# Elasticsearch can't lookup policy file while debugging in eclipse

**URL:** <https://discuss.elastic.co/t/elasticsearch-cant-lookup-policy-file-while-debugging-in-eclipse/49744>\
**Category:** Elasticsearch\
**Created:** [May 11, 2016, 9:15am UTC](https://discuss.elastic.co/t/elasticsearch-cant-lookup-policy-file-while-debugging-in-eclipse/49744 "2016-05-11T09:15:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![javajpn](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@javajpn](https://discuss.elastic.co/u/javajpn)\
**Post date:** [May 11, 2016, 9:15am UTC](https://discuss.elastic.co/t/elasticsearch-cant-lookup-policy-file-while-debugging-in-eclipse/49744/1 "2016-05-11T09:15:37Z")

</div>

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](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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:52pm UTC](https://discuss.elastic.co/t/elasticsearch-cant-lookup-policy-file-while-debugging-in-eclipse/49744/2 "2017-07-05T22:52:33Z")

</div>


