The error when I trying to connect to stardog from gremlin

0 views
Skip to first unread message

steven...@gmail.com

unread,
Feb 18, 2016, 8:43:52 PM2/18/16
to Stardog
Hi guys,
 
Does anyone had the same problem like me before. I am following the manual of "stardog & gremlin console". Trying to connect stardog from gremlin, and got the error like below, When I run "graph = StardogGraphFactory.open(graphConf.build())"
 

org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategy$VendorOptimizationStrategy

Display stack trace? [yN] y

java.lang.NoClassDefFoundError: org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategy$VendorOptimizationStrategy

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:760)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)

at java.net.URLClassLoader.access$100(URLClassLoader.java:73)

at java.net.URLClassLoader$1.run(URLClassLoader.java:368)

at java.net.URLClassLoader$1.run(URLClassLoader.java:362)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:361)

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

at com.complexible.stardog.gremlin.structure.StardogGraph.<clinit>(StardogGraph.java:391)

at com.complexible.stardog.gremlin.StardogGraphFactory.open(StardogGraphFactory.java:33)

at com.complexible.stardog.gremlin.StardogGraphFactory$open.call(Unknown Source)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122)

at groovysh_evaluate.run(groovysh_evaluate:3)

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

at org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:69)

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

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

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

at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy)

at sun.reflect.GeneratedMethodAccessor34.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: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.tools.shell.ShellRunner.run(ShellRunner.groovy:58)

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

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

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

at org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:144)

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

at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:303)

Caused by: java.lang.ClassNotFoundException: org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy$VendorOptimizationStrategy

at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

... 50 more

 

 

Can anyone help me with it?

 

Thank you so much.

 

Regrads,

Steven

steven...@gmail.com

unread,
Feb 18, 2016, 8:54:35 PM2/18/16
to Stardog, steven...@gmail.com
By the way, My server is linux, and the version of stardog is 4.0.3, gremlin console is 3.1.0 . but my linux server can not access to internet , Is that a reason to cast the error?

在 2016年2月19日星期五 UTC+11下午12:43:52,steven...@gmail.com写道:

Pavel Klinov

unread,
Feb 19, 2016, 4:20:00 AM2/19/16
to sta...@clarkparsia.com
Hi Steven,

The reason is that Stardog 4.0.5 does not yet support TinkerPop 3.1.*, the supported version is 3.0.2-incubating. We have the ticket #2821 to upgrade to the latest TinkerPop API for our next release.

Cheers,
Pavel

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

steven...@gmail.com

unread,
Feb 21, 2016, 5:47:04 PM2/21/16
to Stardog
Hi Pavel,
 
Thank you so much for your reply.  I used the version 4.0.3 of stardog, is it same with 4.0.5? It supported germlin version 3.0.2-incubating?
 
Regards,
Steven
 

在 2016年2月19日星期五 UTC+11下午8:20:00,Pavel Klinov写道:

Pavel Klinov

unread,
Feb 21, 2016, 6:13:55 PM2/21/16
to sta...@clarkparsia.com
Correct.

Cheers,
Pavel
Reply all
Reply to author
Forward
0 new messages