What is DUMMY and why do I get "No signature of method: DUMMY.otherV()" message

684 views
Skip to first unread message

Al Byers

unread,
Aug 11, 2018, 5:53:30 PM8/11/18
to Gremlin-users

g.V(fromVertex.id()).outE(thisEdgeLabel).where(otherV().hasId(pci.getVertex().id()))

I test the expression up to "where" statement.

groovy.lang.MissingMethodException: No signature of method: DUMMY.otherV() is applicable for argument types: () values: []
Possible solutions: every(), every(groovy.lang.Closure), grep(), grep(java.lang.Object), notify(), collect()

I do not get this error in gremlin-console; it is just in a groovy environment

Stephen Mallette

unread,
Aug 11, 2018, 7:44:57 PM8/11/18
to Gremlin-users
ha! i have no idea what that is....

what happens if you explicitly reference the otherV() as follows:

g.V(fromVertex.id()).outE(thisEdgeLabel).where(__.otherV().hasId(pci.getVertex().id()))



--
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/330dd482-4d78-4033-bdd8-bd3c6f3f8280%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Al Byers

unread,
Aug 12, 2018, 1:26:53 AM8/12/18
to Gremlin-users
I get:

groovy.lang.MissingPropertyException: No such property: __ for class: DUMMY

Robert Dale

unread,
Aug 12, 2018, 3:50:33 AM8/12/18
to gremli...@googlegroups.com

Are you running this through a debugger?

Robert Dale


Stephen Mallette

unread,
Aug 12, 2018, 6:41:00 AM8/12/18
to Gremlin-users
I was a bit fast in my response, but the implication of my response was that I think you need to check your imports. Originally, did you statically import the otherV() method of __? or after i suggested you do __.otherV() did you import the __?

Google didn't turn up much....that DUMMY exception seems related to the grails environment so I assume your'e running in there, so if it's not an import problem, then you probably need to go dig around the grails community to figure it out. Not sure if this helps:




On Sun, Aug 12, 2018 at 1:26 AM Al Byers <bye...@automationgroups.com> wrote:

Al Byers

unread,
Aug 13, 2018, 2:51:14 PM8/13/18
to Gremlin-users
Wow! You guys are good. I was using a debugger (Intellij IDEA evaluation window - which I guess was introducing the DUMMY variable). When I looked more closely at the actual log output instead of the evaluation window, it was obvious that I did not import:

org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__

which solved the problem.
Thanks. 
Reply all
Reply to author
Forward
0 new messages