Android - 使用登录URI连接时出错

 MIKO_CHEUNG2011 发布于 2023-01-07 13:45

我正在尝试在我的代码中连接谷歌电子表格.它工作了一段时间,但最近它停止了工作.它是在我将工作区移动到另一个目录后开始的.我没有改变其他任何东西......这是错误:

06-01 17:04:56.108: W/System.err(1290): com.google.gdata.util.AuthenticationException: Error connecting with login URI
06-01 17:04:56.118: W/System.err(1290):     at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:549)
06-01 17:04:56.118: W/System.err(1290):     at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(GoogleAuthTokenFactory.java:397)
06-01 17:04:56.118: W/System.err(1290):     at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:364)
06-01 17:04:56.118: W/System.err(1290):     at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:319)
06-01 17:04:56.118: W/System.err(1290):     at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:303)
06-01 17:04:56.118: W/System.err(1290):     at googleDriveConnection.MySpreadsheetIntegration.(MySpreadsheetIntegration.java:59)
06-01 17:04:56.118: W/System.err(1290):     at googleDriveConnection.MySpreadsheetIntegration.Instance(MySpreadsheetIntegration.java:45)
06-01 17:04:56.118: W/System.err(1290):     at smsManaging.SmsSendRunnable.run(SmsSendRunnable.java:60)
06-01 17:04:56.118: W/System.err(1290):     at java.lang.Thread.run(Thread.java:1019)
06-01 17:04:56.118: W/System.err(1290): Caused by: javax.net.ssl.SSLHandshakeException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time: Sun Jun 01 17:04:56 GMT+00:00 2014, validation time: Wed Jun 04 08:58:29 GMT+00:00 2014
06-01 17:04:56.118: W/System.err(1290):     at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:477)
06-01 17:04:56.118: W/System.err(1290):     at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:328)
06-01 17:04:56.118: W/System.err(1290):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.setupSecureSocket(HttpConnection.java:185)
06-01 17:04:56.118: W/System.err(1290):     at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:433)
06-01 17:04:56.118: W/System.err(1290):     at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeConnection(HttpsURLConnectionImpl.java:378)
06-01 17:04:56.118: W/System.err(1290):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:205)
06-01 17:04:56.118: W/System.err(1290):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:614)
06-01 17:04:56.118: W/System.err(1290):     at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:268)
06-01 17:04:56.128: W/System.err(1290):     at com.google.gdata.client.GoogleAuthTokenFactory.makePostRequest(GoogleAuthTokenFactory.java:611)
06-01 17:04:56.128: W/System.err(1290):     at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:547)
06-01 17:04:56.128: W/System.err(1290):     ... 8 more
06-01 17:04:56.128: W/System.err(1290): Caused by: java.security.cert.CertificateException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time: Sun Jun 01 17:04:56 GMT+00:00 2014, validation time: Wed Jun 04 08:58:29 GMT+00:00 2014
06-01 17:04:56.128: W/System.err(1290):     at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:161)
06-01 17:04:56.128: W/System.err(1290):     at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:664)
06-01 17:04:56.128: W/System.err(1290):     at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)
06-01 17:04:56.128: W/System.err(1290):     at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:474)
06-01 17:04:56.128: W/System.err(1290):     ... 17 more
06-01 17:04:56.128: W/System.err(1290): Caused by: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time: Sun Jun 01 17:04:56 GMT+00:00 2014, validation time: Wed Jun 04 08:58:29 GMT+00:00 2014
06-01 17:04:56.138: W/System.err(1290):     at org.bouncycastle.jce.provider.RFC3280CertPathUtilities.processCertA(RFC3280CertPathUtilities.java:1521)
06-01 17:04:56.138: W/System.err(1290):     at org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:399)
06-01 17:04:56.138: W/System.err(1290):     at java.security.cert.CertPathValidator.validate(CertPathValidator.java:197)
06-01 17:04:56.138: W/System.err(1290):     at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:156)
06-01 17:04:56.138: W/System.err(1290):     ... 20 more
06-01 17:04:56.138: W/System.err(1290): Caused by: java.security.cert.CertificateNotYetValidException: current time: Sun Jun 01 17:04:56 GMT+00:00 2014, validation time: Wed Jun 04 08:58:29 GMT+00:00 2014
06-01 17:04:56.138: W/System.err(1290):     at org.apache.harmony.security.provider.cert.X509CertImpl.checkValidity(X509CertImpl.java:163)
06-01 17:04:56.138: W/System.err(1290):     at org.apache.harmony.security.provider.cert.X509CertImpl.checkValidity(X509CertImpl.java:157)
06-01 17:04:56.138: W/System.err(1290):     at org.bouncycastle.jce.provider.RFC3280CertPathUtilities.processCertA(RFC3280CertPathUtilities.java:1512)
06-01 17:04:56.138: W/System.err(1290):     ... 23 more

我搜索了所有这个论坛,发现类似的东西没有帮助我 - com.google.gdata.util.AuthenticationException:连接登录URI时出错

谢谢!担

1 个回答
  • 06-01 17:04:56.128:W/System.err(1290):引起:org.bouncycastle.jce.exception.ExtCertPathValidatorException:无法验证证书:当前时间:Sun Jun 01 17:04:56 GMT + 00 :00 2014,验证时间:Wed Jun 04 08:58:29 GMT + 00:00 2014

    将您的系统(电话/模拟器)日期时间设置为当前日期时间,由于日期时间不匹配,无法验证认证

    2023-01-07 13:47 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有