[ https://issues.apache.org/jira/browse/TINKERPOP-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15266551#comment-15266551 ]
Peter Storm commented on TINKERPOP-1262: ---------------------------------------- I just tried to reproduce the problem to obtain a stack trace. While doing so, I noticed that I could only reproduce the problem on one of our Titan servers. The only difference between the servers was that the problematic one had "query.batch" set to True in the Titan config. So this is the same bug already reported here: https://github.com/thinkaurelius/titan/issues/1169 And since it's not a bug in Gremlin Server, this issue can be closed. > 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 > Components: server > 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)