[MarkLogic Dev General] Premature End of Stream on Read: How to Fix?

Mike Sokolov sokolov at ifactory.com
Fri Nov 16 05:52:45 PST 2007


I saw this recently and found the problem was a version mismatch between XCC library and server.

-Mike

----- Original Message -----
From: "Ron Hitchens" <ron.hitchens at marklogic.com>
To: "General Mark Logic Developer Discussion" <general at developer.marklogic.com>
Sent: Friday, November 16, 2007 2:12:45 AM (GMT-0500) America/New_York
Subject: Re: [MarkLogic Dev General] Premature End of Stream on Read: How to Fix?


    Usually a premature EOS on an XCC/XDBC read means
that the socket closed unexpectedly.  It's possible that
the server is crashing and restarting.  Check the server
log (Logs/ErrorLog.txt) to see if there are startup messages
at the time one of these queries threw this exception.

    Which version of the server are you running?  Are you
using XCC or XDBC?

On Nov 15, 2007, at 7:45 PM, Eliot Kimber wrote:

> I have a query that can involve a number of documents and that then  
> returns what could be a large result (it's building a tree of  
> "node" elements representing a hierarchical structure composed from  
> multiple documents). It is being applied via an XDBC connection.
>
> The query is recursive and I can control the recursion depth as a  
> parameter to the top-level query function.
>
> The problem I'm running into is that for some data sets, when my  
> recursion depth exceeds a certain value, the query fails with a  
> "Premature end of stream on read" exception from MarkLogic.
>
> I suspect that this requires adjusting some setting on the server  
> but I have no idea what that might be.
>
> Is this error symptomatic of a problem that can be corrected by  
> adjusting the server configuration? My current setup uses all the  
> defaults.
>
> Thanks,
>
> Eliot
>
> -- 
> Eliot Kimber
> Senior Solutions Architect
> "Bringing Strategy, Content, and Technology Together"
> Main: 610.631.6770
> www.reallysi.com
> www.rsuitecms.com
>
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://xqzone.com/mailman/listinfo/general

---
Ron Hitchens {ron.hitchens at marklogic.com}  650-655-2351







More information about the General mailing list