IllegalMonitorStateException on 'object.wait()' call randomly

by svd » Fri, 23 Apr 2010 08:04:51 GMT

Sponsored Links
 My code throws an IllegalMonitorStateException on 'object.wait()'
call, even though wait is invoked inside a synchronized block. And
this exception occurs only randomly not always.

below is my code snippet:

while (!mFinish) {
          synchronized (mResponse) {
                    if (!mResponse.isEmpty()) {
                           do something
                    } else {
                        try {
                        } catch (InterruptedException ie) {


Also all the 'notify' methods are in synchronized block.
Please point out if there is anything wrong in my code?


Other Threads

1. WiFi Driver error?

Hello to everybody,

I'm testing an app that handles automatically a connection to WiFi
using WiFi Manager on a Motorola Milestone (Android OS 2.0).

I happens to me a lot of times to see this error:

ERROR: - wpa_driver_tista_send - error sending Wext private IOCTL to
STA driver (ioctl_cmd = 8000306, res = -1, errno = 95).

Also, is there anyway to detect if the WiFiManager is scanning
networks in order to not start a new scanning? May be this problem
appears because on startScan is launched before anotherone ends.




2. Android used in an identity theft

How secure is Android?  As a happy owner of a new Droid with a strong
suspicion that it may have been used in an identity theft, I figured
this was a good place to spread the word and seek some advice.

Someone broke into my Google business account and created a $200/day
national fraudulent Adwords campaign pointing to someone else's
business.  I'm trying to understand how they could have gotten in.
The account had a 10 char alphanumeric password.  I pretty much never
log into it except to administer Adwords, and I've not been in it for
a month.  The exception is that I entered my password for the account
- along with most of the rest - into my Droid.  I also downloaded
about a dozen apps, and allowed whatever they asked for.  This morning
my Droid reported a "sign in error" to my business account, and upon
investigation I found a fairly elaborate fraud chain. :(

Can apps get and forward passwords?  Seems likely... ouch.  How should
I proceed?

Details are here:

3. di undang lg ma IsatDroid

4. How can I get the seconds since 1.1.1970 as a long in Android?

5. PlayDriver

6. vm out-of-memory problem

7. ArrayAdapter use or misuse of the Adapter pattern