当前位置:编程学习 > wap >>

安卓开发腾讯微博分享

下的官网的demo啊,运行授权成功,发表的时候没反应了,在logcat里面提示错误,改了demo里面的app_secket和app_id了,我用了eclipse签名也是错。错误信息贴一下,是最新版的sdk了,

11-13 22:37:47.419: W/System.err(6265): javax.net.ssl.SSLHandshakeException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate signature.
11-13 22:37:47.429: W/System.err(6265):  at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:477)
11-13 22:37:47.439: W/System.err(6265):  at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.<init>(OpenSSLSocketImpl.java:750)
11-13 22:37:47.439: W/System.err(6265):  at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:692)
11-13 22:37:47.439: W/System.err(6265):  at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:744)
11-13 22:37:47.439: W/System.err(6265):  at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
11-13 22:37:47.439: W/System.err(6265):  at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
11-13 22:37:47.439: W/System.err(6265):  at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
11-13 22:37:47.439: W/System.err(6265):  at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
11-13 22:37:47.439: W/System.err(6265):  at com.tencent.weibo.sdk.android.network.HttpReq.runReq(HttpReq.java:128)
11-13 22:37:47.439: W/System.err(6265):  at com.tencent.weibo.sdk.android.network.HttpReq.doInBackground(HttpReq.java:292)
11-13 22:37:47.439: W/System.err(6265):  at com.tencent.weibo.sdk.android.network.HttpReq.doInBackground(HttpReq.java:1)
11-13 22:37:47.439: W/System.err(6265):  at android.os.AsyncTask$2.call(AsyncTask.java:185)
11-13 22:37:47.439: W/System.err(6265):  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
11-13 22:37:47.439: W/System.err(6265):  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
11-13 22:37:47.439: W/System.err(6265):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
11-13 22:37:47.439: W/System.err(6265):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
11-13 22:37:47.439: W/System.err(6265):  at java.lang.Thread.run(Thread.java:1019)
11-13 22:37:47.439: W/System.err(6265): Caused by: java.security.cert.CertificateException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate signature.
11-13 22:37:47.439: W/System.err(6265):  at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:161)
11-13 22:37:47.439: W/System.err(6265):  at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:664)
11-13 22:37:47.439: W/System.err(6265):  at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)
11-13 22:37:47.439: W/System.err(6265):  at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:474)
11-13 22:37:47.439: W/System.err(6265):  ... 16 more
11-13 22:37:47.449: W/System.err(6265): Caused by: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate signature.
11-13 22:37:47.449: W/System.err(6265):  at org.bouncycastle.jce.provider.RFC3280CertPathUtilities.processCertA(RFC3280CertPathUtilities.java:1504)
11-13 22:37:47.449: W/System.err(6265):  at org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:399)
11-13 22:37:47.449: W/System.err(6265):  at java.security.cert.CertPathValidator.validate(CertPathValidator.java:197)
11-13 22:37:47.449: W/System.err(6265):  at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:156)
11-13 22:37:47.449: W/System.err(6265):  ... 19 more
11-13 22:37:47.449: W/System.err(6265): Caused by: java.security.SignatureException: Signature was not verified
11-13 22:37:47.449: W/System.err(6265):  at org.apache.harmony.security.provider.cert.X509CertImpl.fastVerify(X509CertImpl.java:562)
11-13 22:37:47.449: W/System.err(6265):  at org.apache.harmony.security.provider.cert.X509CertImpl.verify(X509CertImpl.java:487)
11-13 22:37:47.449: W/System.err(6265):  at org.bouncycastle.jce.provider.CertPathValidatorUtilities.verifyX509Certificate(CertPathValidatorUtilities.java:1551)
11-13 22:37:47.449: W/System.err(6265):  at org.bouncycastle.jce.provider.RFC3280CertPathUtilities.processCertA(RFC3280CertPathUtilities.java:1496)
11-13 22:37:47.449: W/System.err(6265):  ... 22 more

求大婶支招了 安卓 腾讯微博 --------------------编程问答-------------------- 发表的文字的时候logcat显示,
11-14 09:14:28.089: D/p-----(11917): access_token=5f17402064e0012a2b0afbd6119027e2&clientip=0.0.0.0&compatibleflag=0&content=啊我发表的内容啊啊啊啊啊啊&format=json&oauth_consumer_key=801442851&oauth_version=2.a&openid=c089b1467e2951145af39a5c8e6bb987&scope=all&syncflag=0&

发表文字加图片

11-14 09:23:07.759: D/path(11917): /mnt/sdcard/^O^/记.jpg
11-14 09:23:07.829: D/myarea(11917): 21.....19
11-14 09:23:07.829: D/myarea(11917): 21.....19
11-14 09:23:07.829: D/myarea(11917): 21.....19
11-14 09:23:07.829: D/myarea(11917): 21.....19
11-14 09:23:07.929: D/mks(11917): true
11-14 09:23:12.839: D/contentafter(11917): 4
11-14 09:23:12.839: D/contentafter(11917): 138
11-14 09:23:13.679: D/buffer=======(11917): ￿￘￿¢��JFIF������������￿ᅴ��C��￿ᅴ��C￿￀������"��￿ᅣ����������������������
11-14 09:23:13.679: D/buffer=======(11917):  ￿ᅣ��ᄉ������}��!1AQa"q2チムᄀ#Bᄆ￁R￑￰$3brツ
11-14 09:23:13.679: D/buffer=======(11917): %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzテトナニヌネノハメモヤユヨラリルレᄁᆪᄂᆬᆭᄃᄄᄅᆰᄇᄈᄡᄉᄊᄋᄌᄍ차ᅢᅣᅤᅥᅦ￈￉ᅧᅭᅮᅯᅰᅱᅲ￘￙ᅳ£¬ ̄¦¥₩￧│←↑￱￲￳￴￵￶￷￸￿ᅣ����������������
11-14 09:23:13.679: D/buffer=======(11917):  ￿ᅣ��ᄉ����w��!1AQaq"2チBムᄀᄆ￁ #3R￰br￑
11-14 09:23:13.679: D/buffer=======(11917): $4£%￱&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzツテトナニヌネノハメモヤユヨラリルレᄁᆪᄂᆬᆭᄃᄄᄅᆰᄇᄈᄡᄉᄊᄋᄌᄍ차ᅢᅣᅤᅥᅦ￈￉ᅧᅭᅮᅯᅰᅱᅲ￘￙ᅳ¬ ̄¦¥₩￧│←↑￲￳￴￵￶￷￸￿ᅳ�� ����?���'テᅥヨ゚ 5ᅴ-\￰フ5ᅯ￱ニZ￷￁~'ᅭᄉFᅰᄡ}sᅥ￯=ᅪᄉ゚ツᆵl,>)↑:■ヤ￳ᅵ&ン﾿P쑤￯bハ
Agメ4ツ￞kハヒ¬/■U￱ᆳ<+y¬リf￸O£d￐5NᅴR￰-ヒkレ￷ネdᄊᄚ5ナ￱
]ᄑ>붍,ᄉ(<Ae£￯￘ᅡcᅳEヘ￉ᄍᄊI￿��hᅪ#￁￯|Bi￾%ᅲᄉ﾿→_ᄐ++h3→ᅳ}￞マ꺦xgZᅰ.ベᄁ>" ᅪGᅯ5ンF﾿￱ ᅯᄐ@4;*ᅱfᅮl↓ᅨk]￵훠~3(￰ᆴᄃ￱ヌG�リ￾|^ᄈ￸￐→￱LᅰAy₩￸ᅬᅡレgハnoUgᄀ_│ホᄍ{qᄁ←Q￝_￉ᆵAᄃ&ᆱlC↑ᄈ￝ᅥᄒ"]U→¥2 モヌ←¦ル^+ ツ￉ᄆus<)ᅤg8ᅩT미5\~5フ+fᄌᄐ~ヤ(*￙}juiᆲ%lD￧)`¥FTᆰ£ᅲᅯUᅥᅱホ',cᅪkSᅨs:^ᅱ9^ 1ᅩThWニYホᅧᄚ￰ᆪタᆬヨᅱユ\]:9ᅱᅪᅬトホワ+£↑ᅮᅥ¢ᄆマ←?￸￞Jヘ?UリY￟ᅴG}j￟ᅴラpᄊᄍE゙￑ᅨ￱nᅱEcネJ￉￈ᄍ│ᆴᆳE|ᅬ;d￸￷¬ᆳg¬﾿ノᄒ=Iᄅh￰jᅱラs£]/Wᅯ/￴[M>￵○ᄐK7ネ↓</ᆪ→?tᅨᅣ￰ᄒンa?ナ,,u8V￧Kᅯᄉ }W?Rᄒ6ᅲZユ￁_ホ₩^-ᅪ1￙ᅱpリᅦトᆴ│ᅨチᆳ■ᄚuᆬ9a→E(ᅯᆭᄂ¦ᆪR+ヨVRMᆱHᅵ5Jᄉ0￘zᄉhVᅢᅫᄊ
]£￱?캬￐￶￴ᆪYQᅣᅭqᄑE(￉BᄑZtᆰᅧᆬ:ハ3ᄃ8゚ᄒム￾ᅥ゚ᄈNᄈᄃ\hz￯ᅢル|A꼐5ᆲᅮhᄒ"￱﾿ᅣm{Gレ[[ネᆴm^}3Y￱u￵ヤ■oq sBeナᄊHᆰ↑CfᄑJ￯￶v￸E%ルノ￴={`ト��ᆱ￱¬Z`タOᆱ����ᅮフ￑E~cメfト￲ᆭ￧ホᅥMᆬ;9bᆱ￉ᆵwᆪu_ᅪンᆭᅱ"ン4ᅳナᅯ쭤9ᆬ
11-14 09:23:13.679: D/buffer=======(11917): *r¥ᄑᆵ%ᄅ=ᅳQMᄏO{"￾ᅬᅲᅲᅪw£~y7csQ￸찌￈N￸↓メ2p3ᅲᆴNJ(ᆵナᆳレf゙ᅳᆵ)c￾9￿��ᅩf'ラ�=￲_ニ￶ᅲ￑Pナラᄏナ}ユᄡ﾿ᆱᄑ[ᄏ￿￙
11-14 09:23:13.679: I/System.out(11917): ===== : 1384391662
11-14 09:23:13.679: I/System.out(11917): ====== : 604800
11-14 09:23:13.689: D/p-----(11917): access_token=5f17402064e0012a2b0afbd6119027e2&clientip=0.0.0.0&compatibleflag=0&content=密码&format=json&oauth_consumer_key=801442851&oauth_version=2.a&openid=c089b1467e2951145af39a5c8e6bb987&scope=all&syncflag=0&
11-14 09:23:15.669: D/发送成功(11917): com.tencent.weibo.sdk.android.model.ModelResult@406e8d20
--------------------编程问答-------------------- SSLHandshakeException  SSL 证书认证错误,你的app_id 应该是不正确的
补充:移动开发 ,  Android
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,