Re: [TinkerPop] Vertex.getVertices() not working in 1.4.0

92 views
Skip to first unread message

Luca Garulli

unread,
May 24, 2013, 5:28:52 AM5/24/13
to gremlin-users
Hi,
have you exported/re-imported the database? If not you've to set the "classic" mode first:

currentGraph.setUseLightweightEdges(false);
currentGraph.setUseClassForEdgeLabel(false);
currentGraph.setUseClassForVertexLabel(false);
currentGraph.setUseVertexFieldsForEdgeLabels(false);


Lvc@


On 24 May 2013 11:02, deepa ganu <deep...@gmail.com> wrote:
Hi, 
I was earlier using OrientDB 1.3.0 and executing the method 
v.getVertices(Direction.IN, "GEO"), which gave me the adjacent vertex connected to v. I have upgrapded the db to 1.4.0 the same code does not seem to work and now it is returning an empty iterator ?
What could be the problem ?
deeps

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

deepa ganu

unread,
May 24, 2013, 5:41:58 AM5/24/13
to gremli...@googlegroups.com

Hi , 
The above mentioned methods by you do not exists in com.tinkerpop.blueprints.Graph. And I am pointing to a new DB altogether .
Deepa

deepa ganu

unread,
May 24, 2013, 5:42:27 AM5/24/13
to gremli...@googlegroups.com
Hi , 
The above mentioned methods by you do not exists in com.tinkerpop.blueprints.Graph. And I am pointing to a new DB altogether .
Deepa

Luca Garulli

unread,
May 24, 2013, 7:47:32 AM5/24/13
to gremlin-users
Are OrientDB Only, so:

OrientGraph currentGraph = new OrientGraph("local:/tmp/db");

Lvc@

deepa ganu

unread,
May 24, 2013, 9:59:48 AM5/24/13
to gremli...@googlegroups.com
Hi Luca , 
I have downloaded the latest version of OrientDB 1.4.0 snapshot which uses bp 2.4.0
but when I try to connect 
static OrientGraph graph = new OrientGraph("remote:localhost/tinkerpop","admin","admin");
I am getting and error 
java.lang.NoSuchFieldError: CUSTOM
at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.config(OrientBaseGraph.java:94)
at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:89)
at com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.<init>(OrientTransactionalGraph.java:30)
at com.tinkerpop.blueprints.impls.orient.OrientGraph.<init>(OrientGraph.java:25)
at Neo4JTest.<clinit>(Neo4JTest.java:39)
Exception in thread "main" .

Also since I am using a latest copy , do you still think I should convert the DB in classic mode by writing all the lines of code you mention ?
Would getVertices(Direction.IN) work in this latest version ?

Luca Garulli

unread,
May 24, 2013, 10:45:45 AM5/24/13
to gremlin-users
Hi,
assure you haven't mixed version of jars in your classpath.

Lvc@
Reply all
Reply to author
Forward
0 new messages