orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

com.orientechnologies.orient.core.metadata.schema.OClassEmbedded cannot be cast to class com.orientechnologies.orient.server.distributed.impl.metadata.OClassDistributed

Open jonsalvas opened this issue 5 years ago • 2 comments

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.

jonsalvas avatar Jan 13 '21 10:01 jonsalvas

I also encountered it. Is there a solution?

a-drop-of-tears avatar Mar 12 '24 02:03 a-drop-of-tears

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

tglman avatar Mar 18 '24 22:03 tglman