Is it possible to start the OrientDb server without using reflection? -
i'm running orientdb 2.2.6 in embedded mode. have grant security permissions code securitymanager allows run. 1 permission particularly prefer not grant ("java.lang.reflect.reflectpermission" "suppressaccesschecks"). instead of granting permissions, rather start server without requiring reflection. there way start orientdb server in embedded mode without reflection?
here configuration:
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <orient-server> <network> <protocols> <protocol implementation="com.orientechnologies.orient.server.network.protocol.binary.onetworkprotocolbinary" name="binary"/> </protocols> <listeners> <listener protocol="binary" socket="default" port-range="2424-2430" ip-address="0.0.0.0"/> </listeners> </network> <users> <user resources="*" password="root" name="root"/> <user resources="connect,server.listdatabases,server.dblist" password="guest" name="guest"/> </users> <properties> <entry value="1" name="db.pool.min"/> <entry value="50" name="db.pool.max"/> <entry value="true" name="profiler.enabled"/> </properties> </orient-server>
the code i'm using taken orientdb documentation. 3 lines:
server = oservermain.create(); // orientserverconfigfile file object configuration given above server.startup(orientserverconfigfile.getinputstream()); server.activate();
the relevant stack trace below:
2016-09-12 15:41:55:557 fine access denied permission failed: ("java.lang.reflect.reflectpermission" "suppressaccesschecks") protectiondomain failed: file:/*/modules/orientsystemdb-se.jar stack trace causing failure: java.lang.securitymanager.checkpermission(securitymanager.java:549) java.lang.reflect.accessibleobject.setaccessible(accessibleobject.java:128) com.orientechnologies.common.util.omemory.getphysicalmemorysize(omemory.java:65) com.orientechnologies.orient.core.engine.omemoryandlocalpaginatedenginesinitializer.configuredefaultdiskcachesize(omemoryandlocalpaginatedenginesinitiali com.orientechnologies.orient.core.engine.omemoryandlocalpaginatedenginesinitializer.configuredefaults(omemoryandlocalpaginatedenginesinitializer.java:63) com.orientechnologies.orient.core.engine.omemoryandlocalpaginatedenginesinitializer.initialize(omemoryandlocalpaginatedenginesinitializer.java:52) com.orientechnologies.orient.core.engine.local.oenginelocalpaginated.startup(oenginelocalpaginated.java:56) com.orientechnologies.orient.core.orient.startengine(orient.java:872) com.orientechnologies.orient.core.orient.loadstorage(orient.java:480) com.orientechnologies.orient.core.db.document.odatabasedocumenttx.<init>(odatabasedocumenttx.java:167) com.orientechnologies.orient.core.db.document.odatabasedocumenttx.<init>(odatabasedocumenttx.java:148) com.orientechnologies.orient.server.osystemdatabase.init(osystemdatabase.java:151) com.orientechnologies.orient.server.osystemdatabase.<init>(osystemdatabase.java:44) com.orientechnologies.orient.server.oserver.initsystemdatabase(oserver.java:1227) com.orientechnologies.orient.server.oserver.activate(oserver.java:342)
Comments
Post a Comment