[ https://issues.apache.org/jira/browse/HTTPCLIENT-2345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887589#comment-17887589 ]
Michael Osipov commented on HTTPCLIENT-2345: -------------------------------------------- If this works with OpenJDK, then I would recommend to open an issue with MOSC and have the actual fix backported to Oracle Java 8 after all. totally unclear, why this hasn't been cherry-picked to Oracle's distro. > Exception when using HttpClient 5.4 with Oracle Java 8 > ------------------------------------------------------ > > Key: HTTPCLIENT-2345 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2345 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient (classic) > Affects Versions: 5.4 > Environment: Oracle Java 8 (Windows and Linux) > Reporter: Bernhard Fey > Priority: Minor > Attachments: J8HttpsErrorTest.java > > > When updating to version 5.4 our tests with Oracle Java 8 fail with the > following exception: > java.lang.UnsupportedOperationException: method is not supported because of > the TLS half-close policy > at sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:765) > at sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:743) > at > org.apache.hc.core5.http.impl.io.BHttpConnectionBase.close(BHttpConnectionBase.java:255) > at > org.apache.hc.core5.http.impl.io.DefaultBHttpClientConnection.close(DefaultBHttpClientConnection.java:71) > at > org.apache.hc.client5.http.impl.io.DefaultManagedHttpClientConnection.close(DefaultManagedHttpClientConnection.java:176) > at > org.apache.hc.core5.pool.PoolEntry.discardConnection(PoolEntry.java:180) > at > org.apache.hc.core5.pool.StrictConnPool$PerRoutePool.shutdown(StrictConnPool.java:839) > at org.apache.hc.core5.pool.StrictConnPool.close(StrictConnPool.java:142) > at > org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.close(PoolingHttpClientConnectionManager.java:277) > at > org.apache.hc.client5.http.impl.classic.InternalHttpClient.close(InternalHttpClient.java:198) > at > org.apache.hc.client5.http.impl.classic.InternalHttpClient.close(InternalHttpClient.java:188) > at J8HttpsErrorTest.main(J8HttpsErrorTest.java:22) > I have attached a test class, which fails in Oracle Java 8 with the above > exception, but finishes correctly with Java 11 or OpenJDK 8. > It has been tested on Windows 10, but the Oracle Java 8 exception also occurs > on Linux in our integration. > The specific VM the exception was reproduced with is "Oracle Corporation Java > HotSpot(TM) 64-Bit Server VM 1.8.0_411-b09". -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org