Jump to content
xx_T

android (Archived) Help: Failed to obtain OAuth request token

Recommended Posts

Hi all,

I am using evernote-api for developing Evernote Plugin for a certain browser.

No proxy has been set. A few of my cell-phone encountered this problem, but some are okay.

It just can't obtain the Oauth request token.

Please help me with this problem.

The error log is shown below.

org.scribe.exceptions.OAuthConnectionException: There was a problem while creating a connection to the remote service.

at org.scribe.model.Request.send(Request.java:66)

at org.scribe.model.OAuthRequest.send(OAuthRequest.java:12)

at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:47)

at com.tencent.pluginevernote.evernote.EvernoteHelper.beginAuthentication(EvernoteHelper.java:98)

at com.tencent.pluginevernote.browserinterface.AddOnImpl$2.dispatchMessage(AddOnImpl.java:276)

at android.os.Looper.loop(Looper.java:130)

at android.os.HandlerThread.run(HandlerThread.java:60)

Caused by: javax.net.ssl.SSLHandshakeException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time: Sat Jan 01 12:01:19 格林尼治标准时间+0800 2000, validation time: Wed Nov 08 08:00:00 格林尼治标准时间+0800 2006

at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:477)

at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:328)

at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.setupSecureSocket(HttpConnection.java:185)

at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:433)

at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeConnection(HttpsURLConnectionImpl.java:378)

at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:205)

at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:614)

at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:268)

at org.scribe.model.Request.addBody(Request.java:125)

at org.scribe.model.Request.doSend(Request.java:104)

at org.scribe.model.Request.send(Request.java:62)

... 6 more

Caused by: java.security.cert.CertificateException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time: Sat Jan 01 12:01:19 格林尼治标准时间+0800 2000, validation time: Wed Nov 08 08:00:00 格林尼治标准时间+0800 2006

at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:161)

at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:664)

at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)

at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:474)

... 16 more

Caused by: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time: Sat Jan 01 12:01:19 格林尼治标准时间+0800 2000, validation time: Wed Nov 08 08:00:00 格林尼治标准时间+0800 2006

at org.bouncycastle.jce.provider.RFC3280CertPathUtilities.processCertA(RFC3280CertPathUtilities.java:1521)

at org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:399)

at java.security.cert.CertPathValidator.validate(CertPathValidator.java:197)

at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:156)

... 19 more

Caused by: java.security.cert.CertificateNotYetValidException: current time: Sat Jan 01 12:01:19 格林尼治标准时间+0800 2000, validation time: Wed Nov 08 08:00:00 格林尼治标准时间+0800 2006

at org.apache.harmony.security.provider.cert.X509CertImpl.checkValidity(X509CertImpl.java:163)

at org.apache.harmony.security.provider.cert.X509CertImpl.checkValidity(X509CertImpl.java:157)

at org.bouncycastle.jce.provider.RFC3280CertPathUtilities.processCertA(RFC3280CertPathUtilities.java:1512)

... 22 more

Thanks,

xx_T.

Share this post


Link to post

Could you double-check that your Phone's time is set correctly? This line looks suspicious:

Could not validate certificate: current time: Sat Jan 01 12:01:19

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...