[ 
https://issues.apache.org/jira/browse/ODFTOOLKIT-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462390#comment-13462390
 ] 

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: https://issues.apache.org/jira/browse/ODFTOOLKIT-201
>             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 it.
> 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: http://www.atlassian.com/software/jira

Reply via email to