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. 项目里的jquery.min.js错误

    项目里的jquery.min.js报一系列 - Missing semicolon - Missing semicolon - Missing semicolon - Missing semicolo ...

  2. Day23_IO第五天

    1.递归求5的阶乘 package com.heima.chario; public class Demo8_Digui { /** * @param args * 递归:方法自己调用自己 * 5! ...

  3. 1password密码库格式更新

    由于国内网络安全做的太差,经常发生被脱裤的事件,比如最近的网易邮箱(via 乌云),所以只好用1password这类密码管理软件,实现一站一密.昨晚半夜冻醒了,刷推刷到了这个:1password-le ...

  4. 使用第三方框架vapor和swift 搭建本地服务器

    在网上看到一篇教程,使用vapor搭建服务端,自己记录下来备忘本文主要记录以下几点 1.配置好Vapor 2.用Swift写GET,POST方法,返回JSON数据 3.配置本地服务器,编译运行在浏览器 ...

  5. A Look At Android Support Annotations

    转自:https://asce1885.gitbooks.io/android-rd-senior-advanced/content/shen_ru_qian_chu_android_support_ ...

  6. ad

    取消class和id前的元素限定 当你写给一个元素定义class或者id,你可以省略前面的元素限定,因为ID在一个页面里是唯一的,而clas s可以在页面中多次使用.你限定某个元素毫无意义.例如: d ...

  7. Android Studio Eclipse Code Formatter

    在从Eclipse转到Android Studio上开发后,如果还想继续使用在Eclipse上制定的自定义的Code Formatter的话,需要按如下步骤操作:1.进入Settings界面,如果能看 ...

  8. 面试题---PHP

    1.PHP(外文名: Hypertext Preprocessor,中文名:“超文本预处理器”)是一种通用开源脚本语言. 2.echo,print和print_r的区别: echo和print都可以做 ...

  9. April Fools Day Contest 2014

    April Fools Day Contest 2014 A.C.H三道题目 ============================================================= ...

  10. JavaScript设计模式:读书笔记(未完)

    该篇随我读书的进度持续更新阅读书目:<JavaScript设计模式> 2016/3/30 2016/3/31 2016/4/8 2016/3/30: 模式是一种可复用的解决方案,可用于解决 ...