Note that there are some explanatory texts on larger screens.

plurals
  1. POJava NoSuchAlgorithmException - SunJSSE, sun.security.ssl.SSLContextImpl$DefaultSSLContext
    primarykey
    data
    text
    <p><strong>Background</strong></p> <p>I have been using the Authorize.net SDK in an Eclipse project of it's own. Everything was working great. I then needed to add it to my main project. I added the dependencies to the class path and the copied in the block of code that I needed. It should have worked.</p> <p><strong>Problem</strong></p> <p>Long story short, the code wouldn't work where I placed it. However, it will work when I bring it right out to the main method in the project.</p> <p>In the place it won't work I stepped through the code with the debugger and found the following exception:</p> <pre><code>java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext) </code></pre> <p>thrown at:</p> <pre><code>HttpResponse httpResponse = httpClient.execute(httpPost); </code></pre> <p>Note: httpClient = <a href="http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/client/DefaultHttpClient.html" rel="noreferrer">DefaultHttpClient</a> from Apache</p> <p>I'm completely stumped now. Don't what is causing this error. In Eclipse both products appear to be targeting the same JRE. They also both have httpclient-4.0.1.jar. Note that The problematic project also has some other dependencies that the working project doesnt { boneCP, guava, mysql_connector_java, protobuf }</p> <p>I don't think the extra jars are the cause as the problem code works at a different location in the project.</p> <p>Any ideas on what is wrong are greatly appreciated, i've spent the day debugging this and don't know where to go next.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload