You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Jeremy Long (Jira)" <ji...@apache.org> on 2023/04/22 15:24:00 UTC

[jira] [Closed] (HTTPCORE-741) WARNING: Illegal reflective access by org.apache.hc.core5.util.ReflectionUtils$1

     [ https://issues.apache.org/jira/browse/HTTPCORE-741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Long closed HTTPCORE-741.
--------------------------------
    Resolution: Invalid

I had an issue with gradle pulling in downgraded versions.

> WARNING: Illegal reflective access by org.apache.hc.core5.util.ReflectionUtils$1
> --------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-741
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-741
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore
>    Affects Versions: 5.2.1
>            Reporter: Jeremy Long
>            Priority: Minor
>
> 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 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)?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org