您的位置:首页 > 编程语言 > Java开发

java.lang.IllegalStateException: Content has been

2011-02-22 01:00 429 查看
RESUlT

E/AndroidRuntime( 342): FATAL EXCEPTION: main

E/AndroidRuntime( 342): java.lang.IllegalStateException: Content has been consu

med

E/AndroidRuntime( 342): at org.apache.http.entity.BasicHttpEntity.getCon

tent(BasicHttpEntity.java:84)

E/AndroidRuntime( 342): at org.apache.http.conn.BasicManagedEntity.getCo

ntent(BasicManagedEntity.java:100)

E/AndroidRuntime( 342): at org.apache.http.util.EntityUtils.toString(Ent

ityUtils.java:112)

E/AndroidRuntime( 342): at org.apache.http.util.EntityUtils.toString(Ent

ityUtils.java:146)

E/AndroidRuntime( 342): at com.zhoudy.information.http.HttpUtil.queryStr

ingForPost(HttpUtil.java:89)

E/AndroidRuntime( 342): at com.zhoudy.information.message.MessagePost.me

ssagePosting(MessagePost.java:66)

E/AndroidRuntime( 342): at com.zhoudy.information.message.MessagePost.ac

cess$4(MessagePost.java:59)

E/AndroidRuntime( 342): at com.zhoudy.information.message.MessagePost$1.

onClick(MessagePost.java:54)

E/AndroidRuntime( 342): at android.view.View.performClick(View.java:2408

)

REASON

You can retrieve the content from the entity only once. If you have
already extracted the content somewhere, and you try to fetch it
again, it will throw this IllegalStateException. Check you code and
make sure that you make this call only once.


REASON from:

http://www.listware.net/201007/android-developers/89918-android-developers-javalangillegalstateexception-content-has-been-consumed.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐