cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Deepanshu.Grover
AppDynamics Team (Retired)

How do I resolve this error: "ERROR: java.security.AccessControlException: access denied while starting events service"

 

Events Service stack trace error during start-up

While starting, the Events Service fails to start up due to following stack trace error:

[ERROR]  [ProcessQueue0]  [c.a.a.p.e.e.ElasticSearchExecutor]  This message was throttled 
[1] times: java.security.AccessControlException: access denied (
"java.lang.RuntimePermission" "getClassLoader")
[ERROR]  [ProcessQueue0]  [c.a.a.p.e.e.ElasticSearchExecutor]  
java.security.AccessControlException: 
access denied ("java.lang.RuntimePermission" 
"getClassLoader")
[ERROR]  [ProcessQueue0]  [c.a.a.p.e.e.ElasticSearchExecutor]      at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
[ERROR]  [ProcessQueue0]  [c.a.a.p.e.e.ElasticSearchExecutor]

 

Solution

To resolve this issue, the classloader permit-list can be customized by tweaking the local Java Security Policy. This can be done in one of the following ways:

  • system-wide: $JAVA_HOME/lib/security/java.policy

  • for just the elasticsearch user: /home/elasticsearch/.java.policy

  • from a file specified in the JAVA_OPTS environment variable with -Djava.security.policy=someURL:

    export JAVA_OPTS="${JAVA_OPTS} -Djava.security.policy=file:///path/to/my.policy`
    ./bin/elasticsearch 

 

Once this is complete, the error should be resolved.

 

Reference

https://www.elastic.co/guide/en/elasticsearch/reference/2.2/modules-scripting-security.html

Version history
Last update:
‎07-08-2020 03:13 PM
Updated by:
On-Demand Webinar
Discover new Splunk integrations and AI innovations for Cisco AppDynamics.


Register Now!

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here