Sorry for long delay in answer.
What if you provide 0.0.0.0 instead of localhost will it work ?


On Wed, Feb 26, 2014 at 6:30 PM, Thom <temi...@gmail.com> wrote:

>
> If I remove port 2480 i get almost the same stacktrace only the port is
> now 2424
>
> Exception in thread "main" com.orientechnologies.common.io.OIOException:
> Cannot connect to any configured remote nodes: 127.0.0.1:2424
>
>     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)
>
>
> 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 orient-database+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

--- 
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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to