Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure (using Rest API, JDK 7

edited May 3, 2019 11:33AM in OCI - General 2 comments

Summary

I am using REST API for fetching list of compartments. When i use JDK 8, i am getting the response and when i switch to JDK 7, getting the handshake failure error.

Content

I used as per the sample code mentioned here Signing in Java 8. After that, since my project uses java 7, i rewrote the code in java 7. But getting the below exception

<span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; box-sizing: inherit; color: rgb(48, 51, 54);">javax</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; box-sizing: inherit; color: rgb(48, 51, 54);">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; box-sizing: inherit; color: rgb(48, 51, 54);">net</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!