Error using gremlin with stardog

I am getting the below mentioned error while executing graph = StardogGraphFactory.open(graphConf.build()) command from gremlin via the plugin. I followed the instructions on Home | Stardog Documentation Latest and was able to connect fine to stardog but I end up with error mentioned below -

C:\gremlin.bat

     \,,,/
     (o o)

-----oOOo-(3)-oOOo-----
plugin activated: tinkerpop.server
plugin activated: tinkerpop.utilities
plugin activated: complexible.stardog
plugin activated: tinkerpop.tinkergraph
gremlin> :plugin list
==>tinkerpop.server[active]
==>tinkerpop.gephi
==>tinkerpop.utilities[active]
==>tinkerpop.sugar
==>tinkerpop.credentials
==>complexible.stardog[active]
==>tinkerpop.tinkergraph[active]
gremlin> :plugin use complexible.stardog
==>complexible.stardog activated
gremlin> graphConf = StardogGraphConfiguration.builder()
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/a571410/Desktop/gremlin-console/lib/slf4j-log4j12-1.7.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/a571410/Desktop/gremlin-console/ext/stardog-gremlin/plugin/log4j-slf4j-impl-2.8.1.jar!/org/slf4j/impl/StaticLoggerBi
SLF4J: See SLF4J Error Codes for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
==>gremlin.graph=tag:stardog:api:context:default
stardog.computer.cache_size=5000
stardog.label_iri=http://www.w3.org/2000/01/rdf-schema#label
gremlin> graphConf.connectionString("snarl://localhost:5820/mygraph").credentials("admin", "admin").baseIRI("http://tinkerpop.incubator.apache.org/")
==>gremlin.graph=tag:stardog:api:context:default
stardog.computer.cache_size=5000
stardog.label_iri=http://www.w3.org/2000/01/rdf-schema#label
stardog.connection=snarl://localhost:5820/mygraph
stardog.user=admin
stardog.password=admin
stardog.base_iri=http://tinkerpop.incubator.apache.org/
gremlin> graph = StardogGraphFactory.open(graphConf.build())
org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategy$VendorOptimizationStrategy
Type ':help' or ':h' for help.
Display stack trace? [yN]

I am new to Stardog and Gremlin. I could not find any resolution on google as well for this problem. Please could someone help? Thanks!

First, make sure you use the version of TinkerPop API that’s compatible with Stardog (3.0.2-incubating). We are planning to upgrade to a more recent one but there’s no target date yet.

Second, if that doesn’t help, please provide the error stack trace.

Best,
Pavel

Thanks Pavel. I used gremlin 3.0.2 instead of 3.2.4 and it worked!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.