HI All,

I've been going along merrily writing a Java app with the V1.7-snapshot:

      <dependency>
          <groupId>com.orientechnologies</groupId>
          <artifactId>orient-commons</artifactId>
          <version>1.7-SNAPSHOT</version>
          <type>bundle</type>
      </dependency>
      
      <dependency>
          <groupId>com.orientechnologies</groupId>
          <artifactId>orientdb-core</artifactId>
          <version>1.7-SNAPSHOT</version>
          <type>bundle</type>
      </dependency>
      
      <dependency>
          <groupId>com.orientechnologies</groupId>
          <artifactId>orientdb-graphdb</artifactId>
          <version>1.7-SNAPSHOT</version>
         <type>jar</type>
      </dependency>
          
      <!-- FOR CONNECTING TO THE SERVER THROUGH THE REMOTE ENGINE -->
      <dependency>
          <groupId>com.orientechnologies</groupId>
          <artifactId>orientdb-client</artifactId>
          <version>1.7-SNAPSHOT</version>
          <type>bundle</type>
      </dependency>
      
      <!-- INCLUDE THIS IF YOU'RE USING THE TINKERPOP'S BLUEPRINTS API -->
      <dependency>
          <groupId>com.orientechnologies</groupId>
          <artifactId>orientdb-blueprints</artifactId>
          <version>2.1.0-SNAPSHOT</version>
          <type>bundle</type>
      </dependency>

The graph is created by the Java application OK and for the most part seems 
to be working as a "local" database using the following code:

*      factory = new 
OrientGraphFactory("plocal:./testGraph").setupPool(1,10);*

But, I was having some issues and wanted to take a closer look.

So, I've loaded up the Gremlin console (V 2.4.0) and when I open it up with:
*       g = new OrientGraph("local:./testGraph");*
or
   *    g = new OrientGraph("plocal:./testGraph");*

I can't see any Vertices or Edges.

What's worse is that if I "shutdown" and exit gremlin, the next time I try 
to open the graph with the Java code I get:

com.orientechnologies.orient.core.exception.OStorageException: Cannot open 
local storage 'testGraph' with mode=rw
    at 
com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.open(OLocalPaginatedStorage.java:204)
    at 
com.orientechnologies.orient.core.db.raw.ODatabaseRaw.open(ODatabaseRaw.java:101)
    at 
com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:54)
    at 
com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.open(ODatabaseRecordAbstract.java:268)
    at 
com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:54)
    at 
com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getDatabase(OrientGraphFactory.java:141)
    at 
com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getDatabase(OrientGraphFactory.java:118)
    at 
com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getTx(OrientGraphFactory.java:88)

I am running on OS X and in Terminal can see the permissions - which all 
look OK.
Is there a file permission I should be looking at or is there a lock of 
some sort that needs cleaning up.
Ideally, I'd like to use both at the same time during testing.

I do have an Orientdb server configured and running but this is early 
testing - some unit testing in fact - so I was trying to keep it as "local".

Also, I get the following error from Gremlin if I do try to connect to the 
server:

gremlin> g = new OrientGraph("remote:localhost/testGraph"); 
Error on opening database: the engine 'remote' was not found. URL was: 
remote:localhost/testGraph. Registered engines are: [plocal, local, memory]


Sorry for lumping the two questions - about Gremlin - into the same post.

-Anthony

-- 

--- 
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