incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DaLi Liu (JIRA)" <>
Subject [jira] [Commented] (ODFTOOLKIT-201) HashMap leads to endless loop in OdfXMLFactory.
Date Tue, 25 Sep 2012 03:00:08 GMT


DaLi Liu commented on ODFTOOLKIT-201:

Verified status of this issue
2.not sure - I am not sure about this issue, maybe still need to be opened

In issue ODFTOOLKIT-198 Some threads hang if openning a document with multiple threads
It also said: "If a document is openning with ODFDOM by multiple threads, some threads hang.
By looking into the stack, the problem is caused by HashMap used in concurrent environment."
> HashMap leads to endless loop in OdfXMLFactory.
> -----------------------------------------------
>                 Key: ODFTOOLKIT-201
>                 URL:
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 0.8.7
>         Environment: Operating System: Windows
> Platform: PC
>            Reporter: devin
>            Assignee: issues
>             Fix For: 0.8.7
> Load two documents concurrently may run 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. 
> We will consider using ConcurrentHashMap to replace HashMap if necessary.
> BTW: setOdfElementClass and setOdfAttributeClass are not used. I think we need to improve
> Thanks Colin discovered and reported this bug.
> Devin

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message