2012-07-03 92 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!