Hello,
i am getting an BaseXException when trying to get large amount of data from a XML-resource with a JAVA-Client.
For example for a xml-file with the size of 79167874 ("FACTOR", as shown by the web-gui) "session.execute(new
XQuery("doc('db/file.xml')"));" will result in an exception[0].
My assumption is that a timeout is exceeded somewhere.. so my next question is how to properly set the timeout (Or in general, how to run specific commands via java-client, I can't find it in the wiki.
"session.query("timeout[0]");" seems to not have any influence.
Query large files in general, for example query its number of instances, seems to not be the problem.
Increasing the -Xmx in the basex-script did not help.
# Options for virtual machine (can be extended by global options)
BASEX_JVM="-Xmx10G $BASEX_JVM"
Increasing the -Xmx of the java-application did not help as well.
I hope you can help me.
best regards,
Jan
[0] org.basex.core.BaseXException: Interrupted.
at org.basex.api.client.ClientSession.receive(ClientSession.java:191)
at org.basex.api.client.ClientSession.execute(ClientSession.java:160)
at org.basex.api.client.ClientSession.execute(ClientSession.java:165)
at org.basex.api.client.Session.execute(Session.java:36)
at net.ddns.janstapel.datamanagement.Main.main(Main.java:37)