[ 
https://issues.apache.org/jira/browse/JENA-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15568105#comment-15568105
 ] 

ASF GitHub Bot commented on JENA-576:
-------------------------------------

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();
    ```


> Upgrade Apache HTTP Client to 4.3
> ---------------------------------
>
>                 Key: JENA-576
>                 URL: https://issues.apache.org/jira/browse/JENA-576
>             Project: Apache Jena
>          Issue Type: Dependency upgrade
>          Components: ARQ
>    Affects Versions: Jena 2.11.0
>            Reporter: Rob Vesse
>            Assignee: Rob Vesse
>            Priority: Minor
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> As of 2.11.0 ARQ centralizes all HTTP operations through HttpOp which relies 
> on Apache HTTP Client.  Currently we are using 4.2.3 while the latest stable 
> release is actually 4.3.1
> Therefore we should look at upgrading our code to use the latest version 
> which may entail some refactoring since there appears to have been some 
> breaking changes across the minor version bump which users have seen in usage 
> - e.g. 
> https://github.com/pyvandenbussche/sparqles/issues/9#issuecomment-27220738



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to