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 84 moved from a Google Code project.
Added by 2010-07-29T19:49:17.000Z by mkamalo...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Done).
Original labels: Type-Defect, Priority-Medium
Original description
<b>What steps will reproduce the problem?</b>
1. I run code from tutorial but changed transaction type
ODatabaseDocumentTx db = new ODatabaseDocumentTx(
"local:c:/orient_test/orient_test").open("admin", "admin");
db.begin(TXTYPE.OPTIMISTIC);
// CREATE A NEW DOCUMENTS AND FILL IT
ODocument doc = new ODocument(db, "Person");
doc.field("name", "Luke");
doc.field("surname", "Skywalker");
doc.field("city", new ODocument(db, "City").field("name", "Rome")
.field("country", "Italy"));
// SAVE THE DOCUMENT
doc.save();
db.commit(); // Exception on this line
db.close();
I have exception:
Exception in thread "main" java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
at java.util.HashMap$ValueIterator.next(Unknown Source)
at com.orientechnologies.orient.core.storage.impl.local.OStorageLocalTxExecuter.commitAllPendingRecords(OStorageLocalTxExecuter.java:130)
at com.orientechnologies.orient.core.storage.impl.local.OStorageLocal.commit(OStorageLocal.java:612)
at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.executeCommit(ODatabaseRecordTx.java:102)
at com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:34)
at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:65)
at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:1)
at com.orientechnologies.orient.core.db.ODatabaseRecordWrapperAbstract.commit(ODatabaseRecordWrapperAbstract.java:52)
at ru.mkamalov.orienttest.Start.main(Start.java:26)
The text was updated successfully, but these errors were encountered:
This is Issue 84 moved from a Google Code project.
Added by 2010-07-29T19:49:17.000Z by mkamalo...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Done).
Original labels: Type-Defect, Priority-Medium
Original description
The text was updated successfully, but these errors were encountered: