I am using titan-0.5.3 with hbase 0.98-hadoop2
my codes:
for (Object o : graph.getVertices()) {
TitanVertex tv = (TitanVertex) o;
TitanTools.getAllStringValue(tv);
}
Exception in thread "main" java.lang.IllegalStateException: Operation cannot be executed because the enclosing transaction is closed
at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.verifyOpen(StandardTitanTx.java:282)
at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.getVertex(StandardTitanTx.java:367)
at com.thinkaurelius.titan.graphdb.vertices.AbstractVertex.it(AbstractVertex.java:40)
at com.thinkaurelius.titan.graphdb.relations.CacheProperty.<init>(CacheProperty.java:26)
at com.thinkaurelius.titan.graphdb.transaction.RelationConstructor.readRelation(RelationConstructor.java:79)
at com.thinkaurelius.titan.graphdb.transaction.RelationConstructor.readRelation(RelationConstructor.java:62)
at com.thinkaurelius.titan.graphdb.transaction.RelationConstructor$1$1.next(RelationConstructor.java:46)
at com.thinkaurelius.titan.graphdb.transaction.RelationConstructor$1$1.next(RelationConstructor.java:34)
public static Set<String> getAllStringValue(TitanVertex tv){
Set<String> set=new HashSet<>(3);
for(TitanProperty tp:tv.getProperties("key")){
set.add((String)tp.getValue());
}
return set;
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/95d6a0ba-69ea-446c-9717-bd5ab25cf926%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.