java – Android – 使用登录URI连接时出错
发布时间:2020-12-15 05:03:43 所属栏目:Java 来源:网络整理
导读:我正在尝试在我的代码中连接谷歌电子表格.它工作了一段时间,但最近它停止了工作. 它是在我将工作区移动到另一个目录后开始的.我没有改变任何其他的东西…… 这是错误: 06-01 17:04:56.108: W/System.err(1290): com.google.gdata.util.AuthenticationExcept
我正在尝试在我的代码中连接谷歌电子表格.它工作了一段时间,但最近它停止了工作.
它是在我将工作区移动到另一个目录后开始的.我没有改变任何其他的东西…… 这是错误: 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.<init>(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: Error connecting with login URI 谢谢! 解决方法
将您的系统(电话/模拟器)日期时间设置为当前日期时间,由于日期时间不匹配,无法验证认证 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |