Open GoogleCodeExporter opened 9 years ago
//come from another bug report but I think it's same problem
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.ch_linghu.fanfoudroid/com.ch_linghu.fanfoudroid.TwitterActivit
y}: java.lang.IllegalStateException: Content has been consumed
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2852)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2873)
at android.app.ActivityThread.access$2300(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2186)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:5127)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: Content has been consumed
at org.apache.http.entity.BasicHttpEntity.getContent(BasicHttpEntity.java:84)
at
org.apache.http.conn.BasicManagedEntity.getContent(BasicManagedEntity.java:100)
at com.ch_linghu.fanfoudroid.http.Response.entityToString(Response.java:100)
at com.ch_linghu.fanfoudroid.http.Response.asString(Response.java:81)
at com.ch_linghu.fanfoudroid.http.Response.asJSONObject(Response.java:163)
at com.ch_linghu.fanfoudroid.fanfou.User.<init>(User.java:119)
at com.ch_linghu.fanfoudroid.fanfou.Weibo.showUser(Weibo.java:694)
at
com.ch_linghu.fanfoudroid.TwitterApplication.fetchMyselfInfo(TwitterApplication.
java:63)
at
com.ch_linghu.fanfoudroid.TwitterApplication.getMyselfId(TwitterApplication.java
:77)
at com.ch_linghu.fanfoudroid.TwitterActivity.getUserId(TwitterActivity.java:255)
at
com.ch_linghu.fanfoudroid.TwitterActivity.fetchMessages(TwitterActivity.java:173
)
at
com.ch_linghu.fanfoudroid.ui.base.TwitterCursorBaseActivity.setupState(TwitterCu
rsorBaseActivity.java:213)
at
com.ch_linghu.fanfoudroid.ui.base.TwitterListBaseActivity._onCreate(TwitterListB
aseActivity.java:136)
at
com.ch_linghu.fanfoudroid.ui.base.TwitterCursorBaseActivity._onCreate(TwitterCur
sorBaseActivity.java:317)
at com.ch_linghu.fanfoudroid.TwitterActivity._onCreate(TwitterActivity.java:91)
at com.ch_linghu.fanfoudroid.ui.base.BaseActivity.onCreate(BaseActivity.java:44)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2816)
... 11 more
Original comment by ch.lin...@gmail.com
on 20 Jun 2011 at 1:49
Original issue reported on code.google.com by
ch.lin...@gmail.com
on 20 Jun 2011 at 1:46