注册

android接收消息org.json.JSONException: Value null at ext of type org.json.JSONObject$1

每次后台提交发送数据,android就报json错误?怎么办?
已邀请:

wxw121212 - 发展中程序员

Array
(
    [action] => post
    [application] => 57c71f20-8c83-11e5-bf1c-711a66b1b117
    [uri] => https://a1.easemob.com/cityuit/csxyxzs
    [entities] => Array
        (
        )

    [data] => Array
        (
            [201312050] => success
            [201422052] => success
        )

    [timestamp] => 1448211988097
    [duration] => 1
    [organization] => cityuit
    [applicationName] => csxyxzs
)

wxw121212 - 发展中程序员

后台提示成功

wxw121212 - 发展中程序员

11-23 01:13:55.131  25411-25471/com.aiguanxin W/System.err﹕ org.json.JSONException: Value null at ext of type org.json.JSONObject$1 cannot be converted to JSONObject
11-23 01:13:55.133  25411-25471/com.aiguanxin W/System.err﹕ at org.json.JSON.typeMismatch(JSON.java:100)
11-23 01:13:55.136  25411-25471/com.aiguanxin W/System.err﹕ at org.json.JSONObject.getJSONObject(JSONObject.java:578)
11-23 01:13:55.136  25411-25471/com.aiguanxin W/System.err﹕ at com.easemob.chat.MessageEncoder.getMsgFromJson(Unknown Source)
11-23 01:13:55.136  25411-25471/com.aiguanxin W/System.err﹕ at com.easemob.chat.MessageEncoder.parseXmppMsg(Unknown Source)
11-23 01:13:55.137  25411-25471/com.aiguanxin W/System.err﹕ at com.easemob.chat.EMMessageListener.processMessage(Unknown Source)
11-23 01:13:55.137  25411-25471/com.aiguanxin W/System.err﹕ at com.easemob.chat.EMMessageListener.processPacket(Unknown Source)
11-23 01:13:55.137  25411-25471/com.aiguanxin W/System.err﹕ at org.jivesoftware.smack.Connection$ListenerWrapper.notifyListener(Unknown Source)
11-23 01:13:55.137  25411-25471/com.aiguanxin W/System.err﹕ at org.jivesoftware.smack.PacketReader$ListenerNotification.run(Unknown Source)
11-23 01:13:55.138  25411-25471/com.aiguanxin W/System.err﹕ at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
11-23 01:13:55.138  25411-25471/com.aiguanxin W/System.err﹕ at java.util.concurrent.FutureTask.run(FutureTask.java:237)
11-23 01:13:55.138  25411-25471/com.aiguanxin W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
11-23 01:13:55.139  25411-25471/com.aiguanxin W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
11-23 01:13:55.139  25411-25471/com.aiguanxin W/System.err﹕ at java.lang.Thread.run(Thread.java:841)
提示错误
php调rest发的消息吗?你扩展是怎么写的呢,报错说不能转成json对象,把你的扩展写法贴一下。

要回复问题请先登录注册