java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Jenkins JIRA | stephenconnolly | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Fresh install of RHEL5.2 yum install openjdk wget hudson.war java -jar hudson.war firefox http://localhost:8080/ Goto plugin management Set up the proxy settings Go to list of available plugins Select any plugin for installation Click install get barf: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1316) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1310) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:964) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at hudson.model.UpdateCenter$InstallationJob.run(UpdateCenter.java:459) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1611) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1574) at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1557) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1150) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1127) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:423) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:997) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2072) at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:596) at java.net.URLConnection.getContentLength(URLConnection.java:491) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:398) at hudson.model.UpdateCenter$InstallationJob.run(UpdateCenter.java:458) ... 6 more Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at sun.security.validator.PKIXValidator.(PKIXValidator.java:75) at sun.security.validator.Validator.getInstance(Validator.java:178) at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:129) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:225) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:973) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:142) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:533) at sun.security.ssl.Handshaker.process_record(Handshaker.java:471) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:904) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1116) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1143) ... 15 more Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200) at java.security.cert.PKIXParameters.(PKIXParameters.java:120) at java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:104) at sun.security.validator.PKIXValidator.(PKIXValidator.java:73) ... 26 more

    Jenkins JIRA | 9 years ago | stephenconnolly
    java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
  2. 0

    com.google.gdata.util.AuthenticationException: Error connecting with login URI

    Stack Overflow | 6 years ago | Tom Marthenal
    com.google.gdata.util.AuthenticationException: Error connecting with login URI
  3. 0

    JavaBot does not log in!

    GitHub | 2 years ago | ByteCommander
    javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 71#34295135

    GitHub | 3 years ago | THEBRANDYMAN
    javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
  6. 0

    GitHub comment 71#33336263

    GitHub | 3 years ago | THEBRANDYMAN
    javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.InvalidAlgorithmParameterException

      the trustAnchors parameter must be non-empty

      at java.security.cert.PKIXParameters.setTrustAnchors()
    2. Java RT
      Validator.getInstance
      1. java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)
      2. java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)
      3. java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104)
      4. sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:73)
      5. sun.security.validator.Validator.getInstance(Validator.java:178)
      5 frames
    3. Java JSSE
      SSLSocketImpl.startHandshake
      1. sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:129)
      2. sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:225)
      3. sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270)
      4. sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:973)
      5. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:142)
      6. sun.security.ssl.Handshaker.processLoop(Handshaker.java:533)
      7. sun.security.ssl.Handshaker.process_record(Handshaker.java:471)
      8. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:904)
      9. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1116)
      10. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1143)
      11. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1127)
      11 frames
    4. Java RT
      HttpsURLConnectionImpl.getContentLength
      1. sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:423)
      2. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
      3. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:997)
      4. sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2072)
      5. java.net.URLConnection.getHeaderFieldInt(URLConnection.java:596)
      6. java.net.URLConnection.getContentLength(URLConnection.java:491)
      7. sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:398)
      7 frames
    5. Hudson
      UpdateCenter$InstallationJob.run
      1. hudson.model.UpdateCenter$InstallationJob.run(UpdateCenter.java:458)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      6. java.lang.Thread.run(Thread.java:636)
      6 frames