You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Alberto Massari (JIRA)" <xe...@xml.apache.org> on 2006/05/08 21:01:21 UTC

[jira] Closed: (XERCESC-1590) Exception in DOMBuilder::parse()

     [ http://issues.apache.org/jira/browse/XERCESC-1590?page=all ]
     
Alberto Massari closed XERCESC-1590:
------------------------------------

    Resolution: Incomplete

> Exception in DOMBuilder::parse()
> --------------------------------
>
>          Key: XERCESC-1590
>          URL: http://issues.apache.org/jira/browse/XERCESC-1590
>      Project: Xerces-C++
>         Type: Bug

>   Components: DOM
>     Versions: 2.3.0
>  Environment: SuSE Linux
>     Reporter: Josef Mueller

>
> I use DOMBuilder::parse() to parse an XML file.
> For the implementation I followed the Xerces example DOMCount.
> Sometimes it happens that DOMBuilder::parse() throws an exception which is caught in catch (...), so it is not an XMLException and not an DOMException. If the exception is thrown once, then it is thrown for any subsequent call of DOMBuilder::parse() for every XML file.
> After restart of the process the parsing operation succeeds for every XML file which caused an error before.
> I'm thankful for any hints to find the reason of this behaviour.
> Here are some lines of implementation (try-catch omited):
> XMLPlatformUtils::Initialize();
> ...
> DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(gLS);
> DOMBuilder        *parser = ((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
> ...
> // xmlBuf contains the XML data
> MemBufInputSource* isource = new MemBufInputSource((const XMLByte*)xmlBuf.c_str(),
>                                                        strlen(xmlBuf.c_str()),
>                                                        bufId,
>                                                        false);
> ...
> parser->parse(Wrapper4InputSource(isource, false));
> ...
> XMLPlatformUtils::Terminate();

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org