Friday, January 20, 2017

java.security.NoSuchAlgorithmException: SunX509 SSLContext not available

The following line of code throws the exception.

SSLContext sc = SSLContext.getDefault();

The exception:
java.security.NoSuchAlgorithmException: SunX509 SSLContext not available
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
        at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)

The default SSLContext is SunX509 which is not supported.

Use a supported SSLContext algorithm to avoid the exception.

      SSLContext sc = SSLContext.getInstance("<algorithm name>");

You may find the SSLContext algorithm here.

-----------------------------------------------------------------------------------------------------------------
Watch the blessing and loving online channel: SupremeMasterTV live




If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.

No comments:

Post a Comment