Hi, 

I am very new to OrientDB and I am facing the same problem as Thom was 
facing, the only difference that I am getting the same stack trace while 
executing the following line..

TransactionalGraph graph3 = (TransactionalGraph)new 
OrientGraph("remote:localhost:2424/db2", "admin", "admin");

Maven dependencies are as follows:

<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-client</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orient-commons</artifactId>
<version>1.3.0</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-enterprise</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-core</artifactId>
<version>1.3.0</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>com.tinkerpop.blueprints</groupId>
<artifactId>blueprints-core</artifactId>
<version>2.4.0</version>
</dependency>

<dependency>
<groupId>com.tinkerpop.blueprints</groupId>
<artifactId>blueprints-orient-graph</artifactId>
<version>2.4.0</version>
</dependency>

Your kind help is highly appreciated.

Best regards,
Bikram

On Wednesday, February 26, 2014 7:35:15 PM UTC+5:30, 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/d/optout.

Reply via email to