title: SSLException while accessing rest web services
body: <p>I have a requirement to access a https URL on startup of my server using jax-rs to get some unique session key. However, once the session is expired i will again fire the hit to this URL and get my session key back. </p>
  
  <p>I noticed that while I send the request to get the expired session back, I get this error.</p>
  
  <pre><code>     javax.ws.rs.ProcessingException: javax.net.ssl.SSLException:             
   java.lang.RuntimeException: Unexpected error:  
   java.security.InvalidAlgorithmParameterException: the 
   trustAnchors parameter must be non-empty
  </code></pre>
  
  <p>In this scenario if I start my server, I am all good with my session key back. Please advise how to analyze this issue and how can I reproduce this issue as required to handle exception well in the code.</p>