db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Youngho Cho" <youn...@nannet.co.kr>
Subject IDBroker Problem
Date Fri, 09 Nov 2007 08:39:52 GMT
Hello,

Sometimes I got following error message from console.

Exception in thread "Torque - ID Broker thered" java.util.ConcurrentModificationException
    at java.util.Hashtable$Enumertor.next(Hashtable.java:1020)
    at org.apache.torque.oid.IDBroker.run(IDBroker.java:550)
    at java.lang.Thread.run(Thread.java:595)

( This trouble happens in my Scarab )

I think It comes from when Id table modification occurs during retrieved ids loop.


Here is some patch for this trouble.

IDBroker.java

line 547
<--
 Iterator it = ids.keySet().iterator();
--
 Iterator it = new HashSet(ids.keySet()).iterator();
-->

Sorry I couldn't make diff from my svn client.



Thanks

Youngho
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message