[ 
https://issues.apache.org/jira/browse/TINKERPOP-1899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16373573#comment-16373573
 ] 

Robert Dale commented on TINKERPOP-1899:
----------------------------------------

Looks like you are calling a Neo4j Gremlin stored procedure. I'm not sure how 
they pull in imports but you may want to qualify 'of()' with the class like so 
'LabelP.of()'.  The documentation is correct and working.  Otherwise, the 
stored procedures are not supported here but at 
https://github.com/neo4j-contrib/neo4j-tinkerpop-api-impl

> Neo4j Gremlin query for multilabel nodes not fetching results
> -------------------------------------------------------------
>
>                 Key: TINKERPOP-1899
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1899
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: neo4j
>    Affects Versions: 3.3.0
>            Reporter: Shirish Kulkarni
>            Priority: Major
>
> For Neo4j version 3.3.0, we are unable to fetch the required node which has 
> Multiple labels assigned to it. Tried multiple options as per the 
> documentation 
> http://tinkerpop.apache.org/docs/3.1.1-incubating/reference/#_multi_label
> 1. call gremlin.run('g.V().has(label,of("Human")).and(of("Animal"))',null)
> Throws Neo.ClientError.Procedure.ProcedureCallFailed with below stack trace.
> Failed to invoke procedure `gremlin.run`: Caused by: 
> javax.script.ScriptException: javax.script.ScriptException: 
> groovy.lang.MissingMethodException: No signature of method: 
> org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.of() is 
> applicable for argument types: (java.lang.String) values: [Human]
> Possible solutions: get(java.lang.String), is(java.lang.Object), any(), 
> eval(java.lang.String), put(java.lang.String, java.lang.Object), 
> any(groovy.lang.Closure)
> 2. call 
> gremlin.run('g.V().has(label,of("Human")).has(label,of("Animal"))',null)
> Throws Neo.ClientError.Procedure.ProcedureCallFailed with below stack trace.
> Failed to invoke procedure `gremlin.run`: Caused by: 
> javax.script.ScriptException: javax.script.ScriptException: 
> groovy.lang.MissingMethodException: No signature of method: 
> org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.of() is 
> applicable for argument types: (java.lang.String) values: [Human]
> Possible solutions: get(java.lang.String), is(java.lang.Object), any(), 
> eval(java.lang.String), put(java.lang.String, java.lang.Object), 
> any(groovy.lang.Closure)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to