Could you post a stack trace?

What version of XCC are you using?

What specifically are you referring to when you talk about "opening 
connections"?

On Mar 13, 2010, at 2:33 PM, Lee, David wrote:

If I use XCC to iteratively insert a large set of documents I consistently get 
this error

com.marklogic.xcc.exceptions.ServerConnectionException: An established 
connectin was aborted by the software in your host machine [Session: user=DLEE, 
cb={default} [ContentSource: user=DLEE, cb={none} [providr: 
address=home/192.168.1.10:8011, pool=0/64]]]


This occurs after about 20,000 files and aborts the program.
I'm thinking of implementing a exception handler to retry but I dont want to be 
retrying after more serious errors.
The server log doesnt show any problems, and this is on a dedicated 1GB wired 
LAN so I dont think its internet problems.

If instead of using the same connection I open the connection for each file it 
often gets around this problem, but not always,
I think its getting around it because I'm not aborting on error in that case 
(just going to the next file).

I'm using this code snippet to create the content in bulks of 1-20 ( files in a 
directory )

Content content= ContentFactory.newContent (uri, file, mCreateOptions);
contents.add(content);
...

if( ! contents.isEmpty() )
     session.insertContent (contents.toArray(new Content[ contents.size()]));



Any suggestions ?



----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
d...@epocrates.com<mailto:d...@epocrates.com>
812-482-5224

_______________________________________________
General mailing list
General@developer.marklogic.com<mailto:General@developer.marklogic.com>
http://xqzone.com/mailman/listinfo/general

_______________________________________________
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general

Reply via email to