org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials

Jenkins JIRA | Andrew Lin | 2 years ago
  1. 0

    Get the following error: {code} 16:17:59 Upload failed: org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials 16:17:59 at org.jenkinsci.plugins.googleplayandroidpublisher.CredentialsHandler.getServiceAccountCredentials(CredentialsHandler.java:42) 16:17:59 at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:302) 16:17:59 at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) 16:17:59 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) 16:17:59 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) 16:17:59 at hudson.model.Build$BuildExecution.post2(Build.java:183) 16:17:59 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) 16:17:59 at hudson.model.Run.execute(Run.java:1784) 16:17:59 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 16:17:59 at hudson.model.ResourceController.execute(ResourceController.java:89) 16:17:59 at hudson.model.Executor.run(Executor.java:240) 16:17:59 Caused by: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials 16:17:59 at com.google.jenkins.plugins.credentials.oauth.RemotableGoogleCredentials.<init>(RemotableGoogleCredentials.java:70) 16:17:59 at com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials.forRemote(GoogleRobotCredentials.java:204) 16:17:59 at org.jenkinsci.plugins.googleplayandroidpublisher.CredentialsHandler.getServiceAccountCredentials(CredentialsHandler.java:26) 16:17:59 ... 10 more 16:17:59 Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 16:17:59 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1731) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1692) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1675) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1204) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1181) 16:17:59 at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434) 16:17:59 at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166) 16:17:59 at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014) 16:17:59 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230) 16:17:59 at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77) 16:17:59 at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965) 16:17:59 at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:283) 16:17:59 at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307) 16:17:59 at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:269) 16:17:59 at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489) 16:17:59 at com.google.jenkins.plugins.credentials.oauth.RemotableGoogleCredentials.<init>(RemotableGoogleCredentials.java:64) 16:17:59 ... 12 more 16:17:59 Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 16:17:59 at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:57) 16:17:59 at sun.security.validator.Validator.getInstance(Validator.java:161) 16:17:59 at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:108) 16:17:59 at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:204) 16:17:59 at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249) 16:17:59 at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1185) 16:17:59 at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136) 16:17:59 at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593) 16:17:59 at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:925) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1170) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1197) 16:17:59 ... 24 more 16:17:59 Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 16:17:59 at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183) 16:17:59 at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:103) 16:17:59 at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:87) 16:17:59 at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:55) 16:17:59 ... 35 more {code}

    Jenkins JIRA | 2 years ago | Andrew Lin
    org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials
  2. 0

    Get the following error: {code} 16:17:59 Upload failed: org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials 16:17:59 at org.jenkinsci.plugins.googleplayandroidpublisher.CredentialsHandler.getServiceAccountCredentials(CredentialsHandler.java:42) 16:17:59 at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:302) 16:17:59 at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) 16:17:59 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) 16:17:59 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) 16:17:59 at hudson.model.Build$BuildExecution.post2(Build.java:183) 16:17:59 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) 16:17:59 at hudson.model.Run.execute(Run.java:1784) 16:17:59 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 16:17:59 at hudson.model.ResourceController.execute(ResourceController.java:89) 16:17:59 at hudson.model.Executor.run(Executor.java:240) 16:17:59 Caused by: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials 16:17:59 at com.google.jenkins.plugins.credentials.oauth.RemotableGoogleCredentials.<init>(RemotableGoogleCredentials.java:70) 16:17:59 at com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials.forRemote(GoogleRobotCredentials.java:204) 16:17:59 at org.jenkinsci.plugins.googleplayandroidpublisher.CredentialsHandler.getServiceAccountCredentials(CredentialsHandler.java:26) 16:17:59 ... 10 more 16:17:59 Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 16:17:59 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1731) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1692) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1675) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1204) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1181) 16:17:59 at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434) 16:17:59 at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166) 16:17:59 at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014) 16:17:59 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230) 16:17:59 at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77) 16:17:59 at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965) 16:17:59 at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:283) 16:17:59 at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307) 16:17:59 at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:269) 16:17:59 at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489) 16:17:59 at com.google.jenkins.plugins.credentials.oauth.RemotableGoogleCredentials.<init>(RemotableGoogleCredentials.java:64) 16:17:59 ... 12 more 16:17:59 Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 16:17:59 at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:57) 16:17:59 at sun.security.validator.Validator.getInstance(Validator.java:161) 16:17:59 at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:108) 16:17:59 at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:204) 16:17:59 at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249) 16:17:59 at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1185) 16:17:59 at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136) 16:17:59 at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593) 16:17:59 at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:925) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1170) 16:17:59 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1197) 16:17:59 ... 24 more 16:17:59 Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 16:17:59 at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183) 16:17:59 at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:103) 16:17:59 at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:87) 16:17:59 at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:55) 16:17:59 ... 35 more {code}

    Jenkins JIRA | 2 years ago | Andrew Lin
    org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials
  3. 0

    intellij - upload google application error

    Stack Overflow | 6 years ago | mihai
    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

    CXF異常:org.apache.cxf.interceptor.Fault: Could not send Message_IT客

    itkee.com | 1 year ago
    org.apache.cxf.interceptor.Fault: Could not send Message. at org. .cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
  6. 0

    Upgraded to OSX Maveriks and Titanium Studio 3.1.4 Get an Error when logging in and when I go through the command line i get the following error {code} javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1747) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1708) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1691) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1222) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1199) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230) at com.appcelerator.titanium.core.TitaniumUserManager.signIn(TitaniumUserManager.java:136) at com.appcelerator.titanium.rcp.handlers.TitaniumSplashHandler$15.run(TitaniumSplashHandler.java:929) Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:57) at sun.security.validator.Validator.getInstance(Validator.java:161) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:108) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:204) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1188) at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:135) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:943) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1215) ... 7 more Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183) at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:103) at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:87) at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:55) ... 18 more {code} Attempting the SSL certifcate fix gives the following error {code} sudo keytool –import –keystore /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts –alias my_cert –file mycertfile.pem Password: keytool error: java.lang.RuntimeException: Usage error, ?import is not a legal command {code}

    Appcelerator JIRA | 3 years ago | Mauro Parra-Miranda
    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:183)
      2. java.security.cert.PKIXParameters.<init>(PKIXParameters.java:103)
      3. java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:87)
      4. sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:55)
      5. sun.security.validator.Validator.getInstance(Validator.java:161)
      5 frames
    3. Java JSSE
      SSLSocketImpl.startHandshake
      1. com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:108)
      2. com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:204)
      3. com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
      4. com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1185)
      5. com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136)
      6. com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
      7. com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
      8. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:925)
      9. com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1170)
      10. com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1197)
      11. com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1181)
      11 frames
    4. Java RT
      HttpsURLConnectionImpl.getOutputStream
      1. sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
      2. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
      3. sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014)
      4. sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)
      4 frames
    5. Google HTTP Client Library for Java
      HttpRequest.execute
      1. com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77)
      2. com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965)
      2 frames
    6. Google OAuth Client Library for Java
      TokenRequest.execute
      1. com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:283)
      2. com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
      2 frames
    7. Google APIs Client Library for Java
      GoogleCredential.executeRefreshToken
      1. com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:269)
      1 frame
    8. Google OAuth Client Library for Java
      Credential.refreshToken
      1. com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
      1 frame
    9. com.google.jenkins
      GoogleRobotCredentials.forRemote
      1. com.google.jenkins.plugins.credentials.oauth.RemotableGoogleCredentials.<init>(RemotableGoogleCredentials.java:64)
      2. com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials.forRemote(GoogleRobotCredentials.java:204)
      2 frames
    10. org.jenkinsci.plugins
      ApkPublisher.perform
      1. org.jenkinsci.plugins.googleplayandroidpublisher.CredentialsHandler.getServiceAccountCredentials(CredentialsHandler.java:26)
      2. org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:302)
      2 frames
    11. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      6. hudson.model.Run.execute(Run.java:1784)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:89)
      9. hudson.model.Executor.run(Executor.java:240)
      9 frames