[
https://issues.apache.org/jira/browse/XERCESJ-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16616213#comment-16616213
]
Slava G commented on XERCESJ-1702:
----------------------------------
Well, I'm not getting OutOfMemoryError exception maybe due to reason that JVM
process has enough RAM to try to parse this XML for 5-6 days, but after that
the JVM process is dead (really not responding).
So, at the end I have xml files , small enough that their parsing cause my JVM
process to not respond after few days of parsing those XML without any option
to avoid this, I was relying on the XML parser that should throw exception if
something goes wrong (which is not happen in my case). BTW, I tried to parse
this XML in the mac text edit (BBEdit) and it's showed me (very fast): -:36:
parser error : Detected an entity reference loop
<billion location="&laugh29;">text</billion>. So, I don't know what to do and
how to avoid this situation which makes my JVM process to dead.
Please advise.
Thanks
> Parsing XML
> ------------
>
> Key: XERCESJ-1702
> URL: https://issues.apache.org/jira/browse/XERCESJ-1702
> Project: Xerces2-J
> Issue Type: Bug
> Affects Versions: 2.12.0
> Reporter: Slava G
> Priority: Major
> Attachments: 1_e3e13f0e-7085-4000-a558-5d255ed7a944.xml
>
>
> Hi,
> When I'm trying to parse XML document using :
> _DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();_
> _DocumentBuilder builder = factory.newDocumentBuilder();_
> _builder.parse(File)_
>
> The parsing is stuck in infinite loop:
> {{XMLDocumentScannerImpl(XMLScanner).scanAttributeValue(XMLString, XMLString,
> String, boolean, String) line: not available }}
> {{
> XMLDocumentScannerImpl(XMLDocumentFragmentScannerImpl).scanAttribute(XMLAttributes)
> line: not available }}
> {{ XMLDocumentScannerImpl(XMLDocumentFragmentScannerImpl).scanStartElement()
> line: not available }}
> {{ XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook() line: not
> available }}
> {{
> XMLDocumentScannerImpl$ContentDispatcher(XMLDocumentFragmentScannerImpl$FragmentContentDispatcher).dispatch(boolean)
> line: not available }}
> {{
> XMLDocumentScannerImpl(XMLDocumentFragmentScannerImpl).scanDocument(boolean)
> line: not available }}
> {{ XIncludeAwareParserConfiguration(XML11Configuration).parse(boolean) line:
> not available }}
> {{ XIncludeAwareParserConfiguration(XML11Configuration).parse(XMLInputSource)
> line: not available }}
> {{ DOMParser(XMLParser).parse(XMLInputSource) line: not available }}
> {{ DOMParser.parse(InputSource) line: not available }}
> {{ DocumentBuilderImpl.parse(InputSource) line: not available }}
> {{ DocumentBuilderImpl(DocumentBuilder).parse(File) line: 205}}
>
> Please see attached XML file that cause this issue.
> Thanks
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]