OkHttp 3.x fails with OpenJDK Zulu 8.0.252
See original GitHub issueHi folks,
We found that this particular piece of code in okhttp 3.x: https://github.com/square/okhttp/blob/okhttp_3.14.x/okhttp/src/main/java/okhttp3/internal/platform/Jdk9Platform.java#L81-L94 breaks.
This checks for setApplicationProtocols
and getApplicationProtocol
which are JDK 9. however, these ones got backported to Zulu 8.0.252 causing OkHttp believing that is running on jdk9 and initializing a Jdk9Platform
which breaks projects
Wondering if a patch could be released for 3.x since there are several libraries and projects out there that haven’t migrated to 4.x
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:22
Top Results From Across the Web
SSLException with latest Java Zulu 8.0.252 - Stack Overflow
This custom Trust Manager implements X509TrustManager class and returns ... To avoid this error, i have disabled TLS 1.3 support in Payara.
Read more >Download Azul JDKs
Download Java Builds of OpenJDK 8, 11, 13, 15, 17, 19. Azul Zulu Builds of OpenJDK runs on Linux, Windows, macOS & Solaris...
Read more >Past Agent Releases - AppDynamics Documentation
This release includes: Support for Red Hat OpenJDK 8. See Java Supported Environments and Object Instance Tracking for Java. Support for Apache Kafka...
Read more >Solved: Re: InvokeHTTP randomly hangs - Cloudera Community
To update - the combination of NiFi 1.12.1 and OpenJDK 1.8u242 works fine - left it ... newTimeoutException(Http2Stream.java:593) at okhttp3.internal.http2.
Read more >Azul Zulu OpenJDK 15 on the Raspberry Pi - Foojay
With the SDKMAN tool, you can get a list of available JDKs on your Raspberry Pi and switch to Java 15 with a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why would anyone do that???
Looks great! JDK 9 platform activates and the fallback for
UnsupportedOperationException
for our incompatible SslSocket wrapper successfully falls back to HTTP/1.