> HttpException: -1 Unexpected error making the query:
> java.net.SocketException: Connection reset

This is a problem at a low level in the networking stack (fake status code -1 from Jena also says it's not an HTTP error). The other end responded with a TCP RST (the connection reset bit) which is attempt to use a connection the other end thinks is closed or does not exist.

There are many reasons that can cause this - some kind of network environmental issue between client and server.

Having a reverse proxy (RP) in front of the Fuseki server is one possible cause e.g. when Fuseki isn't there but the reverse proxy is, there can be a rejection at the TCP level. Or the RP has rebooted reboot.

There are many reasons (StackOverflow has many questions about this).

Check the Fuseki server log - did the query even reach the server? Resets usually happen at the start (e.g after a long period of no use and the RP has timed the connection out (Fuseki, standalone, hasn't configured to Jetty to do this)..

If it did reach the server, then some intermediate may have forcefully closed the connection.

    Andy

On 23/11/17 22:38, Mohammad Noorani Bakerally wrote:
I am getting an exception when executing the following a valid construct
query on Fuseki via jena. Any idea about this problem ?

The query:
==============
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX data: <http://opensensingcity.emse.fr/LDPDesign/data/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX : <http://opensensingcity.emse.fr/LDPDesignVocabulary/>
CONSTRUCT { <
https://bistrotdepays.opendatasoft.com/id/theme/Sport%2C%20Loisirs> ?p ?o .
} WHERE {  <
https://bistrotdepays.opendatasoft.com/id/theme/Sport%2C%20Loisirs> ?p ?o .
}



The exception:
============
HttpException: -1 Unexpected error making the query:
java.net.SocketException: Connection reset

at org.apache.jena.sparql.engine.http.HttpQuery.rewrap(HttpQuery.java:374)
at org.apache.jena.sparql.engine.http.HttpQuery.execGet(HttpQuery.java:337)
at org.apache.jena.sparql.engine.http.HttpQuery.exec(HttpQuery.java:288)
at
org.apache.jena.sparql.engine.http.QueryEngineHTTP.execConstructWorker(QueryEngineHTTP.java:465)
at
org.apache.jena.sparql.engine.http.QueryEngineHTTP.execModel(QueryEngineHTTP.java:428)
at
org.apache.jena.sparql.engine.http.QueryEngineHTTP.execConstruct(QueryEngineHTTP.java:389)
at
org.apache.jena.sparql.engine.http.QueryEngineHTTP.execConstruct(QueryEngineHTTP.java:384)
at
loader.configuration.SPARQLDataSource.executeGraphQuery(SPARQLDataSource.java:43)
at genPLDPD.Evaluation.evalRM(Evaluation.java:136)

Reply via email to