Update to 4.1.1 raises "Channel closed before response from server"

6 views
Skip to first unread message

justforthe...@gmail.com

unread,
Jun 28, 2016, 9:11:46 AM6/28/16
to Stardog
I have updated to version 4.1.1. The server runs fine and in my application I have just changed my pom.xml to:

        <dependency>
            <groupId>com.complexible.stardog</groupId>
            <artifactId>server</artifactId>
            <version>4.1.1</version>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>com.complexible.stardog</groupId>
            <artifactId>client-snarl</artifactId>
            <version>4.1.1</version>
            <type>pom</type>
        </dependency>

But now I obtain an error when I try to connect:

com.complexible.stardog.StardogException: Channel closed before response from server
at com.complexible.stardog.api.ConnectionPoolConfig$ApacheConnectionPool.obtain(ConnectionPoolConfig.java:128)
at com.complexible.stardog.api.ConnectionPoolConfig$ApacheConnectionPool.obtain(ConnectionPoolConfig.java:115)
...
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.complexible.stardog.server.StardogConnectionException: Channel closed before response from server
at com.complexible.stardog.protocols.client.SPECClientUtil.toStardogException(SPECClientUtil.java:66)
at com.complexible.stardog.protocols.client.SPECClientUtil.toStardogException(SPECClientUtil.java:34)
at com.complexible.stardog.protocols.snarl.client.SNARLDriver.connect(SNARLDriver.java:130)
at com.complexible.stardog.api.DriverManager.getConnection(DriverManager.java:74)
at com.complexible.stardog.api.ConnectionConfiguration.connect(ConnectionConfiguration.java:126)
at com.complexible.stardog.api.ConnectionPoolableObjectFactory.makeObject(ConnectionPoolableObjectFactory.java:30)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
at com.complexible.common.pool.ApachePoolImpl.obtain(ApachePoolImpl.java:50)
at com.complexible.stardog.api.ConnectionPoolConfig$ApacheConnectionPool.obtain(ConnectionPoolConfig.java:125)
... 101 more
Caused by: java.net.ConnectException: Channel closed before response from server
at com.complexible.common.protocols.client.rpc.DefaultRPCClient.get(DefaultRPCClient.java:284)
at com.complexible.common.protocols.client.rpc.DefaultRPCClient.execute(DefaultRPCClient.java:254)
at com.complexible.stardog.protocols.snarl.client.AbstractSNARLClient.connect(AbstractSNARLClient.java:98)
at com.complexible.stardog.protocols.snarl.client.AbstractSNARLClient.connect(AbstractSNARLClient.java:60)
at com.complexible.stardog.protocols.snarl.client.SNARLDriver.connect(SNARLDriver.java:114)
... 107 more


If I get back the versions on pom.xml to  <version>4.0.5</version>
it works fine (even on 4.1.1 server)

Has anything changed or am I missing something?

Thanks

Conrad Leonard

unread,
Jun 28, 2016, 10:42:35 PM6/28/16
to Stardog, justforthe...@gmail.com
I saw this same behaviour when I forgot to sync the versions of my server and client code - from memory I think I was trying to connect to 4.0.3 server when using 4.1.1 client jars. Suggests to me you have a similar version mismatch - some stale dependencies somewhere for example, or the server isn't actually running the version you think it is.

justforthe...@gmail.com

unread,
Jun 29, 2016, 5:22:26 PM6/29/16
to Stardog, justforthe...@gmail.com
You might be right there is some remains from a script, not sure, because I am totally sure I saw the version 4.1.1 starting all right.

However, now I restarted the whole computer to avoid confusion and tried to start fresh. I had to use a --update because the database rejected to start this time. Then from my Java program (which I have not modified) I get some of the queries right, but some others raise an error.... strange:

com.complexible.stardog.StardogException: com.complexible.stardog.plan.eval.ExecutionException: com.complexible.stardog.StardogException
at com.complexible.stardog.protocols.client.SPECClientUtil.toStardogException(SPECClientUtil.java:86)
at com.complexible.stardog.protocols.client.SPECClientUtil.toStardogException(SPECClientUtil.java:34)
at com.complexible.stardog.api.impl.SPECSelectQuery.execute(SPECSelectQuery.java:52)
at com.complexible.stardog.api.impl.SPECSelectQuery.execute(SPECSelectQuery.java:31)
.......
Caused by: com.complexible.common.protocols.client.ClientException: com.complexible.stardog.plan.eval.ExecutionException: com.complexible.stardog.StardogException
at com.complexible.common.protocols.client.rpc.DefaultRPCClient.get(DefaultRPCClient.java:278)
at com.complexible.common.protocols.client.rpc.DefaultRPCClient.execute(DefaultRPCClient.java:254)
at com.complexible.stardog.protocols.snarl.client.AbstractSNARLClient.select(AbstractSNARLClient.java:145)
at com.complexible.stardog.protocols.snarl.client.AbstractSNARLClient.select(AbstractSNARLClient.java:60)
at com.complexible.stardog.api.impl.SPECSelectQuery.execute(SPECSelectQuery.java:45)
... 48 more
Caused by: org.openrdf.query.QueryEvaluationException: com.complexible.stardog.plan.eval.ExecutionException: com.complexible.stardog.StardogException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.complexible.stardog.protocols.snarl.SNARLThrowableCodec.decode(SNARLThrowableCodec.java:127)
at com.complexible.barc.BigPacketCodec.toException(BigPacketCodec.java:388)
at com.complexible.barc.BigPacketCodec.decode(BigPacketCodec.java:364)
at com.complexible.barc.BigPacketDecoder.channelRead(BigPacketDecoder.java:90)
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.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
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:112)

Pavel Klinov

unread,
Jun 29, 2016, 5:28:11 PM6/29/16
to sta...@clarkparsia.com
Can you send the full stacktrace from the server log?

Thanks,
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

justforthe...@gmail.com

unread,
Jun 29, 2016, 6:34:20 PM6/29/16
to Stardog
I think it is this one from stardog.log (below). Apparently it is a query timeout?  I don't think the new version is slower than the previous one (normally it is just the opposite and in a greatly way, actually) and I checked and my database has 5m query timeout (300000, as said in the logs) but the application doesn't take 5m to produce an answer, it is less than a minute.


ERROR 2016-06-29 17:17:30,003 [StardogServer.WorkerGroup-4] com.complexible.stardog.protocols.http.server.HttpMessageEncoder:write(161): There was an error while encoding the response
com.complexible.common.protocols.EncodingException: com.complexible.stardog.plan.eval.operator.OperatorException: Query execution cancelled: Execution time exceeded query timeout 300000
at com.complexible.stardog.protocols.http.server.io.ResponseBodyEncoders$13.encode(ResponseBodyEncoders.java:471) ~[stardog-protocols-http-server-4.1.1.jar:?]
at com.complexible.stardog.protocols.http.server.io.ResponseBodyEncoders$2.encode(ResponseBodyEncoders.java:99) ~[stardog-protocols-http-server-4.1.1.jar:?]
at com.complexible.stardog.protocols.http.annex.QueryPanelEncoder.encode(QueryPanelEncoder.java:112) ~[stardog-webconsole-annex-4.1.1.jar:?]
at com.complexible.stardog.protocols.http.server.HttpMessageEncoder.write(HttpMessageEncoder.java:158) [stardog-protocols-http-server-4.1.1.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:633) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at io.netty.channel.AbstractChannelHandlerContext.access$1900(AbstractChannelHandlerContext.java:32) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.write(AbstractChannelHandlerContext.java:908) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.run(AbstractChannelHandlerContext.java:893) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66-internal]
Caused by: org.openrdf.query.QueryEvaluationException: com.complexible.stardog.plan.eval.operator.OperatorException: Query execution cancelled: Execution time exceeded query timeout 300000
at com.complexible.common.rdf.query.IteratorAsTupleQueryResult.hasNext(IteratorAsTupleQueryResult.java:81) ~[stardog-utils-rdf-4.1.1.jar:?]
at com.complexible.stardog.protocols.server.ConnectionFinishQueryResult.hasNext(ConnectionFinishQueryResult.java:75) ~[stardog-protocols-spec-server-4.1.1.jar:?]
at com.complexible.stardog.protocols.server.ConnectionFinishQueryResult.next(ConnectionFinishQueryResult.java:91) ~[stardog-protocols-spec-server-4.1.1.jar:?]
at org.openrdf.query.QueryResults.report(QueryResults.java:159) ~[sesame-query-4.0.0.jar:?]
at org.openrdf.query.resultio.QueryResultIO.writeTuple(QueryResultIO.java:449) ~[sesame-queryresultio-api-4.0.0.jar:?]
at com.complexible.stardog.protocols.http.server.io.ResponseBodyEncoders$13.encode(ResponseBodyEncoders.java:468) ~[stardog-protocols-http-server-4.1.1.jar:?]
... 11 more
Caused by: com.complexible.stardog.plan.eval.operator.OperatorException: Query execution cancelled: Execution time exceeded query timeout 300000
at com.complexible.stardog.plan.eval.operator.impl.AbstractOperator.checkCanceled(AbstractOperator.java:139) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.IndexScan.computeNext(IndexScan.java:376) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.IndexScan.computeNext(IndexScan.java:40) ~[stardog-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.SimpleEquiJoinKeyIterator.hasNext(SimpleEquiJoinKeyIterator.java:93) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.ResetableEquiJoinIterator.hasNext(ResetableEquiJoinIterator.java:106) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.MergeJoinOp$InnerJoinCrossProductIterator.hasNext(MergeJoinOp.java:539) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.MergeJoinOp._nextCross(MergeJoinOp.java:162) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.MergeJoinOp.computeNext(MergeJoinOp.java:236) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.MergeJoinOp.computeNext(MergeJoinOp.java:34) ~[stardog-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.LoopJoin.computeNext(LoopJoin.java:196) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.LoopJoin.computeNext(LoopJoin.java:25) ~[stardog-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.LoopJoin.computeNext(LoopJoin.java:196) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.LoopJoin.computeNext(LoopJoin.java:25) ~[stardog-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.SingleProjectionOp.computeNext(SingleProjectionOp.java:83) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.SingleProjectionOp.computeNext(SingleProjectionOp.java:33) ~[stardog-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.LazyUnsortedGroupify$1.computeNext(GroupifyAlgorithms.java:139) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.LazyUnsortedGroupify$1.computeNext(GroupifyAlgorithms.java:130) ~[stardog-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.AbstractGroupOp.computeNext(AbstractGroupOp.java:141) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.AbstractGroupOp.computeNext(AbstractGroupOp.java:34) ~[stardog-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.DistinctOp.computeNext(DistinctOp.java:53) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.DistinctOp.computeNext(DistinctOp.java:21) ~[stardog-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.util.AutoCloseOperator.computeNext(AutoCloseOperator.java:87) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.util.AutoCloseOperator.computeNext(AutoCloseOperator.java:25) ~[stardog-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.util.OpBasedBindingSetIteration.computeNext(OpBasedBindingSetIteration.java:110) ~[stardog-4.1.1.jar:?]
at com.complexible.stardog.plan.eval.operator.util.OpBasedBindingSetIteration.computeNext(OpBasedBindingSetIteration.java:34) ~[stardog-4.1.1.jar:?]
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:?]
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:?]
at com.complexible.common.rdf.query.IteratorAsTupleQueryResult.hasNext(IteratorAsTupleQueryResult.java:77) ~[stardog-utils-rdf-4.1.1.jar:?]
at com.complexible.stardog.protocols.server.ConnectionFinishQueryResult.hasNext(ConnectionFinishQueryResult.java:75) ~[stardog-protocols-spec-server-4.1.1.jar:?]
at com.complexible.stardog.protocols.server.ConnectionFinishQueryResult.next(ConnectionFinishQueryResult.java:91) ~[stardog-protocols-spec-server-4.1.1.jar:?]
at org.openrdf.query.QueryResults.report(QueryResults.java:159) ~[sesame-query-4.0.0.jar:?]
at org.openrdf.query.resultio.QueryResultIO.writeTuple(QueryResultIO.java:449) ~[sesame-queryresultio-api-4.0.0.jar:?]
at com.complexible.stardog.protocols.http.server.io.ResponseBodyEncoders$13.encode(ResponseBodyEncoders.java:468) ~[stardog-protocols-http-server-4.1.1.jar:?]
... 11 more



Before that I could only see the problem I mentioned:


WARN  2016-06-29 17:03:59,404 [main] com.complexible.stardog.StardogKernel:throwUpgradeDisabledException(1958): Unable to start.  One or more databases are using obsolete formats and automatic upgrade is disabled. To always automatically upgrade, set `upgrade.automatic` to `true` in your `stardog.properties` file.  To manually upgrade, start the server with the `--upgrade` flag. Upgrades are one-time only and not backward compatible.
There was an error initializing Stardog; one or more dependencies could not be satisfied. Please verify your classpath is correct.
The initialization errors were: 
 * Error injecting constructor, com.complexible.stardog.StardogException: Could not load system information
com.complexible.stardog.StardogKernel.<init>()
com.complexible.stardog.StardogKernel
  Caused by:
com.complexible.stardog.StardogException: Could not load system information
at com.complexible.stardog.RdfSystemInfo.init(RdfSystemInfo.java:151)
at com.complexible.stardog.StardogKernel.<init>(StardogKernel.java:346)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
......
WARN  2016-06-29 17:04:51,223 [main] com.complexible.stardog.metadata.MetadataIO:readBytes(260): Unrecognized option in the metadata: spatial.last.commit.id
WARN  2016-06-29 17:04:51,224 [main] com.complexible.stardog.metadata.MetadataIO:readBytes(260): Unrecognized option in the metadata: index.last.commit.id
WARN  2016-06-29 17:04:51,229 [main] com.complexible.stardog.metadata.MetadataIO:readBytes(260): Unrecognized option in the metadata: spatial.last.commit.id
WARN  2016-06-29 17:04:51,230 [main] com.complexible.stardog.metadata.MetadataIO:readBytes(260): Unrecognized option in the metadata: index.last.commit.id
INFO  2016-06-29 17:04:52,365 [main] com.complexible.stardog.StardogKernel:start(1864): Initializing Stardog
WARN  2016-06-29 17:04:52,422 [main] com.complexible.stardog.metadata.MetadataIO:readBytes(260): Unrecognized option in the metadata: spatial.last.commit.id
WARN  2016-06-29 17:04:52,422 [main] com.complexible.stardog.metadata.MetadataIO:readBytes(260): Unrecognized option in the metadata: index.last.commit.id
WARN  2016-06-29 17:04:52,423 [main] com.complexible.stardog.metadata.MetadataIO:readBytes(260): Unrecognized option in the metadata: spatial.last.commit.id
WARN  2016-06-29 17:04:52,423 [main] com.complexible.stardog.metadata.MetadataIO:readBytes(260): Unrecognized option in the metadata: index.last.commit.id

Thanks

Pavel Klinov

unread,
Jun 30, 2016, 3:53:54 AM6/30/16
to sta...@clarkparsia.com
No, I don't think this is the root cause for the client-side exception in your previous email. 

Can you do one more clean test? That is, run your queries via the Java API and if some of them fail, see if there's anything in the server log. If there's nothing but the queries fail consistently, we'd be grateful if you can share the data so we can try to reproduce it on our end.

Thanks,
Pavel

justforthe...@gmail.com

unread,
Jul 5, 2016, 12:29:24 PM7/5/16
to Stardog
You are right Pavel... With a clean test there was nothing relevant in the logs.

I had no time to invest to research the problem so I got back to version 4.0.5, which works perfectly fine. I will try again in future with a future release and a clean database, and update this thread with my findings if something strange happens.

Thanks for your help.

Charbel Kaed

unread,
Oct 26, 2016, 10:40:18 AM10/26/16
to Stardog, justforthe...@gmail.com
Hello,

I am having the same problem on 4.2 and is disappears with version 4.1.3.

Here is the trace:
As of Stardog 4.2, the SNARL protocol is deprecated and will be removed in Stardog 5;
com.complexible.stardog.server.StardogConnectionException: Channel closed before response from server
        at com.complexible.stardog.protocols.client.SPECClientUtil.toStardogException(SPECClientUtil.java:66)
        at com.complexible.stardog.protocols.client.SPECClientUtil.toStardogException(SPECClientUtil.java:34)
        at com.complexible.stardog.protocols.snarl.client.SNARLDriver.connect(SNARLDriver.java:131)
        at com.complexible.stardog.api.DriverManager.getConnection(DriverManager.java:74)
        at com.complexible.stardog.api.ConnectionConfiguration.connect(ConnectionConfiguration.java:126)
        at semanticstore.ontology.query.Handler.query(Handler.java:89)
        at semanticstore.ontology.query.Handler.main(Handler.java:61)
Caused by: java.net.ConnectException: Channel closed before response from server
        at com.complexible.common.protocols.client.rpc.DefaultRPCClient.get(DefaultRPCClient.java:284)
        at com.complexible.common.protocols.client.rpc.DefaultRPCClient.execute(DefaultRPCClient.java:254)
        at com.complexible.stardog.protocols.snarl.client.AbstractSNARLClient.connect(AbstractSNARLClient.java:99)
        at com.complexible.stardog.protocols.snarl.client.AbstractSNARLClient.connect(AbstractSNARLClient.java:61)
        at com.complexible.stardog.protocols.snarl.client.SNARLDriver.connect(SNARLDriver.java:115)
        ... 4 more
2016-10-26 14:39:51 ERROR Handler:140 - No results returned !

Schuhmacher, Michael, Springer DE

unread,
Oct 26, 2016, 10:41:51 AM10/26/16
to sta...@clarkparsia.com

With version 4.2 the server is not offering SNARL as default any more. You have to start the stardog server with the option to activate SNARL protocol (I think its –snarl). Michael

--

-- --
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
---

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+u...@clarkparsia.com.

charbe...@gmail.com

unread,
Oct 26, 2016, 12:04:58 PM10/26/16
to sta...@clarkparsia.com
Great! It was working from time to time. I swtiched from snarl:// 
Thanks

Charbel
You received this message because you are subscribed to a topic in the Google Groups "Stardog" group.
To unsubscribe from this topic, visit https://groups.google.com/a/clarkparsia.com/d/topic/stardog/iVfjR_e4WTg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stardog+u...@clarkparsia.com.
Reply all
Reply to author
Forward
0 new messages