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)

[1516 byte] By [leigh@@@a] at [2007-10-1 23:50:01]
# 1
Crossposted at: http://forum.java.sun.com/thread.jspa?threadID=663400Crossposting is annoying to those who might answer you. Can you really not see why that would be the case?
warnerjaa at 2007-7-15 15:41:17 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2

Sorry for multiple post but im not sure on what group to post my question since its a mixture of thread, exception and collection. If you can answer me where should i post this kind of question then i'll be happy to post it there.

> Crossposted at:

> http://forum.java.sun.com/thread.jspa?threadID=6634

> 00

>

> Crossposting is annoying to those who might answer

> you. Can you really not see why that would be the

> case?

leigh@@@a at 2007-7-15 15:41:17 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3

If you want to get the most visibility to it, I'd suggest the "Java Programming Forum".

However, since you already posted the question, if you're going to create a topic in "Java Programming", please "close" your other duplicates by posting a notice in them such as I did on this one, pointing answerers to look in the "main" topic.

If you don't do that, then people potentially waste their time answering you when you might have been answered similarly in one of the duplicate topics.

Alternatively, instead of duplicating the post, you could just open up a topic in the forum with the message body consisting of basically just a link to the "main" topic, with a plea for people to follow that link and answer there.

warnerjaa at 2007-7-15 15:41:17 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 4
okay... then to all the people viewing this post just follow the url below. thanks http://forum.java.sun.com/thread.jspa?threadID=663400
leigh@@@a at 2007-7-15 15:41:17 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...