Hi Thom, 2480 is for http connections, so 2424 is correct one. It's a mistake in documentation.
Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-03-03 13:44 GMT+02:00 Thom <[email protected]>: > Hi Andrey thanks for looking into this! > > I have played around with it some more and it now seems to work if i use > remote:localhost:2424. using remote:0.0.0.0:2424 works as well. > Not sure why but i can't reproduce the second exception I was getting > above! > > Using Port 2480 doesnt work. Maybe the port mentioned in the documentation > for the remote database url should be changed > > https://github.com/orientechnologies/orientdb/wiki/Concepts#wiki-database-url > > > > On Wednesday, February 26, 2014 3:05:15 PM UTC+1, Thom wrote: > >> >> 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. > -- --- 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.
