Hi there,
I'm trying to create DB
String url = "plocal:testdb";
String user = "root";
String pass = "root";
OrientGraphFactory graphFactory = new OrientGraphFactory(url, user, pass).
setupPool(5, 1000);
Setting DB up
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();
}
BTW, should I call shutdown() on NoTx? I did both ways, the result is the
same, but just curious.
After, that when I try calling
graphFactory.getTx();
I'm getting exception
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)
>
>
I'm calling graphFactory.getTx(); in different threads, simultaneously, if
it matters.
If I get rid of user/pass parameters in OrientGraphFactory constructor, it
works fine.
So the question is, is this expected behaviour? Am I doing something wrong?
Thanks!
-Andrey
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.