jira-importer opened a new issue, #1531: URL: https://github.com/apache/httpcomponents-core/issues/1531
**[Jeremy Long](https://issues.apache.org/jira/secure/[email protected])** opened **[HTTPCORE-741](https://issues.apache.org/jira/browse/HTTPCORE-741?redirect=false)** and commented Using the following code: `SystemDefaultRoutePlanner planner = new SystemDefaultRoutePlanner(ProxySelector.getDefault());` `CloseableHttpAsyncClient httpClient = HttpAsyncClients.custom().setRoutePlanner(planner).build();` `httpClient.start();` I receive the error: `{}WARNING: An illegal reflective access operation has occurred{`}`{}WARNING: Illegal reflective access by org.apache.hc.core5.util.ReflectionUtils$1 (jar:file:/Users/jeremy/Projects/vuln-tools/vulnz/build/libs/vulnz-3.0.0.jar!/BOOT-INF/lib/httpcore5-5.1.4.jar!/) to method sun.security.ssl.SSLEngineImpl.getApplicationProtocol(){`} I've seen [HTTPCORE-664](https://issues.apache.org/jira/browse/HTTPCORE-664) However, the referenced solution appears to be for httpclient5.1.x (see https://github.com/apache/httpcomponents-client/blob/rel/v5.1.4/httpclient5/src/test/java/org/apache/hc/client5/http/examples/AsyncClientTlsAlpn.java#L64). Using 5.2.x the referenced APIs are marked as deprecated. Is there an updated solution that does not use a deprecated API (specifically the call to `setTlsDetailsFactory` is deprecated)? --- **Affects:** 5.2.1 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
