Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
client.execute('g.V().filter(function(it) { return it.get().value("lang") !== "java" });', callback)
Gremlin Server log:
[WARN] StandardOps - Exception processing a script on request [RequestMessage{, requestId=db546f8a-c671-a6ea-5bfe-7bc8786e4631, op='eval', processor='', args={gremlin=g.V().filter(function(it) { return it.get().value("lang") !== "java" });, accept=application/json, language=nashorn}}].
java.util.concurrent.CompletionException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(com.tinkerpop.gremlin.util.function.SPredicate), (com.tinkerpop.gremlin.util.function.SBiPredicate)] of the method com.tinkerpop.gremlin.tinkergraph.process.graph.TinkerGraphTraversal.filter for argument types [jdk.nashorn.internal.objects.ScriptFunctionImpl]
at java.util.concurrent.CompletableFuture.internalComplete(CompletableFuture.java:205)
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:482)
at java.util.concurrent.CompletableFuture$Async.run(CompletableFuture.java:428)
at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(com.tinkerpop.gremlin.util.function.SPredicate), (com.tinkerpop.gremlin.util.function.SBiPredicate)] of the method com.tinkerpop.gremlin.tinkergraph.process.graph.TinkerGraphTraversal.filter for argument types [jdk.nashorn.internal.objects.ScriptFunctionImpl]
at com.tinkerpop.gremlin.groovy.engine.GremlinExecutor.lambda$eval$17(GremlinExecutor.java:130)
at com.tinkerpop.gremlin.groovy.engine.GremlinExecutor$$Lambda$58/101651543.get(Unknown Source)
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:476)
... 4 more
Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(com.tinkerpop.gremlin.util.function.SPredicate), (com.tinkerpop.gremlin.util.function.SBiPredicate)] of the method com.tinkerpop.gremlin.tinkergraph.process.graph.TinkerGraphTraversal.filter for argument types [jdk.nashorn.internal.objects.ScriptFunctionImpl]
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:382)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:546)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:528)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:524)
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:194)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:233)
at com.tinkerpop.gremlin.groovy.engine.ScriptEngines.eval(ScriptEngines.java:66)
at com.tinkerpop.gremlin.groovy.engine.GremlinExecutor.lambda$eval$17(GremlinExecutor.java:120)
... 6 more
Caused by: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(com.tinkerpop.gremlin.util.function.SPredicate), (com.tinkerpop.gremlin.util.function.SBiPredicate)] of the method com.tinkerpop.gremlin.tinkergraph.process.graph.TinkerGraphTraversal.filter for argument types [jdk.nashorn.internal.objects.ScriptFunctionImpl]
at jdk.internal.dynalink.beans.OverloadedMethod.throwAmbiguousMethod(OverloadedMethod.java:222)
at jdk.nashorn.internal.scripts.Script$\^eval\_.runScript(<eval>:1)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:498)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:206)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378)
... 13 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment