Re: existdb errors on xQueries

"Sanil, Seena via Exist-open" <[email protected]> Wed, 11 Jun 2025 12:20:01 +0000
Newsgroups gmane.text.xml.exist
Message-ID <BL1PR03MB60396FD9BA221B9EA31245CAD475A@BL1PR03MB6039.namprd03.prod.outlook.com>
--===============6951306367723817574==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_BL1PR03MB60396FD9BA221B9EA31245CAD475ABL1PR03MB6039namp_"

--_000_BL1PR03MB60396FD9BA221B9EA31245CAD475ABL1PR03MB6039namp_
Content-Type: text/plain; charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

Thanks Michael W.

Currently we are reindexing the entire collection.  For future, we would li=
ke to know if there is a way to avoid data/collection being corrupted ? If =
it gets corrupted, what is the best way to fix it?

Thanks
Seena

From: Michael Westbay <[email protected]>
Date: Tuesday, June 10, 2025 at 7:52 PM
To: Sanil, Seena <[email protected]>
Cc: eXist DB ML <[email protected]>, Mulvaney, Michael <MMul=
[email protected]>, Lubey, Brian <[email protected]>
Subject: Re: [Exist-open] existdb errors on xQueries
CAUTION: This email originated from outside of the organization. Do not cli=
ck links or open attachments unless you recognize the sender and know the c=
ontent is safe. Please report suspicious emails to: phishing@bloombergindus=
try.com<mailto:[email protected]>

Hi Seena,

The return type error is an easy one to fix. The function declaration expec=
ts to always return 1 and only 1 configuration. But it is getting none.

If returning no configuration is an option, redefine the function as:

```xquery
declare function config:get-configuration() as element(configuration)? {
  ...
};
```

If it should always return a configuration, then you need to determine why =
it is not finding the configuration. Since you aren't passing a parameter i=
nto the function, it doesn't appear to be something on a per-user basis -- =
so there should always be the global configuration.

Hope this helps point you in the right direction.

Take care.





2025=1B$BG/=1B(B6=1B$B7n=1B(B10=1B$BF|=1B(B(=1B$B2P=1B(B) 22:08 Sanil, Seen=
a via Exist-open <[email protected]<mailto:exist-open@lists.=
sourceforge.net>>:
Also errors like this =1B$B!H=1B(B
exerr:ERROR The actual return type does not match the sequence type declare=
d in the function's signature: config:get-configuration() as element(config=
uration). Expected cardinality: exactly one, got 0. [at line 42, column 42,=
 source: /db/apps/eXide/controller.xq]\nIn function:\n\tconfig:get-configur=
ation() as element(configuration)=1B$B!I=1B(B

From: Sanil, Seena <[email protected]<mailto:ssanil@bloombergind=
ustry.com>>
Date: Monday, June 9, 2025 at 7:44 PM
To: eXist DB ML <[email protected]<mailto:[email protected]=
ourceforge.net>>
Cc: Lubey, Brian <[email protected]<mailto:blubey@bloombergindus=
try.com>>, Mulvaney, Michael <[email protected]<mailto:MMulva=
[email protected]>>
Subject: existdb errors on xQueries
Hello,
We are getting some errors while running xQuery=1B$B!G=1B(Bs  all at once a=
gainst our eXist database with 1.3 million files from different clients lik=
e browser, oxygen desktop, Postman.

The errors are =1B$B!H=1B(BError while processing /exist/xmlrpc: An unknown=
 error occurred: org.apache.xmlrpc.XmlRpcException: I/O error while process=
ing request=1B$B!I=1B(B. . After that, the existdb instance hosted in the t=
he cloud is not coming up. Is there a reason for this behavior? How do we a=
void this in the future?

The xQuery we used are :
_query=3D//cite.bna.reference&_howmany=3D1000 , on a collection

Thanks
Seena Sanil


_______________________________________________
Exist-open mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/exist-open


--
Michael Westbay
Writer/System Administrator
http://www.japanesebaseball.com/

--_000_BL1PR03MB60396FD9BA221B9EA31245CAD475ABL1PR03MB6039namp_
Content-Type: text/html; charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of=
fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-2022-=
jp">
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"MS Gothic";
	panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Aptos;
	panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
	{font-family:Monaco;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"\@MS Gothic";
	panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:10.0pt;
	font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
span.m-5358710114089695989logseventstext-error0
	{mso-style-name:m_-5358710114089695989logseventstext-error0;}
span.m-5358710114089695989logseventstext-error
	{mso-style-name:m_-5358710114089695989logseventstext-error;}
span.gmailsignatureprefix
	{mso-style-name:gmail_signature_prefix;}
span.EmailStyle22
	{mso-style-type:personal-reply;
	font-family:"Aptos",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;
	mso-ligatures:none;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style>
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple" style=3D"word-wrap:brea=
k-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">Thanks Michael W.<o=
:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">Currently we are re=
indexing the entire collection.&nbsp; For future, we would like to know if =
there is a way to avoid data/collection being corrupted ? If it gets corrup=
ted, what is the best way to fix it?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">Thanks<o:p></o:p></=
span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">Seena<o:p></o:p></s=
pan></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"><o:p></o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"><o:p>&nbsp;</o:p></=
span></p>
<div id=3D"mail-editor-reference-message-container">
<div>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><b><span style=3D"fon=
t-size:12.0pt;color:black">From:
</span></b><span style=3D"font-size:12.0pt;color:black">Michael Westbay &lt=
;[email protected]&gt;<br>
<b>Date: </b>Tuesday, June 10, 2025 at 7:52 PM<br>
<b>To: </b>Sanil, Seena &lt;[email protected]&gt;<br>
<b>Cc: </b>eXist DB ML &lt;[email protected]&gt;, Mulvaney, =
Michael &lt;[email protected]&gt;, Lubey, Brian &lt;blubey@bl=
oombergindustry.com&gt;<br>
<b>Subject: </b>Re: [Exist-open] existdb errors on xQueries<o:p></o:p></spa=
n></p>
</div>
<div style=3D"border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class=3D"MsoNormal" style=3D"line-height:12.0pt;background:#FFEB9C"><b><=
span style=3D"font-family:&quot;Calibri&quot;,sans-serif;color:red">CAUTION=
:</span></b><span style=3D"font-family:&quot;Calibri&quot;,sans-serif;color=
:black">
<b>This email originated from outside of the organization. Do not click lin=
ks or open attachments unless you recognize the sender and know the content=
 is safe. Please report suspicious emails to:
<a href=3D"mailto:[email protected]">phishing@bloombergindustr=
y.com</a></b><o:p></o:p></span></p>
</div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
<div>
<div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">Hi Seena,<o:p></o:p=
></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">The return type err=
or is an easy one to fix. The function declaration expects to always return=
 1 and only 1 configuration. But it is getting none.<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">If returning no con=
figuration is an option, redefine the function as:<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">```xquery<o:p></o:p=
></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;font-family:&quot;Co=
urier New&quot;">declare function config:get-configuration() as element(con=
figuration)? {</span><span style=3D"font-size:12.0pt"><o:p></o:p></span></p=
>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;font-family:&quot;Co=
urier New&quot;">&nbsp; ...</span><span style=3D"font-size:12.0pt"><o:p></o=
:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;font-family:&quot;Co=
urier New&quot;">};</span><span style=3D"font-size:12.0pt"><o:p></o:p></spa=
n></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">```<o:p></o:p></spa=
n></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">If it should always=
 return a configuration, then you need to determine why it is not finding t=
he configuration. Since you aren't passing a parameter into the function, i=
t doesn't appear to be something on
 a per-user basis -- so there should always be the global configuration.<o:=
p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">Hope this helps poi=
nt you in the right direction.<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">Take care.<o:p></o:=
p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
</div>
</div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><o:p>&nbsp;</o:p></=
span></p>
<div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">2025</span><span st=
yle=3D"font-size:12.0pt;font-family:&quot;MS Gothic&quot;">=1B$BG/=1B(B</sp=
an><span style=3D"font-size:12.0pt">6</span><span style=3D"font-size:12.0pt=
;font-family:&quot;MS Gothic&quot;">=1B$B7n=1B(B</span><span style=3D"font-=
size:12.0pt">10</span><span style=3D"font-size:12.0pt;font-family:&quot;MS =
Gothic&quot;">=1B$BF|=1B(B</span><span style=3D"font-size:12.0pt">(</span><=
span style=3D"font-size:12.0pt;font-family:&quot;MS Gothic&quot;">=1B$B2P=
=1B(B</span><span style=3D"font-size:12.0pt">)
 22:08 Sanil, Seena via Exist-open &lt;<a href=3D"mailto:[email protected]=
ourceforge.net">[email protected]</a>&gt;:<o:p></o:p></span>=
</p>
</div>
<blockquote style=3D"border:none;border-left:solid #CCCCCC 1.0pt;padding:0i=
n 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:11.0pt">Also errors like this =1B$B!H=1B(=
B</span><span style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:9.0pt;font-family:Monaco;color:#0D7D70;ba=
ckground:#FCFCFD">exerr:</span><span class=3D"m-5358710114089695989logseven=
tstext-error0"><b><span style=3D"font-size:9.0pt;font-family:Monaco;color:#=
DB0000;background:#FCFCFD">ERROR</span></b></span><span style=3D"font-size:=
9.0pt;font-family:Monaco;color:#0D7D70;background:#FCFCFD">
 The actual return type does not match the sequence type declared in the fu=
nction's signature: config:get-configuration() as element(configuration). E=
xpected cardinality: exactly one, got 0. [at line 42, column 42, source: /d=
b/apps/eXide/controller.xq]\nIn
 function:\n\tconfig:get-configuration() as element(configuration)=1B$B!I=
=1B(B</span><span style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:11.0pt">&nbsp;</span><span style=3D"font-=
size:12.0pt"><o:p></o:p></span></p>
<div id=3D"m_-5358710114089695989mail-editor-reference-message-container">
<div>
<div>
<div style=3D"border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0=
in 0in 0in;border-color:currentcolor currentcolor">
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;margin-bottom:12.0p=
t"><b><span style=3D"font-size:12.0pt;color:black">From:
</span></b><span style=3D"font-size:12.0pt;color:black">Sanil, Seena &lt;<a=
 href=3D"mailto:[email protected]" target=3D"_blank">ssanil@bloo=
mbergindustry.com</a>&gt;<br>
<b>Date: </b>Monday, June 9, 2025 at 7:44 PM<br>
<b>To: </b>eXist DB ML &lt;<a href=3D"mailto:[email protected]=
et" target=3D"_blank">[email protected]</a>&gt;<br>
<b>Cc: </b>Lubey, Brian &lt;<a href=3D"mailto:[email protected]"=
 target=3D"_blank">[email protected]</a>&gt;, Mulvaney, Michael =
&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">MM=
[email protected]</a>&gt;<br>
<b>Subject: </b>existdb errors on xQueries</span><span style=3D"font-size:1=
2.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:12.0pt;font-family:&quot;Courier New&quot=
;">Hello,</span><span style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:12.0pt;font-family:&quot;Courier New&quot=
;">We are getting some errors while running xQuery=1B$B!G=1B(Bs &nbsp;<span=
 style=3D"color:#1D1C1D;background:#F8F8F8">all at once against our
 eXist database with 1.3 million files from</span> different clients like b=
rowser, oxygen desktop, Postman.
</span><span style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:12.0pt;font-family:&quot;Courier New&quot=
;">&nbsp;</span><span style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:12.0pt;font-family:&quot;Courier New&quot=
;">The errors are =1B$B!H=1B(B<span class=3D"m-5358710114089695989logsevent=
stext-error"><span style=3D"color:#DB0000;background:#F6F6F9">Error</span><=
/span><span style=3D"color:#0D7D70;background:#F6F6F9">
 while processing /exist/xmlrpc: An unknown </span><span class=3D"m-5358710=
114089695989logseventstext-error"><span style=3D"color:#DB0000;background:#=
F6F6F9">error</span></span><span style=3D"color:#0D7D70;background:#F6F6F9"=
> occurred: org.apache.xmlrpc.XmlRpcException:
 I/O </span><span class=3D"m-5358710114089695989logseventstext-error"><span=
 style=3D"color:#DB0000;background:#F6F6F9">error</span></span><span style=
=3D"color:#0D7D70;background:#F6F6F9"> while processing request=1B$B!I=1B(B=
.
</span><span style=3D"color:black;background:#F6F6F9">. After that, the exi=
stdb instance hosted in the the cloud is not coming up. Is there a reason f=
or this behavior? How do we avoid this in the future?</span></span><span st=
yle=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:12.0pt;font-family:&quot;Courier New&quot=
;;color:black;background:#F6F6F9">&nbsp;</span><span style=3D"font-size:12.=
0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:12.0pt;font-family:&quot;Courier New&quot=
;;color:black;background:#F6F6F9">The xQuery we used are :</span><span styl=
e=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:12.0pt;font-family:&quot;Courier New&quot=
;">_query=3D//cite.bna.reference&amp;_howmany=3D1000 , on a collection</spa=
n><span style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:12.0pt;font-family:&quot;Courier New&quot=
;">&nbsp;</span><span style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:12.0pt;font-family:&quot;Courier New&quot=
;">Thanks</span><span style=3D"font-size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:12.0pt;font-family:&quot;Courier New&quot=
;">Seena Sanil</span><span style=3D"font-size:12.0pt"><o:p></o:p></span></p=
>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:11.0pt">&nbsp;</span><span style=3D"font-=
size:12.0pt"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:11.0pt">&nbsp;</span><span style=3D"font-=
size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">___________________=
____________________________<br>
Exist-open mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">Exist=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/exist-open" target=
=3D"_blank">https://lists.sourceforge.net/lists/listinfo/exist-open</a><o:p=
></o:p></span></p>
</div>
</blockquote>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><br clear=3D"all">
<o:p></o:p></span></p>
</div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt"><br>
<span class=3D"gmailsignatureprefix">-- </span><o:p></o:p></span></p>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt">Michael Westbay<br>
Writer/System Administrator<br>
<a href=3D"http://www.japanesebaseball.com/" target=3D"_blank">http://www.j=
apanesebaseball.com/</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

--_000_BL1PR03MB60396FD9BA221B9EA31245CAD475ABL1PR03MB6039namp_--


--===============6951306367723817574==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============6951306367723817574==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open

--===============6951306367723817574==--