[ https://issues.apache.org/jira/browse/TINKERPOP-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marko A. Rodriguez closed TINKERPOP-1175. ----------------------------------------- Resolution: Fixed Assignee: Marko A. Rodriguez Was a simple fix. Two small tweaks to the {{toString()}} of {{TraversalExplanation}}. Added a test case too to make sure anonymous traversals "explain" correctly. > Anonymous traversals can't be explained > --------------------------------------- > > Key: TINKERPOP-1175 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1175 > Project: TinkerPop > Issue Type: Bug > Components: process > Affects Versions: 3.1.1-incubating > Reporter: stephen mallette > Assignee: Marko A. Rodriguez > Priority: Minor > Fix For: 3.1.2-incubating > > > This also would apply to any {{Traversal}} that doesn't have strategies I > think (as odd as that case might be): > {code} > gremlin> out().inE().outV().explain() > No value present > Display stack trace? [yN] y > java.util.NoSuchElementException: No value present > at java.util.Optional.get(Optional.java:135) > at > org.apache.tinkerpop.gremlin.process.traversal.util.TraversalExplanation.toString(TraversalExplanation.java:87) > at > org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:634) > at > org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:575) > at > org.codehaus.groovy.runtime.InvokerHelper.toString(InvokerHelper.java:130) > at > org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:74) > at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:187) > at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:122) > at > org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:95) > at > org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) > at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) > at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:152) > at > org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:124) > at > org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:59) > at > org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$run(InteractiveShellRunner.groovy) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) > at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) > at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:152) > at > org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:83) > at > org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:218) > at > org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:144) > at > org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:218) > at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:305) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)