Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open database (The record with id '-1:-1' was not found) [moved] #201

Closed
lvca opened this issue Dec 10, 2012 · 0 comments
Closed

Comments

@lvca
Copy link
Member

lvca commented Dec 10, 2012

This is Issue 201 moved from a Google Code project.
Added by 2011-01-17T15:04:20.000Z by yanickdu...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, v0.9.25

Original description

Hi,

I am new to OrientDb and I seem to have an issue persisting a POJO. I'm sure the "bug" is somewhat related to my newbie status. Here's my code (I am mimicking the snippet found here: http://code.google.com/p/orient/wiki/ObjectDatabase#Introduction):

    public static void main(String[] args) {
    ODatabaseObjectTx db = new ODatabaseObjectTx("memory:people");
    db.open("admin", "admin");

    db.getEntityManager().registerEntityClass(Person.class);

    Person p = new Person();
    p.setFirstName("Charlie");
    p.setLastName("Brown");

    db.save(p);

    db.close();

    }

I have the following stack trace:

Exception in thread "main" com.orientechnologies.orient.core.exception.ODatabaseException: Can't open database
    at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.open(ODatabaseRecordAbstract.java:123)
    at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:44)
    at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:44)
    at org.orient.test.Main.main(Main.java:10)
Caused by: com.orientechnologies.orient.core.exception.ORecordNotFoundException: The record with id '-1:-1' was not found
    at com.orientechnologies.orient.core.record.impl.ODocument.load(ODocument.java:269)
    at com.orientechnologies.orient.core.type.ODocumentWrapper.load(ODocumentWrapper.java:59)
    at com.orientechnologies.orient.core.type.ODocumentWrapperNoClass.load(ODocumentWrapperNoClass.java:44)
    at com.orientechnologies.orient.core.metadata.schema.OSchema.load(OSchema.java:217)
    at com.orientechnologies.orient.core.metadata.OMetadata.loadSchema(OMetadata.java:82)
    at com.orientechnologies.orient.core.metadata.OMetadata.load(OMetadata.java:46)
    at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.open(ODatabaseRecordAbstract.java:100)
    ... 3 more


I am not sure what the record -1:-1 is about...
@lvca lvca closed this as completed Dec 10, 2012
tglman added a commit that referenced this issue Oct 10, 2024
…pache.maven.plugins-maven-failsafe-plugin-3.5.0

chore(deps): bump org.apache.maven.plugins:maven-failsafe-plugin from 3.4.0 to 3.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant