[
https://issues.apache.org/jira/browse/HTTPASYNC-150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Priyanga C. Gunaratne updated HTTPASYNC-150:
--------------------------------------------
Description:
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.
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}
was:
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.
Is this a bug or expected behaviour? The set of examples do not appear to cover
using a route planner with the async client.
> 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.
> 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]