2012-07-03 89 views
0

我們使用Marklogic XCC .Net庫將文檔插入到Marklogic中。然而,在負載下(45個併發用戶),我們開始使用消息提供者獲取異常提供者com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl找不到 有人有線索嗎?在加載內容時插入內容時未找到com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl

的代碼是

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)); 
      } 
+0

我懷疑你會得到更好的牽引力,如果你直接發佈到marklogic開發人員列表http://community.marklogic.com/mailman/listinfo/general –

回答

0

我懷疑問題是不是被你的代碼本身引起的。更有可能是服務器內存不足,導致它無法加載必要的類/對象來運行代碼。調整允許的並行請求的數量,或增加內存。

HTH!