[
https://issues.apache.org/jira/browse/HTTPCORE-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888981#comment-17888981
]
ASF subversion and git services commented on HTTPCORE-771:
----------------------------------------------------------
Commit cf2070a56fd72eb2a06f8319c4d664332554f495 in httpcomponents-core's branch
refs/heads/5.3.x from Oleg Kalnichevski
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-core.git;h=cf2070a56 ]
HTTPCORE-771: Ignore java.lang.UnsupportedOperationException when gracefully
shutting classic SSL sockets for compatibility with Oracle JDK 1.8
> Exception when using HttpClient 5.4 with Oracle Java 8
> ------------------------------------------------------
>
> Key: HTTPCORE-771
> URL: https://issues.apache.org/jira/browse/HTTPCORE-771
> Project: HttpComponents HttpCore
> Issue Type: Improvement
> Components: HttpCore
> Affects Versions: 5.3
> Environment: Oracle Java 8 (Windows and Linux)
> Reporter: Bernhard Fey
> Priority: Minor
> Fix For: 5.3.1, 5.4-alpha1
>
> 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: [email protected]
For additional commands, e-mail: [email protected]