I doubt that the version of XCC has any bearing on this problem. The issue is that (if I understand your description) you're using an XQuery to insert documents that you've passed as external variables. This is not the ideal way to insert documents if that's all you're doing.
When you do this, you're basically compiling a program that includes a big chunk (or chunks) of data compiled into it. MarkLogic can handle big data, but not compiled into XQuery code modules. The preferred way to insert documents into MarkLogic is via the session.insertContent() method. Doing this bypasses the XQuery program creation process and streams the document(s) straight into the database. You can insert multiple documents at once, atomically, as well. The sudden disconnect by the server, indicated by the "Premature EOF" message, is probably caused by the XQuery interpreter aborting when it tries to bind the large external data values during XQuery static analysis. On Feb 1, 2012, at 2:14 PM, Josh Warner-Burke wrote: > We have a java application which talks to Marklogic through the > com.marklogic.xcc package and some custom code we wrote. The version of XCC > is perhaps a bit old, version 4.1-7. Anyway we are having a problem passing > in a large file through our DAL to a module. The module accepts both a > string version and a binary version of the file. Works fine for small files, > but with a file size of say 15M, when the procedure runs it takes a long time > then times out with either an out of memory error or this: > > java.lang.RuntimeException: com.marklogic.xcc.exceptions. > ServerConnectionException: Premature EOF, partial header line read: '' > > What I am wondering is if anyone has encountered this? Or if anyone knows > about a bug in older versions which could cause this. Naturally I would like > to upgrade XCC but it's not a high priority unless I know it will fix > something. Thanks in advance. > > > -- > Josh Warner-Burke > 42SIX Solutions > (m): 410-493-4362 > (e): [email protected] > > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general --- Ron Hitchens {mailto:[email protected]} Ronsoft Technologies +44 7879 358 212 (voice) http://www.ronsoft.com +1 707 924 3878 (fax) Bit Twiddling At Its Finest "No amount of belief establishes any fact." -Unknown _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
