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
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
相关文章推荐
- java.lang.IllegalStateException: Cannot forward after response has been committed
- java.lang.IllegalStateException: Cannot forward after response has been committed
- java.lang.IllegalStateException: getOutputStream() has already been called for this response解决方法及解释
- java.lang.IllegalStateException: getWriter() has already been called for this response问题解决
- java.lang.IllegalStateException: Cannot forward after response has been committed
- java.lang.IllegalStateException:getOutputStream() has already been called for this response的解决方法
- Java.lang.IllegalStateException Activity has been destroyed
- Java.lang.IllegalStateException Activity has been destroyed
- java.lang.IllegalStateException: Cannot forward after response has been committed
- java.lang.IllegalStateException: getWriter() has already been called for this response
- java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
- java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
- Java.lang.IllegalStateException Activity has been destroyed
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receiv
- Android java.lang.IllegalStateException: ViewPager has not been bound
- java.lang.IllegalStateException: Cannot forward after response has been committed
- java.lang.IllegalStateException: The content of the adapter has changed but ListView...的问题
- java.lang.IllegalStateException: getOutputStream() has already been called for this response
- java.lang.IllegalStateException: getWriter() has already been called for this response
- java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already.