Ok, let's see. I have checked out revision 3053 from svn. I build it on my own with maven and copied core and commons jars to my test project. The test project loads CompilationUnit objects from a CouchDB and puts it right into a local OrientDB using ODatabaseObjectTx. Source of that CompilationUnit class can be found here:
http://git.eclipse.org/c/recommenders/org.eclipse.recommenders.git/tree/org.eclipse.recommenders.commons.analysis/src/org/eclipse/recommenders/internal/commons/analysis/codeelements/CompilationUnit.javaI have a schema definition for property id to be able to create an index of type unique. I run Windows 7 64Bit and the program gets executed by
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
The exception is not thrown on the same insertion each run so i guess it's hard to reproduce.
I found another exception logged as warning (program keeps running after that one):
java.lang.IndexOutOfBoundsException: Requested index 0 when the range is 0-0
at com.orientechnologies.common.collection.OMVRBTreeEntry.getKey(OMVRBTreeEntry.java:165)
at com.orientechnologies.common.collection.OMVRBTreeEntry.getFirstKey(OMVRBTreeEntry.java:393)
at com.orientechnologies.orient.core.type.tree.OMVRBTreePersistent.optimize(OMVRBTreePersistent.java:287)
at com.orientechnologies.orient.core.type.tree.OMVRBTreeDatabaseLazySave.optimize(OMVRBTreeDatabaseLazySave.java:71)
at com.orientechnologies.orient.core.index.OIndexMVRBTreeAbstract$1.optimize(OIndexMVRBTreeAbstract.java:121)
at com.orientechnologies.orient.core.index.OIndexMVRBTreeAbstract$1.memoryUsageLow(OIndexMVRBTreeAbstract.java:87)
at com.orientechnologies.orient.core.OMemoryWatchDog$1.handleNotification(OMemoryWatchDog.java:89)
at sun.management.NotificationEmitterSupport.sendNotification(Unknown Source)
at sun.management.MemoryImpl.createNotification(Unknown Source)
at sun.management.MemoryPoolImpl$PoolSensor.triggerAction(Unknown Source)
at sun.management.Sensor.trigger(Unknown Source)