Hello guys,
I'm having this problem happening multiple times (being logged a lot of time and making the Baasbox instance to shutdown at some point).
Basically what I can see in the logs is that is throwing an exception because it can't cast the field @version from Java Integer to the OIdentifiable of OrientDB (my plugin code doesn't change @version at any point, never, and from what I understand, Integer is the correct type for that attribute).
Here are some relevant parts of the stack trace:
2016-12-07 02:42:08,346 - ERROR - com.orientechnologies: play-akka.actor.default-dispatcher-148 Fetching error on record #25:136
java.lang.ClassCastException: java.lang.Integer cannot be cast to com.orientechnologies.orient.core.db.record.OIdentifiable
at com.orientechnologies.orient.core.db.record.ORecordLazyMap.put(ORecordLazyMap.java:37) ~[com.orientechnologies.orientdb-core-1.7.10.jar:1.7.10]
at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerCSVAbstract.embeddedMapFromStream(ORecordSerializerCSVAbstract.java:315) ~[com.orientechnologies.orientdb-core-1.7.10.jar:1.7.10]
com.orientechnologies.orient.core.exception.OSerializationException: Cannot load map because the type was not the expected: key=@version(type class java.lang.String), value=1(type class java.lang.String)
at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerCSVAbstract.embeddedMapFromStream(ORecordSerializerCSVAbstract.java:318) ~[com.orientechnologies.orientdb-core-1.7.10.jar:1.7.10]
at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerCSVAbstract.fieldFromStream(ORecordSerializerCSVAbstract.java:211) ~[com.orientechnologies.orientdb-core-1.7.10.jar:1.7.10]
at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV.fromString(ORecordSerializerSchemaAware2CSV.java:240) ~[com.orientechnologies.orientdb-core-1.7.10.jar:1.7.10]
com.orientechnologies.orient.core.exception.OSerializationException: Error on unmarshalling field 'methodologyModelVersion' in record #25:136 with value: methodologyModelVersion:{"@rid":#54:1,"@version":1,"@class":"methodology_model_version","add":{"disciplines":[],"practices":[],"questions":[]},"remove":{"disciplines":[],"practices":[],"questions":[]},"created":1475852427016l,"version_number":0,"bb_methodology_model":#33:1,"id":"3650e745-c444-45e2-96cb-57e4b32a69fe","_creation_date":"2016-10-07T15:00:27.027+0000","_author":"admin","objectId":"3650e745-c444-45e2-96cb-57e4b32a69fe"}
Baasbox version: V. 1.0.0-M3-20151004-nightly
Reading a bit this seems to be a known bug in OrientDB but I just want to make sure that this is the case, do you guys have any idea of this one? a possible workaround in the meantime? I would really appreciate the help here.
Thanks in advance.