ConcurrentModificationException won't release thread lock?!?!
Hi all,
My program is experiencing intermittent lock when it experienced ConcurrentModificationException and it won't release the thread lockl?!
This thread supposedly will only run for 1 min but its been 12 mins already and its not yet releasing the lock. It seems like because ConcurrentModificationException happened the lock was not release.
Im using java version "1.4.2_01"
1. Anybody knows what caused this?
2. Why is this happening intermittently? Some of my threads are not experiencing lock when they have ConcurrentModificationException.
3. How can i fix this? How can i avoid this?
Below is the dump of the thread that won't release the lock.
thanks in advance,
2224 root492M 324M sleep310 12:44.34 13% java/120
"net.Worker@176e552" prio=5 tid=0x008d1db8 nid=0x77 runnable [d7e01000..d7e019c0]
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.<init>(Throwable.java:180)
at java.lang.Exception.<init>(Exception.java:29)
at java.lang.RuntimeException.<init>(RuntimeException.java:32)
at java.util.ConcurrentModificationException.<init>(ConcurrentModificationException.java:57)
at java.util.Hashtable$Enumerator.next(Hashtable.java:980)
at net.Worker.decodeMessage(Worker.java:455)
- locked <0xe5a24ae0> (a net.Worker)
at net.Worker.onReceive(Worker.java:994)
at net.Worker.run(Worker.java:151)

