Error downloading maven dependencies via gremlin console

743 views
Skip to first unread message

dp

unread,
Oct 19, 2014, 11:39:33 AM10/19/14
to gremli...@googlegroups.com

I am new to TP3, I was using TP2.*


I am in process of setup tp3 - gremlin server and console along with neo4j. Here is the error i received.


gremlin> :install com.tinkerpop neo4j-gremlin 3.0.0.M3

Error grabbing Grapes -- [download failed: commons-configuration#commons-configuration;1.10!commons-configuration.jar, download failed: org.slf4j#slf4j-api;1.7.7!slf4j-api.jar, download failed: org.apache.commons#commons-lang3;3.3.1!commons-lang3.jar]

Display stack trace? [yN] y

java.lang.RuntimeException: Error grabbing Grapes -- [download failed: commons-configuration#commons-configuration;1.10!commons-configuration.jar, download failed: org.slf4j#slf4j-api;1.7.7!slf4j-api.jar, download failed: org.apache.commons#commons-lang3;3.3.1!commons-lang3.jar]

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:421)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:566)

at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:636)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:535)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:252)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:234)

at groovy.grape.Grape.grab(Grape.java:148)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at com.tinkerpop.gremlin.console.commands.InstallCommand.grabDeps(InstallCommand.groovy:62)

at com.tinkerpop.gremlin.console.commands.InstallCommand.this$3$grabDeps(InstallCommand.groovy)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at com.tinkerpop.gremlin.console.commands.InstallCommand.execute(InstallCommand.groovy:32)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at org.codehaus.groovy.tools.shell.Shell.execute(Shell.groovy:103)

at org.codehaus.groovy.tools.shell.Groovysh.super$2$execute(Groovysh.groovy)

at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)

at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)

at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130)

at org.codehaus.groovy.tools.shell.Groovysh.executeCommand(Groovysh.groovy:180)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:127)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:121)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:93)

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:483)

at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)

at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)

at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130)

at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150)

at org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:123)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:57)

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:483)

at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)

at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)

at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130)

at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150)

at org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:83)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at com.tinkerpop.gremlin.console.Console.<init>(Console.groovy:99)

at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:636)

at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)

at com.tinkerpop.gremlin.console.Console.main(Console.groovy:230)

Stephen Mallette

unread,
Oct 20, 2014, 7:02:38 AM10/20/14
to gremli...@googlegroups.com
This error could mean a few different things.  You might want to review this SO question:


I think the first thing to try, would be to take a look at your grapeConfig.xml file and compare it to the example provided in the Grape Reference page:


--
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/ee44b961-2466-497d-a28f-824543813086%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dp

unread,
Oct 21, 2014, 6:31:43 AM10/21/14
to gremli...@googlegroups.com
Stephen,

Thanks for quick response.

I installed Gremlin-Server and Gremlin-Console from links on tinkerpop.com. Is there anything else I need to install.

-thank you, dp

Stephen Mallette

unread,
Oct 21, 2014, 6:42:13 AM10/21/14
to gremli...@googlegroups.com
Java 8 is the only other thing you should need.  I only mentioned grape because it is used internally by the console.  The dependencies for it should come with the console itself.  I don't think it is a requirement that you would need to install groovy itself.

dp

unread,
Oct 23, 2014, 1:57:56 AM10/23/14
to gremli...@googlegroups.com
I am able to install on my another test windows 8.1 system with error.

This is what I did...

1. Download JDK 1.8.0_25, and Install.
2. download gremlin console and gremlin server from tinkerpop.com
3. Extract the gremlin console and gremlin server into work folder.
4. goto gremlin-server 3.0.0.M4/bin folder, and click on gremlin-server.bat ../conf/neo4j-gremlin-config.yaml
4. goto gremlin-console 3.0.0.M4/bin folder, and click on gremlin.bat

Then at gremlin> prompt

:install com.tinkerpop neo4j-gremlin 3.0.0.M4

This throws similar grape error but installed.

All the above is on windows. But on Mac, It throws error but does not install the maven downloaded jar files.

Please help me out if I missed any steps in the sequence.

-thanks, dp

Stephen Mallette

unread,
Oct 27, 2014, 7:25:49 AM10/27/14
to gremli...@googlegroups.com
Not sure if this is still a problem for you or not, but you don't make reference to your grapeConfig.xml file (something I mentioned in my first post to you).  In the worst case, you should be able to configure grape to use your local .m2 directory (as shown in the link I provided previously), then manually install the dependencies to your .m2 that are causing problems:


That should resolve issues for you.  Keep in mind that you shouldn't have to do the manual install part, but since I can't discern what your specific problem is, I'm left with providing the "last resort" solution.

MeteorMarc

unread,
Jan 1, 2016, 4:24:41 AM1/1/16
to Gremlin-users
I also hit the grapes error (TP3.1.0 while installing hadoop-gremlin from gremlin-console). Creating the grapeConfig.xml works well, but it needs to be on your CLASSPATH (e.g. copy to gremlin-console's lib folder).

Cheers,   Marc

Op maandag 20 oktober 2014 13:02:38 UTC+2 schreef Stephen Mallette:
Reply all
Reply to author
Forward
0 new messages