org.apache.http.ssl.SSLInitializationException: TLS SSLContext not available

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

TLS v1.2 wasn't implemented until java 7. Try upgrading your Java version or if you're stuck in java 5 or 6 and REALLY need to use TLS v1.2 try using BouncyCastle: https://goo.gl/Tg3jd0

,
Expert tip

This might also be because you're not initializing java the right way. Try to initialize with -server, and that might turn TLSv1.2 on!

Solutions on the web

via Stack Overflow by Wenburg Yan
, 1 year ago
TLS SSLContext not available
via Stack Overflow by Phillip
, 4 months ago
class configured for SSLContext: sun.security.ssl.SSLContextImpl$TLSContext not a SSLContext
java.security.NoSuchAlgorithmException: TLS SSLContext not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:966)
at yan.javatips.closure.HttpTest2.main(HttpTest2.java:26)

Users with the same issue

Once, 1 month ago
2 times, 8 months ago
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.