Peter Storm created TINKERPOP-1262:
--------------------------------------
Summary: g.V(id0).repeat(both()).times(1) works only locally
Key: TINKERPOP-1262
URL: https://issues.apache.org/jira/browse/TINKERPOP-1262
Project: TinkerPop
Issue Type: Bug
Affects Versions: 3.0.1-incubating
Environment: Titan 1.0.0 with Cassandra backend, Gremlin Server,
TinkerPop 3.0.1
Reporter: Peter Storm
Priority: Minor
I wanted to include a query in my application that retrieves all paths between
two vertices up to a certain length:
g.V(p0).repeat(dedup().both()).times(2).emit(hasId(p1)).hasId(p1).path()
This works in the Gremlin Console, but throws a NullPointerException when I
send it to the Gremlin Server from my application. I could reduce the query to:
g.V(p0).repeat(both()).times(1)
which still throws the NullPointerException. However, the queries
g.V(p0).both() and g.V(p0).repeat(coin(1.0)).times(1) both work fine. So it
seems to be a problem with the combination of the two steps both() and repeat().
I tried the problematic query in the Gremlin Console with TinkerGraph and Titan
without any problems. Here is my environment:
Titan 1.0.0 with Cassandra back end
TinkerPop 3.0.1 (bundled with Titan)
The thread in the Google group for reference:
https://groups.google.com/forum/#!topic/gremlin-users/4SrSEkDS0GQ
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)