title: Java: the trustAnchors parameter must be non-empty (openjdk)
body: <p>I want to connect to a site via HttpURLConnection. First of all I stumbled accross <em>javax.net.ssl.SSLHandshakeException</em>, as I've forgotten to add the carcerts via <em>keytool -importcert</em> for the site under .../lib/security. After that, the connection could have been established with ease.</p>
  
  <p>However, today it's not working anymore, without changing code nor anything else. Following exception is seemed to be thrown:</p>
  
  <pre><code> javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the 
   trustAnchors parameter must be non-empty
  </code></pre>
  
  <p>Even though there are plenty of possible solutions on the net, none of them could me get rid off this error.</p>
  
  <p>Maybe there is some setup needed to be done inside eclipse?</p>