为了账号安全,请及时绑定邮箱和手机立即绑定

友盟分享报错 org.json.JSONException

友盟分享报错 org.json.JSONException

阿波罗的战车 2019-02-21 15:26:20
E/UClient: org.json.JSONException: Value OK of type java.lang.String cannot be converted to JSONObject: [Caught Exception in decryptData()]E/UClient: at org.json.JSON.typeMismatch(JSON.java:111)E/UClient: at org.json.JSONObject.<init>(JSONObject.java:163)E/UClient: at org.json.JSONObject.<init>(JSONObject.java:176)E/UClient: at com.umeng.socialize.net.utils.UClient.decryptData(UClient.java:477)E/UClient: at com.umeng.socialize.net.utils.UClient.parseResult(UClient.java:410)E/UClient: at com.umeng.socialize.net.utils.UClient.httpGetRequest(UClient.java:213)E/UClient: at com.umeng.socialize.net.utils.UClient.execute(UClient.java:72)E/UClient: at com.umeng.socialize.net.base.SocializeClient.execute(SocializeClient.java:33)E/UClient: at com.umeng.socialize.net.stats.StatsAPIs.shareStatsStart(StatsAPIs.java:47)E/UClient: at com.umeng.socialize.net.analytics.SocialAnalytics$4.run(SocialAnalytics.java:141)E/UClient: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)E/UClient: at java.util.concurrent.FutureTask.run(FutureTask.java:266)E/UClient: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)E/UClient: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)E/UClient: at java.lang.Thread.run(Thread.java:764)W/pool-11-thread-: type=1400 audit(0.0:312): avc: denied { read } for name="address" dev="sysfs" ino=9477 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0E/UClient: org.json.JSONException: Value OK of type java.lang.String cannot be converted to JSONObject: [Caught Exception in decryptData()]E/UClient: at org.json.JSON.typeMismatch(JSON.java:111)E/UClient: at org.json.JSONObject.<init>(JSONObject.java:163)E/UClient: at org.json.JSONObject.<init>(JSONObject.java:176)E/UClient: at com.umeng.socialize.net.utils.UClient.decryptData(UClient.java:477)E/UClient: at com.umeng.socialize.net.utils.UClient.parseResult(UClient.java:410)E/UClient: at com.umeng.socialize.net.utils.UClient.httpGetRequest(UClient.java:213)E/UClient: at com.umeng.socialize.net.utils.UClient.execute(UClient.java:72)E/UClient: at com.umeng.socialize.net.base.SocializeClient.execute(SocializeClient.java:33)E/UClient: at com.umeng.socialize.net.stats.StatsAPIs.shareStatsEnd(StatsAPIs.java:60)E/UClient: at com.umeng.socialize.net.analytics.SocialAnalytics$5.run(SocialAnalytics.java:159)E/UClient: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)E/UClient: at java.util.concurrent.FutureTask.run(FutureTask.java:266)E/UClient: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)E/UClient: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)E/UClient: at java.lang.Thread.run(Thread.java:764)
查看完整描述

3 回答

?
泛舟湖上清波郎朗

TA贡献1818条经验 获得超3个赞

Value OK of type java.lang.String cannot be converted to JSONObject: [Caught Exception in decryptData()]

String类型不能转化成JSONObject类型

查看完整回答
反对 回复 2019-03-01
?
Smart猫小萌

TA贡献1911条经验 获得超7个赞

类转换错误,检查一下UClient的477行的代码

查看完整回答
反对 回复 2019-03-01
?
绝地无双

TA贡献1946条经验 获得超4个赞

类型转换出错,你看下json的数据格式,再结合你的数据结构看下,这个问题是小问题

查看完整回答
反对 回复 2019-03-01
  • 3 回答
  • 0 关注
  • 851 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信