All,

Just learning about OrientDB. I've searched for Java code examples, and 
have built the following simple example:

        ODatabaseDocumentTx db = new 
ODatabaseDocumentTx("local:/home/user/orientdb-community-1.7-rc2/databases/test");
        if( !db.exists()) {
            db.create();
        }
        else {
            db.open("admin", "admin");
        }
        ODocument doc = db.newInstance();
        doc.field("name", "Firstname");
        doc.field("surname", "Lastname");
        doc.save();
        db.close();

But, I keep getting the following error when I create the Database

java.lang.AbstractMethodError: 
com.orientechnologies.orient.core.index.ODefaultIndexFactory.createIndex(Lcom/orientechnologies/orient/core/db/record/ODatabaseRecord;Ljava/lang/String;)Lcom/orientechnologies/orient/core/index/OIndexInternal;
at 
com.orientechnologies.orient.core.index.OIndexes.createIndex(OIndexes.java:120)
at 
com.orientechnologies.orient.core.index.OIndexManagerShared.createIndex(OIndexManagerShared.java:89)
at 
com.orientechnologies.orient.core.index.OIndexManagerAbstract.create(OIndexManagerAbstract.java:159)
at 
com.orientechnologies.orient.core.index.OIndexManagerProxy.create(OIndexManagerProxy.java:47)
at 
com.orientechnologies.orient.core.metadata.OMetadata.create(OMetadata.java:83)
at 
com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.create(ODatabaseRecordAbstract.java:195)
at 
com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.create(ODatabaseWrapperAbstract.java:55)
at 
com.orientechnologies.orient.core.db.ODatabaseRecordWrapperAbstract.create(ODatabaseRecordWrapperAbstract.java:58)

Any insight into what I may be doing wrong would really be helpful.

Thanks,
Matthew

-- 

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