Im new to orientdb and I dont think i understand how to connect a java
client to the GratefulDeadConcerts database.
I have cloned orient from git so i should be using the latest code.
I have started orient server using the server.bat file
I can connect to the database just fine using the console.bat issuing the
following command: connect remote:localhost/GratefulDeadConcerts admin admin
But I am having problems using this code in java
OrientGraphFactory graphFactory = new
OrientGraphFactory("remote:localhost:2480/GratefulDeadConcerts","admin","admin").setupPool(1,
10);
graphFactory.getTx();
I get thist stacktrace:
Exception in thread "main" com.orientechnologies.common.io.OIOException:
Cannot connect to any configured remote nodes: 127.0.0.1:2480
at
com.orientechnologies.orient.client.remote.OStorageRemote.createNetworkConnection(OStorageRemote.java:1413)
at
com.orientechnologies.orient.client.remote.OStorageRemote.createConnectionPool(OStorageRemote.java:1678)
at
com.orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase(OStorageRemote.java:1244)
at
com.orientechnologies.orient.client.remote.OStorageRemote.open(OStorageRemote.java:174)
at
com.orientechnologies.orient.client.remote.OStorageRemoteThread.open(OStorageRemoteThread.java:64)
at
com.orientechnologies.orient.core.db.raw.ODatabaseRaw.open(ODatabaseRaw.java:88)
at
com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:47)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.open(ODatabaseRecordAbstract.java:108)
at
com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:47)
at
com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getDatabase(OrientGraphFactory.java:67)
at
com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.setupPool(OrientGraphFactory.java:82)
Any help is much appreciated
--
---
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/groups/opt_out.