首页 新闻 会员 周边 捐助

android 大神求解

0
[待解决问题]

activty不能销毁跟数据解析有啥关系

java.lang.RuntimeException: Unable to destroy activity {.MainActivity}: com.alibaba.fastjson.JSONException: syntax error, expect {, actual error, pos 0
    at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3507)
    at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3525)
    at android.app.ActivityThread.access$1500(ActivityThread.java:141)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1266)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5072)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: com.alibaba.fastjson.JSONException: syntax error, expect {, actual error, pos 0
    at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:232)
    at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:135)
    at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:551)
    at com.alibaba.fastjson.JSON.parseObject(JSON.java:251)
    at com.alibaba.fastjson.JSON.parseObject(JSON.java:227)
    at com.alibaba.fastjson.JSON.parseObject(JSON.java:186)
    at com.alibaba.fastjson.JSON.parseObject(JSON.java:304)
    at com.hmt.jinxiangApp.dao.InitActDBModelDao.readInitDB(InitActDBModelDao.java:31)
    at com.hmt.jinxiangApp.fragment.MainPageNewFragment.initInitActModel(MainPageNewFragment.java:135)
    at com.hmt.jinxiangApp.fragment.MainPageNewFragment.initInfo(MainPageNewFragment.java:124)
    at com.hmt.jinxiangApp.fragment.MainPageNewFragment.init(MainPageNewFragment.java:98)
    at com.hmt.jinxiangApp.fragment.MainPageNewFragment.onCreateView(MainPageNewFragment.java:91)
    at android.support.v4.app.Fragment.performCreateView(Fragment.java:1789)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:955)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1138)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1120)
    at android.support.v4.app.FragmentManagerImpl.dispatchReallyStop(FragmentManager.java:1956)
    at android.support.v4.app.FragmentActivity.onReallyStop(FragmentActivity.java:790)
    at android.support.v4.app.FragmentActivity.doReallyStop(FragmentActivity.java:767)
    at android.support.v4.app.FragmentActivity.onDestroy(FragmentActivity.java:314)
    at com.hmt.jinxiangApp.BaseActivity.onDestroy(BaseActivity.java:141)
    at android.app.Activity.performDestroy(Activity.java:5421)
    at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1117)
    at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3494)
    ... 11 more

chengfanrong的主页 chengfanrong | 初学一级 | 园豆:129
提问于:2016-02-16 16:25
< >
分享
所有回答(2)
0

贴代码,只有错误信息无法分析,是否在ondestory方法中做了什么操作?

林J | 园豆:202 (菜鸟二级) | 2016-02-19 17:36
0

贴代码,肯定在销货之前解析数据了吧。

CooL009 | 园豆:202 (菜鸟二级) | 2016-02-24 15:28
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册