安卓开发腾讯微博分享
下的官网的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&
发表文字加图片
--------------------编程问答-------------------- SSLHandshakeException SSL 证书认证错误,你的app_id 应该是不正确的
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ムᄀᄆ #3Rbr
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¬リfO£d5Nᅴ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ᄅhjᅱラs£]/Wᅯ/[M>○ᄐK7ネ↓</ᆪ→?tᅨᅣᄒンa?ナ,,u8VKᅯᄉ}W?Rᄒ6ᅲZユ_ホ₩^-ᅪ1ᅱpリᅦトᆴ│ᅨチᆳ■ᄚuᆬ9a→E(ᅯᆭᄂ¦ᆪR+ヨVRMᆱHᅵ5Jᄉ0zᄉhVᅢᅫᄊ
]£?캯YQᅣᅭqᄑE(BᄑZtᆰᅧᆬ:ハ3ᄃ8゚ᄒムᅥ゚ᄈNᄈᄃ\hzᅢル|A꼐5ᆲᅮhᄒ"ᅣm{Gレ[[ネᆴm^}3Yuヤ■oqsBeナᄊHᆰ↑CfᄑJvE%ルノ={`ト��ᆱ¬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゙ᅳᆵ)c9��ᅩ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
补充:移动开发 , Android