How to grant permissions for jedis in 5.0.0-alpha5


(chenjinyuan87) #1

My plugin needs jedis.
But when constructing the connection pool, i was asked for the permission:
javax.management.MBeanServerPermission "createMBeanServer";
And after adding this permission, another permission called:
javax.management.MBeanPermission "org.apache.commons.pool2..." "registerMbean"
is required.

The problem is i cannot grant this permission. Because:
when i grant it like:
javax.management.MBeanPermission "org.apache.commons.pool2*" "registerMbean"
I get following error:
java.security.policy: error parsing file:/home/es/elasticsearch-5.0.0-alpha5/plugins/.installing-1345536864053395201/plugin-security.policy:
line 23: expected [;], found [*]

and if i write:
javax.management.MBeanPermission "org.apache.commons.pool2*";
The error becames:
java.security.policy: error adding Permission, javax.management.MBeanPermission:
java.lang.IllegalArgumentException: MBeanPermission: actions can't be null

So, i think the problem is: i need specify the action, but the parser cannot recognize the action?

My current elasticsearch version is 5.0.0-alpha5


(chenjinyuan87) #2

up..


(chenjinyuan87) #3

up again...
Anyone knows?


(system) #4