org.basex.core.BaseXException with no error message
Thursday, 12 August 2021 · 4 messages · last reply 18 Aug 2021
MD
Matthew Dziuban12 Aug 2021 17:01 #
Hi all,
I'm using the java ClientSession class defined in the basex-api module and I'm seeing intermittent org.basex.core.BaseXException errors with an empty error message when executing long-running read queries or CREATE DB commands. The stack trace of the most recent error points to ClientSession.receive (
https://github.com/BaseXdb/basex/blob/9.5.2/basex-core/src/main/java/org/basex/api/client/ClientSession.java#L190 )
org.basex.core.BaseXException:
org.basex.api.client.ClientSession.receive(ClientSession.java:190) org.basex.api.client.ClientSession.send(ClientSession.java:178) org.basex.api.client.ClientSession.send(ClientSession.java:215) org.basex.api.client.ClientSession.create(ClientSession.java:128) ...
Unfortunately since the message is empty it's difficult to debug what's going wrong. I've checked the log files in basex/data/.logs but haven't found any information about the failure. Is there another place I can look? Or do you have any other recommendations for debugging the errors?
Thanks in advance,
Matt
CG
Christian Grün12 Aug 2021 19:59 #
Hi Matt,
It’s difficult to give a general answer. Do you think you can share a reproducible test case with us?
Thanks in advance
Christian
Quoted text · Matthew Dziuban · 17 lines
On Thu, Aug 12, 2021 at 3:01 PM Matthew Dziuban <mrdziuban at gmail.com> wrote: > > Hi all, > > I'm using the java ClientSession class defined in the basex-api module and I'm seeing intermittent org.basex.core.BaseXException errors with an empty error message when executing long-running read queries or CREATE DB commands. The stack trace of the most recent error points to ClientSession.receive (https://github.com/BaseXdb/basex/blob/9.5.2/basex-core/src/main/java/org/basex/api/client/ClientSession.java#L190) > > org.basex.core.BaseXException: > org.basex.api.client.ClientSession.receive(ClientSession.java:190) > org.basex.api.client.ClientSession.send(ClientSession.java:178) > org.basex.api.client.ClientSession.send(ClientSession.java:215) > org.basex.api.client.ClientSession.create(ClientSession.java:128) > ... > > Unfortunately since the message is empty it's difficult to debug what's going wrong. I've checked the log files in basex/data/.logs but haven't found any information about the failure. Is there another place I can look? Or do you have any other recommendations for debugging the errors? > > Thanks in advance, > Matt
CG
Quoted text · Matthew Dziuban · 1 line
> Are there any known issues with multiple simultaneous connections or
query executions
None that at least I am aware of. Have you encountered problems, or have you rather been distracted by the (unexpected) error message output?
Quoted text · Matthew Dziuban · 55 lines
Matthew Dziuban <mrdziuban at gmail.com> schrieb am Di., 17. Aug. 2021, 23:34: > Hi Christian, > > Apologies for the delay on my end. Unfortunately I can't reproduce it > consistently, but it seems to happen most often when I run another query > (either via the REST interface of the java client) while the original query > is still running. Are there any known issues with multiple simultaneous > connections or query executions? > > Thanks, > Matt > > On Thu, Aug 12, 2021 at 1:59 PM Christian Grün <christian.gruen at gmail.com> > wrote: > >> Hi Matt, >> >> It’s difficult to give a general answer. Do you think you can share a >> reproducible test case with us? >> >> Thanks in advance >> Christian >> >> >> >> On Thu, Aug 12, 2021 at 3:01 PM Matthew Dziuban <mrdziuban at gmail.com> >> wrote: >> > >> > Hi all, >> > >> > I'm using the java ClientSession class defined in the basex-api module >> and I'm seeing intermittent org.basex.core.BaseXException errors with an >> empty error message when executing long-running read queries or CREATE DB >> commands. The stack trace of the most recent error points to >> ClientSession.receive ( >> https://github.com/BaseXdb/basex/blob/9.5.2/basex-core/src/main/java/org/basex/api/client/ClientSession.java#L190 >> ) >> > >> > org.basex.core.BaseXException: >> > org.basex.api.client.ClientSession.receive(ClientSession.java:190) >> > org.basex.api.client.ClientSession.send(ClientSession.java:178) >> > org.basex.api.client.ClientSession.send(ClientSession.java:215) >> > org.basex.api.client.ClientSession.create(ClientSession.java:128) >> > ... >> > >> > Unfortunately since the message is empty it's difficult to debug what's >> going wrong. I've checked the log files in basex/data/.logs but haven't >> found any information about the failure. Is there another place I can look? >> Or do you have any other recommendations for debugging the errors? >> > >> > Thanks in advance, >> > Matt >> > >
MD
Hi Christian,
Apologies for the delay on my end. Unfortunately I can't reproduce it consistently, but it seems to happen most often when I run another query (either via the REST interface of the java client) while the original query is still running. Are there any known issues with multiple simultaneous connections or query executions?
Thanks,
Matt
Quoted text · Christian Grün · 40 lines
On Thu, Aug 12, 2021 at 1:59 PM Christian Grün <christian.gruen at gmail.com> wrote: > Hi Matt, > > It’s difficult to give a general answer. Do you think you can share a > reproducible test case with us? > > Thanks in advance > Christian > > > > On Thu, Aug 12, 2021 at 3:01 PM Matthew Dziuban <mrdziuban at gmail.com> > wrote: > > > > Hi all, > > > > I'm using the java ClientSession class defined in the basex-api module > and I'm seeing intermittent org.basex.core.BaseXException errors with an > empty error message when executing long-running read queries or CREATE DB > commands. The stack trace of the most recent error points to > ClientSession.receive ( > https://github.com/BaseXdb/basex/blob/9.5.2/basex-core/src/main/java/org/basex/api/client/ClientSession.java#L190 > ) > > > > org.basex.core.BaseXException: > > org.basex.api.client.ClientSession.receive(ClientSession.java:190) > > org.basex.api.client.ClientSession.send(ClientSession.java:178) > > org.basex.api.client.ClientSession.send(ClientSession.java:215) > > org.basex.api.client.ClientSession.create(ClientSession.java:128) > > ... > > > > Unfortunately since the message is empty it's difficult to debug what's > going wrong. I've checked the log files in basex/data/.logs but haven't > found any information about the failure. Is there another place I can look? > Or do you have any other recommendations for debugging the errors? > > > > Thanks in advance, > > Matt >
Written for BaseX 9.5. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery