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 SREENI <sr...@sap.com> on 2015/01/13 23:14:25 UTC

unable to open primary document entity with xerces 3.0.1

Hi I am getting error "unable to open primary document entity" very randomly
. This issue does not happen in debug mode happens only in release mode and
in customer system.  This happens when parallel requests are sent for
import. Note : validation is set to false as there is no schema to validate
against. Let me know if need more information on this . And any help is
appreciate as this very urgent.
If I send same xml again for parsing it works fine.



Below is code we have 

m_parser->setErrorHandler(m_handler);
m_parser->resetDocumentPool();
	FILE *fp = fileOpen(filename, "r");
	if (fp)
	{
		fflush(fp);
		fclose(fp);
		m_parser->parse(filename); --> //Parse returns error handler with message
unable to open primary document entity
}
else
throw error saying unable to error.






--
View this message in context: http://apache-xml-project.6118.n7.nabble.com/unable-to-open-primary-document-entity-with-xerces-3-0-1-tp41659.html
Sent from the Xerces - C - Dev mailing list archive at Nabble.com.

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