You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2016/04/15 11:01:25 UTC
[jira] [Commented] (TINKERPOP-1262)
g.V(id0).repeat(both()).times(1) works only locally
[ https://issues.apache.org/jira/browse/TINKERPOP-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15242666#comment-15242666 ]
stephen mallette commented on TINKERPOP-1262:
---------------------------------------------
Do you happen to have a full stack trace for that NullPointerException?
> 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)