10-16 18:28:39.549: W/System.err(4950): org.json.JSONException: End of input at character 0 of 
10-16 18:28:39.559: W/System.err(4950): at org.json.JSONTokener.syntaxError(JSONTokener.java:450)
10-16 18:28:39.569: W/System.err(4950): at org.json.JSONTokener.nextValue(JSONTokener.java:97)
10-16 18:28:39.579: W/System.err(4950): at org.json.JSONObject.<init>(JSONObject.java:154)
10-16 18:28:39.579: W/System.err(4950): at org.json.JSONObject.<init>(JSONObject.java:171)
10-16 18:28:39.589: W/System.err(4950): at net.weibanji.sociax.zzsy.YaoqingInfoActivity$4.run(YaoqingInfoActivity.java:103)
10-16 18:28:39.599: W/System.err(4950): at android.os.Handler.handleCallback(Handler.java:730)
10-16 18:28:39.609: W/System.err(4950): at android.os.Handler.dispatchMessage(Handler.java:92)
10-16 18:28:39.609: W/System.err(4950): at android.os.Looper.loop(Looper.java:137)
10-16 18:28:39.609: W/System.err(4950): at android.app.ActivityThread.main(ActivityThread.java:5103)
10-16 18:28:39.609: W/System.err(4950): at java.lang.reflect.Method.invokeNative(Native Method)
10-16 18:28:39.619: W/System.err(4950): at java.lang.reflect.Method.invoke(Method.java:525)
10-16 18:28:39.619: W/System.err(4950): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
10-16 18:28:39.619: W/System.err(4950): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

10-16 18:28:39.619: W/System.err(4950): at dalvik.system.NativeStart.main(Native Method)

====

这个问题我也遇到了。是重新开了一个线程。

不要在主线程内访问网络,自己开一个线程去访问。

bug_ _org.json.JSONException: End of input at character 0 of的更多相关文章

  1. 前后台JSON传值得一个问题和异常处理net.sf.json.JSONException: Unquotted string '"name"'

    项目中做导入的时候遇到个bug,用JSON.stringify()序列号json对象传给后台:然后后台通过getPatameter()获取值时,前台的英文引号变成了中文引号. 原来代码如下:(自己排查 ...

  2. Json_异常_net.sf.json.JSONException: JSONObject["solution"] not found.

    net.sf.json.JSONException: JSONObject["solution"] not found. 没有这个元素造成的. 问题代码: JSONObject j ...

  3. java.lang.classnotfoundexception org.json.jsonexception

    java.lang.classnotfoundexception org.json.jsonexception 解决方法 http://www.java2s.com/Code/Jar/j/Downlo ...

  4. atitit.解决net.sf.json.JSONException There is a cycle in the hierarchy

    atitit.解决net.sf.json.JSONException There is a cycle in the hierarchy 1. 环境:使用hibernate4跟个,,要不个哪的对象系列 ...

  5. net.sf.json.JSONException: java.lang.NoSuchMethodException

    在尝试将json对象转换为list时候出现了如下错误 Exception in thread "main" net.sf.json.JSONException: java.lang ...

  6. json解析异常 - net.sf.json.JSONException: java.lang.reflect.InvocationTargetException

    注:在项目中, 我使用原生的ajax请求数据的时候, JSONObject没能帮我解析, 当却不给我报错, 我是在junit单元测试中测试的时候, 发现的.发现好多时候, 特别是通过ajax请求, 不 ...

  7. grails框架中读取txt文件内容将内容转换为json格式,出现异常Exception in thread "main" org.json.JSONException: A JSONObject text must begin with '{' at character 1 of [...]

    Exception in thread "main" org.json.JSONException: A JSONObject text must begin with '{' a ...

  8. net.sf.json.JSONException: There is a cycle in the hierarchy!

    因为项目中使用了AJAX技术,jar包为:json-lib.jar,在开发过程中遇到了一个JSON-LIB和Hibernate有关的问题: 如hibernate延迟加载错误,这都是些老问题了,一看就知 ...

  9. net.at.json.JSONException

    1.错误描述 严重:Servlet.service() for servlet [clientServlet] in context with path [/User] threw exception ...

随机推荐

  1. 配置apache apache服务器如何配置多站点

    http://jingyan.baidu.com/article/5225f26b07605be6fa090890.html 让Apache在启动时能加载虚拟主机模块. 打开Apache安装目录下co ...

  2. Memcache学习笔记

    以下内容大部分来自网络,小部分是本人遇到的问题融合后的记录. 先贴一段涨姿势~ Memcache是什么 Memcache是danga.com的一个项目,最早是为 LiveJournal 服务的,目前全 ...

  3. Windows And Video Memory

    MSDN Blogs > Zemblanity > Windows And Video Memory   Windows And Video Memory Tom_Mulcahy 11 F ...

  4. (转)iOS安全 对本地文件的保护

    开篇先扯几句题外话,许多朋友都问我怎么不写防啊,我确实有点犹豫.hackers总是想象如果自己是开发者会怎么写,然后才能找到入手点.同理,开发者们也要想象自己是hackers会怎么做,才能采取相应的防 ...

  5. linux git 推送空文件夹

    /********************************************************************************* * linux git 推送空文件 ...

  6. 前端:js

    JavaScript: 参考文章: http://www.cnblogs.com/wupeiqi/articles/5369773.html http://javascript.ruanyifeng. ...

  7. CSS外边距margin上下元素重叠

    CSS外边距margin上下元素重叠 转载:http://www.gaoyouyou.com/view/77.htm 两个或多个块级盒子的垂直相邻边界会重合.结果的边界宽度是相邻边界宽度中最大的值.如 ...

  8. 重装Ubuntu16.04及安装theano

    一.卸载现有的ubuntu系统 1.下载MbrFix,并放在C盘根目录. 2.管理员身份运行cmd命令符:切换到C盘根目录,然后输入命令符MbrFix /drive 0 fixmbr,回车确认即可. ...

  9. [翻译]Primer on Cognitive Computing(认知计算入门)

    Source Kelly J., Primer on Cognitive Computing 20150216. 侵删,联系方式:zhoujiagen\@gmail.com. 按A candidate ...

  10. Repeater 根据某一列的值加颜色

    //排队中 protected void rptOrdersList_ItemDataBound(object sender, System.Web.UI.WebControls.RepeaterIt ...