Hello,

I'm using orientdb-community-2.0.6 graph mode

My problem:
1) At one place in code a create a new cluster by command
ALTER CLASS X ADDCLUSTER X_CLUSTER
2) I see new cluster in OrientDB Studio
3) Then I try to create a vertex in that cluster (in completely different 
thread)
 OrientVertex vertex = graph.addVertex(X,X_CLUSTER);
But I got
SEVERE: java.lang.IllegalArgumentException: Cluster name 'X_CLUSTER' 
(id=26) is not configured to store the class 'X', valid are [11, 20]
    at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:2266)
    at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:118)
    at 
com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1706)
    at 
com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1702)
    at 
com.tinkerpop.blueprints.impls.orient.OrientElement.save(OrientElement.java:303)
    at 
com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.addVertex(OrientBaseGraph.java:617)

When I restart my program and try it second time it works.

Kindly please, what did I messed up?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to