I can't imagine that Apache HttpClient would be doing anything with
Android handlers unless Google modified it to do so, unless maybe you
are using AndroidHttpClient.
Are you perhaps making any AsyncTask method calls inside some kind of
asynchronous callback from HttpClient? Care to share any code?
Doug
On Dec 24, 5:07 pm, Bret Foreman bret.fore...@gmail.com wrote:
I'm doing a set of HTTP posts (using DefaultHttpClient), each in its
own AsyncTask. Functionally, it works fine but I'm getting the warning
below in the log. This warning appears for each instance of the
AsyncTask. I'm guessing that the HTTP Client in posting a message (to
itself?), then the task exits, then the message is undeliverable. Has
anyone seen this behavior before or have an idea how I might prevent
the warning?
12-24 16:45:30.669: WARN/MessageQueue(7888): Handler{448b0288} sending
message to a Handler on a dead thread
12-24 16:45:30.669: WARN/MessageQueue(7888):
java.lang.RuntimeException: Handler{448b0288} sending message to a
Handler on a dead thread
12-24 16:45:30.669: WARN/MessageQueue(7888): at
android.os.MessageQueue.enqueueMessage(MessageQueue.java:179)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
android.os.Handler.sendMessageAtTime(Handler.java:457)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
android.os.Handler.sendMessageDelayed(Handler.java:430)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
android.os.Handler.sendMessage(Handler.java:367)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
android.os.Message.sendToTarget(Message.java:348)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
android.os.AsyncTask$3.done(AsyncTask.java:214)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
java.util.concurrent.FutureTask$Sync.innerSet(FutureTask.java:252)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
java.util.concurrent.FutureTask.set(FutureTask.java:112)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:310)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1068)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:561)
12-24 16:45:30.669: WARN/MessageQueue(7888): at
java.lang.Thread.run(Thread.java:1096)
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en