We are using the Marklogic XCC .Net library for inserting documents into Marklogic. However under load (45 concurrent users), we start getting the exception with the message Provider com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl not found Does somebody have a clue ?
The code is
using (var session = ContentSourceFactory.NewContentSource(new Uri(_connectionUriString)).NewSession())
{
var contentCreateOptions = new ContentCreateOptions
{
Format = DocumentFormat.Format.XML,
Collections =
new[]
{
"Docs"
}
};
var options = contentCreateOptions;
var fileName = string.Format("/doc/{0}.xml", doc.Id);
session.InsertContent(ContentFactory.NewContent(fileName, doc.Serialize(), options));
}