Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1092

Gremlin Console init script with :x throws exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-incubating
    • Fix Version/s: 3.1.3, 3.2.1
    • Component/s: console
    • Labels:
      None

      Description

      With an init script called test.groovy of:

      :x
      

      starting the console with:

      bin/gremlin test.groovy
      

      you will get

      Exception in thread "main" org.codehaus.groovy.tools.shell.ExitNotification
      	at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:218)
      	at org.codehaus.groovy.tools.shell.commands.ExitCommand.execute(ExitCommand.groovy:53)
      	at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:218)
      	at org.codehaus.groovy.tools.shell.Shell.execute(Shell.groovy:104)
      	at org.codehaus.groovy.tools.shell.Groovysh.super$2$execute(Groovysh.groovy)
      	at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	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.tools.shell.Groovysh.executeCommand(Groovysh.groovy:256)
      	at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:155)
      	at org.apache.tinkerpop.gremlin.console.Console$_initializeShellWithScript_closure12.doCall(Console.groovy:289)
      	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:497)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
      	at groovy.lang.Closure.call(Closure.java:426)
      	at groovy.lang.Closure.call(Closure.java:442)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.callClosureForLine(DefaultGroovyMethods.java:5236)
      	at org.codehaus.groovy.runtime.IOGroovyMethods.eachLine(IOGroovyMethods.java:487)
      	at org.codehaus.groovy.runtime.ResourceGroovyMethods.eachLine(ResourceGroovyMethods.java:274)
      	at org.codehaus.groovy.runtime.ResourceGroovyMethods.eachLine(ResourceGroovyMethods.java:240)
      	at org.codehaus.groovy.runtime.dgm$942.doMethodInvoke(Unknown Source)
      	at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:218)
      	at org.apache.tinkerpop.gremlin.console.Console.initializeShellWithScript(Console.groovy:287)
      	at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:218)
      	at org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:141)
      	at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:218)
      	at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:305)
      

      The console should just nicely exit.

        Attachments

          Activity

            People

            • Assignee:
              spmallette Stephen Mallette
              Reporter:
              spmallette Stephen Mallette
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: