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

Priyanga C. Gunaratne commented on HTTPASYNC-150:
-------------------------------------------------

[~olegk], thank you for the quick response. Yes, taking a shortcut in building 
the URI was the turned out to be the cause. 

We are migrating an application that uses the blocking HTTP library to the 
async HTTP library and it turned out there are some additional checks in the 
new library.  

> execute(HttpUriRequest, HttpUriRequest) does not use route planner
> ------------------------------------------------------------------
>
>                 Key: HTTPASYNC-150
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-150
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>            Reporter: Priyanga C. Gunaratne
>            Priority: Major
>
> Calling the {{execute(HttpUriRequest, HttpUriRequest)}} method in the 
> {{CloseableHttpAsyncClient}} class does not appear to call the route planner. 
> The route planner was configured using the 
> {{HttpAsyncClientBuilder.setRoutePlanner}} method.
> Library and version are {{org.apache.httpcomponents:httpasyncclient:4.1.4}}.
> Is this a bug or expected behaviour? The set of examples do not appear to 
> cover using a route planner with the async client.
> The error message is {{"HTTP host may not be null"}} and some lines from the 
> stack trace:
> {noformat}
> {"methodName":"notNull","fileName":"Args.java","lineNumber":54,"className":"org.apache.http.util.Args","nativeMethod":false},
> {"methodName":"create","fileName":"HttpAsyncMethods.java","lineNumber":72,"className":"org.apache.http.nio.client.methods.HttpAsyncMethods","nativeMethod":false},
> {"methodName":"execute","fileName":"CloseableHttpAsyncClient.java","lineNumber":76,"className":"org.apache.http.impl.nio.client.CloseableHttpAsyncClient","nativeMethod":false},
> {"methodName":"execute","fileName":"CloseableHttpAsyncClient.java","lineNumber":108,"className":"org.apache.http.impl.nio.client.CloseableHttpAsyncClient","nativeMethod":false},
> {"methodName":"execute","fileName":"CloseableHttpAsyncClient.java","lineNumber":92,"className":"org.apache.http.impl.nio.client.CloseableHttpAsyncClient","nativeMethod":false},
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to