String url = "plocal:testdb";
String user = "root";
String pass = "root";
OrientGraphFactory graphFactory = new OrientGraphFactory(url, user, pass).setupPool(5, 1000);
OrientGraphNoTx graph = graphFactory.getNoTx();
try { OrientVertexType vType = graph.createVertexType("TestNode"); vType.createProperty("uuid", OType.STRING); vType.createIndex("TestNode.index", OClass.INDEX_TYPE.UNIQUE, "uuid");
graph.createEdgeType("CONNECT");}finally { graph.shutdown();}graphFactory.getTx();Exception in thread "pool-2-thread-10" com.orientechnologies.orient.core.exception.OSecurityAccessException: User or password not valid for database: 'testdb'at com.orientechnologies.orient.core.db.OPartitionedDatabasePool.acquire(OPartitionedDatabasePool.java:302)at com.orientechnologies.orient.core.metadata.security.OSecurityShared.authenticate(OSecurityShared.java:171)at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:153)at com.orientechnologies.orient.core.metadata.security.OSecurityProxy.authenticate(OSecurityProxy.java:87)at com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.<init>(OrientTransactionalGraph.java:78)at com.tinkerpop.blueprints.impls.orient.OrientGraph.<init>(OrientGraph.java:128)at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:260)at com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getTx(OrientGraphFactory.java:74)at com.orientechnologies.orient.core.db.OPartitionedDatabasePool$DatabaseDocumentTxPolled.internalOpen(OPartitionedDatabasePool.java:135)at com.orientechnologies.orient.core.db.OPartitionedDatabasePool.openDatabase(OPartitionedDatabasePool.java:329)at com.ibm.qradar.forensics.indexer.ConnectionPoolTest$TestConnection.getConnection(ConnectionPoolTest.java:134)at com.orientechnologies.orient.core.db.OPartitionedDatabasePool.acquire(OPartitionedDatabasePool.java:302)at com.ibm.qradar.forensics.indexer.ConnectionPoolTest$1.run(ConnectionPoolTest.java:67)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)at java.lang.Thread.run(Thread.java:781)at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:153)at com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.<init>(OrientTransactionalGraph.java:78)
Orient Technologies
The Company behind OrientDB
--
---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/-jtxyg5DIC4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.