> ----- Forwarded by Robert Weir/Cambridge/IBM on 08/16/2011 03:07 PM ----- > > From: Colin Clausen <[email protected]> > To: [email protected] > Date: 08/16/2011 06:00 AM > Subject: [odfdom-users] odftoolkit threadsafe ? > > > > Hi, > I am trying to load two documents concurrently and I am running into > endless loops again and again. > The reason seems to be a corruption of the HashMap mElementTypes in the > Class OdfXMLFactory, which causes the call classCache.get(odfName) to > infinitely loop within line 303 of HashMap. > However I cant even find where the Hashmap gets modified, the method > setOdfElementClass in OdfXMLFactory seems to be unused ?
Yes, setOdfElementClass and setOdfAttributeClass are not used. I think we need to improve it. Could you share your test case to me? Then I can reproduce and fix it. Thanks! > > My best guess to fix this is to replace all the HashMaps by > ConcurrentHashMaps. We will consider using ConcurrentHashMap to replace HashMap if necessary. > Is anything known about this problem ? > > > >
