Originally posted by Ajit Kumar:
I am implementing lock & unlock
methods. I am keeping all locked records in
a vector. In lock i am synchronizing on
this vector. I am checking if a given record
is already locked. If it is locked. the
In the unlock method, i am simply removing
the record number from the list of locked
records vector. and notifying using
These two methods are implemented in Data.java
When i am executing
i am getting "IllegalMonitorStateException".
Did you guys come across anything like this.
Any suggestions on how to correct this error
will be appreciate.