[ https://issues.apache.org/jira/browse/TINKERPOP-3013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17784158#comment-17784158 ]
Cole Greer commented on TINKERPOP-3013: --------------------------------------- I ran a few tests of this, 3.7.0 and 3.6.6-SNAPSHOT appear fine to me. I was able to reproduce this in 3.7.1-SNAPSHOT. It appears to me that the remote console is using the local variable types to validate the script before it is sent off to the remote server. If the local console has a `g` which is bound to any GraphTraversalSource, the remote console then behaves as expected. ``` \,,,/ (o o) -----oOOo-(3)-oOOo----- plugin activated: tinkerpop.server plugin activated: tinkerpop.utilities plugin activated: tinkerpop.tinkergraph gremlin> g = null ==>null gremlin> :remote connect tinkerpop.server conf/remote.yaml ==>Configured localhost/127.0.0.1:8182 gremlin> :remote console ==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182] - type ':remote console' to return to local mode gremlin> g ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard] gremlin> g.V() Cannot invoke method V() on null object Type ':help' or ':h' for help. Display stack trace? [yN]n gremlin> :remote console ==>All scripts will now be evaluated locally - type ':remote console' to return to remote mode for Gremlin Server - [localhost/127.0.0.1:8182] gremlin> g = TinkerGraph.open().traversal() ==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard] gremlin> :remote console ==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182] - type ':remote console' to return to local mode gremlin> g.V() ==>v[1] ==>v[2] ==>v[3] ==>v[4] ==>v[5] ==>v[6] ``` > Console not sending scripts to the server when :remote console is enabled > ------------------------------------------------------------------------- > > Key: TINKERPOP-3013 > URL: https://issues.apache.org/jira/browse/TINKERPOP-3013 > Project: TinkerPop > Issue Type: Bug > Components: console > Affects Versions: 3.7.0 > Reporter: Stephen Mallette > Priority: Blocker > > Not sure what's happening but commands seem to be only executing locally: > {code} > gremlin> :remote connect tinkerpop.server conf/remote.yaml > ==>Configured localhost/127.0.0.1:8182 > gremlin> :remote console > ==>All scripts will now be sent to Gremlin Server - > [localhost/127.0.0.1:8182] - type ':remote console' to return to local mode > gremlin> g.V().count() > No such property: g for class: groovysh_evaluate > Type ':help' or ':h' for help. > Display stack trace? [yN]n > gremlin> :> g > ==>graphtraversalsource[tinkergraph[vertices:10000 edges:116974], standard] > gremlin> :> g.V().count() > ==>10000 > {code} > Only tested on 3.7.0 - could be bad on earlier versions. not sure.... -- This message was sent by Atlassian Jira (v8.20.10#820010)