stephen mallette created TINKERPOP-1092:
-------------------------------------------
Summary: Gremlin Console init script with :x throws exception
Key: TINKERPOP-1092
URL: https://issues.apache.org/jira/browse/TINKERPOP-1092
Project: TinkerPop
Issue Type: Bug
Components: console
Affects Versions: 3.1.0-incubating
Reporter: stephen mallette
Priority: Minor
With an init script called {{test.groovy}} of:
{code}
:x
{code}
starting the console with:
{code}
bin/gremlin test.groovy
{code}
you will get
{code}
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)
{code}
The console should just nicely exit.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)