Excuse me.. In Germany we say "zu frueh gefreut".. When running the query WITH ADMIN PERMISSIONS, it works.
When running the query with read/write permissions the same (not more detailed) "interupted"-Exception shows up.
So this indicates pretty clearly that the TIMEOUT was exceeded. I guess your document is not stored in a database yet, right? Feel free to give me feedback on the questions of my initial mail..
To decrease memory consumption, you can specify an output stream in your client (via setOutputStream). Do you really want to return the full XML document and process it in main memory? Returning 80 MB of data should not cause serious problems, though, even with 1GB of RAM. Did you manage to successfully parse this resource in the BaseX GUI (or is the document already stored in a database)?
My assumption is that a timeout is exceeded somewhere.. so my next question is how to properly set the timeout
For non-admin users, you can set a global server timeout via the TIMEOUT option [2]. If I remember correctly, the timeout will not be checked while a resource is parsed, it could be that it does not necessarily stop your query in time.
Cheers, Christian
[1] http://files.basex.org/releases/latest/ [2] http://docs.basex.org/wiki/Options#TIMEOUT .