g.V().has('type','IUser').has('userId',T.eq,userId).fill(results)
Error Received:
javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: com.tinkerpop.blueprints.impls.rexster.RexsterGraph.V() is applicable for argument types: () values: []
Possible solutions: is(java.lang.Object), any(), use([Ljava.lang.Object;), any(groovy.lang.Closure), use(java.util.List, groovy.lang.Closure), use(java.lang.Class, groovy.lang.Closure)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:348)
at org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:41)
at javax.script.CompiledScript.eval(CompiledScript.java:92)
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/612ba287-0868-4721-95cd-1ec564cfc66c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you Priya and Daniel for replies.
This expression is working good in rexster-console, rexster-dog-house tool. Here is my code from Java. This was working with rester 2.6.0 on arangodb graph. But on Titan+Rexster+Cassandra (2.4.0) this is showing the error.
As per Daniel's Suggestion, I tried using Gremlin.load() and not resolved.
String expr = "g.V().has('type','IUser').has('userId',T.eq,userId).fill(results)";
Gremlin.load(); // I tried using this in static method too.
GremlinGroovyScriptEngine engine = new GremlinGroovyScriptEngine();
CompiledScript script = engine.compile(expr);
List results = new ArrayList();
javax.script.Bindings bindings = engine.createBindings();
bindings.put("g", getConnection());
bindings.put("userId", "user1");
bindings.put("results", results);
System.err.println(">>>>>>>>>>>> " + expr);
try {
Object obj = script.eval(bindings);
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/0c9f8bf3-ebb2-4a96-80b4-663048bca1d7%40googlegroups.com.