Gremlin server via http

3 views
Skip to first unread message

temp...@gmail.com

unread,
Nov 2, 2016, 9:17:50 AM11/2/16
to Stardog
Hi!

I'm using Stardog 4.2 and Gremlin server (TinkerPop 3.0.2). In latest version of Stardog, protocol SNARL is deprecated, but in docs gremlin-server configuration connection URL is "snarl://localhost:5820".
How run Gremlin server via HTTP?

Stardog working with TinkerPop 3.0.2 only?
Latest version 3.2.3 calling java exception.

Thanks in advance!

Zachary Whitley

unread,
Nov 2, 2016, 12:35:41 PM11/2/16
to Stardog
Specifically it supports 3.0.2-incubating which is available at https://tinkerpop.apache.org/downloads.html

http://docs.stardog.com/#_property_graphs

--
-- --
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+unsubscribe@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
---
You received this message because you are subscribed to the Google Groups "Stardog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+unsubscribe@clarkparsia.com.

temp...@gmail.com

unread,
Nov 3, 2016, 3:52:28 AM11/3/16
to Stardog, temp...@gmail.com
In latest version Stardog SNARL not available:

...
Stardog server is listening on all network interfaces.
HTTP server available at http://localhost:5820.
...

My gremlin config:

gremlin.graph=com.complexible.stardog.gremlin.structure.StardogGraph
stardog.connection=snarl://localhost:5820/db3

I tried set stardog.connection=http://localhost:5820/db3, but I get an exception.

How to connect gremlin via http, or enable SNARL?

Stephen Nowell

unread,
Nov 3, 2016, 7:31:10 AM11/3/16
to sta...@clarkparsia.com
Hi,

As of version 4.2, the SNARL protocol has been deprecated [1] and it will be completely removed in 5.x. You are, for now, able to start the server with the --snarl option to re-enable it, however this is just a temporary solution until the 5.x release cycle, at which point that will no longer work.

What is the exception that you get when changing snarl:// to http:// ?

Cheers,
Stephen

[1] http://docs.stardog.com/release-notes/#_4_2_release
--
-- --
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

temp...@gmail.com

unread,
Nov 3, 2016, 11:37:05 AM11/3/16
to Stardog, temp...@gmail.com
[WARN] ServiceRegistry - New service class com.complexible.common.rdf.rio.writer.TurtleWriterFactory replaces existing service class org.openrdf.rio.turtle.TurtleWriterFactory
[WARN] Slf4JLogger - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.lang.NoSuchMethodError: org.apache.http.impl.client.DefaultHttpClient.execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse;
        at com.complexible.stardog.protocols.http.client.BaseHttpClient.executeRaw(BaseHttpClient.java:318)
        at com.complexible.stardog.protocols.http.client.BaseHttpClient.execute(BaseHttpClient.java:303)
        at com.complexible.stardog.protocols.http.client.HttpClientImpl.connect(HttpClientImpl.java:212)
        at com.complexible.stardog.protocols.http.client.HttpClientImpl.connect(HttpClientImpl.java:93)
        at com.complexible.stardog.protocols.http.client.HttpConnection.create(HttpConnection.java:44)
        at com.complexible.stardog.protocols.http.client.HttpDriver.connect(HttpDriver.java:75)
        at com.complexible.stardog.api.DriverManager.getConnection(DriverManager.java:74)
        at com.complexible.stardog.api.ConnectionConfiguration.connect(ConnectionConfiguration.java:126)
        at com.complexible.stardog.gremlin.structure.tx.AbstractStardogTransaction.connection(AbstractStardogTransaction.java:73)
        at com.complexible.stardog.gremlin.structure.tx.DefaultStardogTransaction.connection(DefaultStardogTransaction.java:22)
        at com.complexible.stardog.gremlin.structure.tx.DefaultStardogTransaction.doOpen(DefaultStardogTransaction.java:35)

        at org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction.open(AbstractTransaction.java:87)
        at org.apache.tinkerpop.gremlin.structure.Transaction$READ_WRITE_BEHAVIOR$1.accept(Transaction.java:209)
        at org.apache.tinkerpop.gremlin.structure.Transaction$READ_WRITE_BEHAVIOR$1.accept(Transaction.java:206)
        at org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction.rollback(AbstractTransaction.java:104)
        at org.apache.tinkerpop.gremlin.server.GraphManager.lambda$rollbackAll$29(GraphManager.java:99)
        at java.util.concurrent.ConcurrentHashMap$EntrySetView.forEach(Unknown Source)
        at org.apache.tinkerpop.gremlin.server.GraphManager.rollbackAll(GraphManager.java:96)
        at org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.lambda$new$18(ServerGremlinExecutor.java:102)
        at org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.eval(GremlinExecutor.java:253)
        at org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.eval(GremlinExecutor.java:234)
        at org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessor.evalOpInternal(AbstractEvalOpProcessor.java:157)
        at org.apache.tinkerpop.gremlin.server.op.standard.StandardOpProcessor.evalOp(StandardOpProcessor.java:80)
        at org.apache.tinkerpop.gremlin.server.handler.OpExecutorHandler.channelRead0(OpExecutorHandler.java:66)
        at org.apache.tinkerpop.gremlin.server.handler.OpExecutorHandler.channelRead0(OpExecutorHandler.java:41)
        at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler$1.channelRead(WebSocketServerProtocolHandler.java:146)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
        at java.lang.Thread.run(Unknown Source)

Pavel Klinov

unread,
Nov 3, 2016, 11:45:18 AM11/3/16
to sta...@clarkparsia.com
This happens because of a version conflict for the Apache HttpClient library (both 4.4 and 4.2.6 end up in your classpath). For now you may just remove the 4.2.6 jars. We'll fix this in the next release.

Thanks for the report,
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
Reply all
Reply to author
Forward
Message has been deleted
0 new messages