Jayon / weibo4j

Automatically exported from code.google.com/p/weibo4j
Other
0 stars 0 forks source link

Weibo4j在Eclipse中没问题,打jar包后运行为什么出错 #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
我用java调用Weibo4j的代码

在Eclipse上运行时没有任何问题。但是打好Jar包运行后出现以�
��错误:

Caused by: weibo4j.org.json.JSONException: Expected a ',' or '}' at character 67
34
        at weibo4j.org.json.JSONTokener.syntaxError(JSONTokener.java:410)
        at weibo4j.org.json.JSONObject.<init>(JSONObject.java:222)
        at weibo4j.org.json.JSONTokener.nextValue(JSONTokener.java:344)
        at weibo4j.org.json.JSONObject.<init>(JSONObject.java:205)
        at weibo4j.org.json.JSONTokener.nextValue(JSONTokener.java:344)
        at weibo4j.org.json.JSONArray.<init>(JSONArray.java:125)
        at weibo4j.org.json.JSONTokener.nextValue(JSONTokener.java:348)
        at weibo4j.org.json.JSONObject.<init>(JSONObject.java:205)
        at weibo4j.org.json.JSONObject.<init>(JSONObject.java:402)
        at weibo4j.http.Response.asJSONObject(Response.java:199)
        ... 6 more

请问大牛,这是什么原因导致的呢?
这是打包不正确吗?我用的是fat-jar进行打包的,其他工程用�
��打包没有问题,可以运行。
是不是编码的原因呢?请大牛详解。谢谢

Original issue reported on code.google.com by xiangwan...@gmail.com on 7 Jul 2014 at 7:30