Github user afs commented on the issue:

    https://github.com/apache/jena/pull/151
  
    This
    
    ```
            HttpClient hc = HttpOp.createPoolingHttpClient() ;
            HttpOp.setDefaultHttpClient(hc);
            String queryString = "SELECT * { ?s ?p ?o }" ;
            String service = "http://sparql.org/books/sparql"; ;
            Query query = QueryFactory.create(queryString) ;
            QueryExecution qExec = QueryExecutionFactory.sparqlService(service, 
query) ;
            QueryExecUtils.executeQuery(qExec);
    ```
    causes this:
    ```
    Exception in thread "main" java.lang.UnsupportedOperationException
        at 
org.apache.http.impl.client.InternalHttpClient.getParams(InternalHttpClient.java:210)
        at 
org.apache.jena.sparql.engine.http.HttpQuery.execGet(HttpQuery.java:325)
        at org.apache.jena.sparql.engine.http.HttpQuery.exec(HttpQuery.java:292)
        at 
org.apache.jena.sparql.engine.http.QueryEngineHTTP.execResultSetInner(QueryEngineHTTP.java:362)
        at 
org.apache.jena.sparql.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:354)
        at 
org.apache.jena.sparql.util.QueryExecUtils.doSelectQuery(QueryExecUtils.java:196)
        at 
org.apache.jena.sparql.util.QueryExecUtils.executeQuery(QueryExecUtils.java:78)
        at 
org.apache.jena.sparql.util.QueryExecUtils.executeQuery(QueryExecUtils.java:66)
        at 
org.apache.jena.sparql.util.QueryExecUtils.executeQuery(QueryExecUtils.java:62)
        at dev.DevMain.main(DevMain.java:65)
    ```
    because `HttpQuery` does this:
    ```
    private void selectClient() {
            // May use configured default client where appropriate
            this.client = HttpOp.getDefaultHttpClient();
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to