Hallo everybody,
today i wanted to try orientdb so i started with a very minimalistic
example but first i did the following:
1. I created a database using console >> create database
plocal:C:/Development/orientdb/databases/testdb root root plocal graph.
2. I logged into web interface (orientdb studio) to see if i can log in
into the new created database (it went fine).
Now i got to a point i couldnt understand. The database was created
successfully and i am able to log in
using the username root and the password root but when it comes to java i
cant log in. I use the following library:
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-graphdb</artifactId>
<version>1.6.5</version>
</dependency>
I tried this simple piece of code to connect to the database:
OrientGraph graph = null;
try {
graph = new
OrientGraph("plocal:C:/Development/orientdb/databases/testdb", "root",
"root");
System.out.println("success");
} catch(OException e) {
System.out.println("no success - " + e.getMessage());
e.printStackTrace();
} finally {
if(graph != null) {
graph.shutdown();
}
}
I get this Exception:
com.orientechnologies.orient.core.exception.OSecurityAccessException: User
or password not valid for database: 'testdb'
at
com.orientechnologies.orient.core.metadata.security.OSecurityShared.authenticate(OSecurityShared.java:150)
at
com.orientechnologies.orient.core.metadata.security.OSecurityProxy.authenticate(OSecurityProxy.java:83)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.open(ODatabaseRecordAbstract.java:137)
at
com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:53)
at
com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.openOrCreate(OrientBaseGraph.java:833)
at
com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:88)
at
com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.<init>(OrientTransactionalGraph.java:35)
at
com.tinkerpop.blueprints.impls.orient.OrientGraph.<init>(OrientGraph.java:33)
at de.hof.iisys.relationExtraction.freebase.main.Main.main(Main.java:43)
I think this java code should work so maybe there is an issue with the
configuration or i forgot to configure something.
How can i get my connection working.
--
---
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.