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: