Hi Zaraka, When you create the vertex in the completely different thread do you do this immediately after you create the new cluster? You had mentioned seeing it in OrientDB Studio, so it appears that the different thread executes much later.
How do you synchronize the threads so that the create vertex thread knows when the cluster has been created? How are you obtaining the OrientGraph object in each thread? Thanks, -Colin Orient Technologies The Company behind OrientDB On Thursday, April 16, 2015 at 4:34:52 PM UTC-5, Zaraka wrote: > > 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.
