You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: