com.orientechnologies.orient.core.metadata.schema.OClassEmbedded cannot be cast to class com.orientechnologies.orient.server.distributed.impl.metadata.OClassDistributed
OrientDB Version: 3.0.27
Java Version: 11
OS: 3.10.0-1127.18.2.el7.x86_64
Expected behavior
vertex.save() saves the vertex correctly.
Actual behavior
java.lang.ClassCastException: class com.orientechnologies.orient.core.metadata.schema.OClassEmbedded cannot be cast to class com.orientechnologies.orient.server.distributed.impl.metadata.OClassDistributed (com.orientechnologies.orient.core.metadata.schema.OClassEmbedded and com.orientechnologies.orient.server.distributed.impl.metadata.OClassDistributed are in unnamed module of loader 'app')
Steps to reproduce
Only occurs after a while if the server is running for days in distributed mode. If it occurs then for every .save() operation, no matter which vertex.
I also encountered it. Is there a solution?
Hi,
I would definitely suggest you to update to the last recent version, there are ~4 years of changes from that and the last hotfix, if you can't get on the last 3.2.x( even though it should be possible without many issues) at least try to upgrade to the last 3.0.44
In any case feel free to share the whole stack trace of the problem, we will double check it