incubator-odf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Biao Han <hanb...@cn.ibm.com>
Subject Re: Fw: [odfdom-users] odftoolkit threadsafe ?
Date Wed, 17 Aug 2011 08:45:47 GMT
> ----- Forwarded by Robert Weir/Cambridge/IBM on 08/16/2011 03:07 PM -----
>
> From:   Colin Clausen <cclausen@tng.de>
> To:     users@odfdom.odftoolkit.org
> 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 ?
>
>
>
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message