dbTalk Databases Forums  

Xquery crashes tomcat container

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Xquery crashes tomcat container in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Suresh
 
Posts: n/a

Default Xquery crashes tomcat container - 03-09-2007 , 02:07 PM






We are accessing the Berkeley DB through the Java API deployed in a
tomcat container.

I ran a xquery (deployed in tomcat) on Windows XP which threw the
exception:

com.sleepycat.dbxml.XmlException: Error: SequenceType matching failed:
the sequence contains more than one item [err:XPTY0004], file:///<--->:116:18,
errcode = XPATH_EVALUATION_ERROR
at com.sleepycat.dbxml.dbxml_javaJNI.XmlResults_hasNe xt(Native
Method)
at com.sleepycat.dbxml.XmlResults.hasNext(XmlResults. java:45)

There was a problem in the xquery, where I was trying to do an "order
by" on an attribute that had multiple values.

However this query in Berkeley DB (2.3.10) on CentOS Linux (Linux
2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006 x86_64 x86_64
x86_64 GNU/Linux) crashed the container!!

I do not quite understand as to why an xquery would bring down the
container. I removed the "order by" clause from the xquery and
everything work fine.

Any help on debugging such issues is really appreciated.

Thanks,
Suresh


Reply With Quote
  #2  
Old   
John Snelson
 
Posts: n/a

Default Re: Xquery crashes tomcat container - 03-13-2007 , 05:39 AM






I'm not sure what you mean by "crashed the container". An error in an
XQuery will not cause container corruption or crash your application
unless you do not handle the exception correctly.

John

On Mar 9, 8:07 pm, "Suresh" <sbku... (AT) gmail (DOT) com> wrote:
Quote:
We are accessing the Berkeley DB through the Java API deployed in a
tomcat container.

I ran a xquery (deployed in tomcat) on Windows XP which threw the
exception:

com.sleepycat.dbxml.XmlException: Error: SequenceType matching failed:
the sequence contains more than one item [err:XPTY0004], file:///<--->:116:18,
errcode = XPATH_EVALUATION_ERROR
at com.sleepycat.dbxml.dbxml_javaJNI.XmlResults_hasNe xt(Native
Method)
at com.sleepycat.dbxml.XmlResults.hasNext(XmlResults. java:45)

There was a problem in the xquery, where I was trying to do an "order
by" on an attribute that had multiple values.

However this query in Berkeley DB (2.3.10) on CentOS Linux (Linux
2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006 x86_64 x86_64
x86_64 GNU/Linux) crashed the container!!

I do not quite understand as to why an xquery would bring down the
container. I removed the "order by" clause from the xquery and
everything work fine.

Any help on debugging such issues is really appreciated.

Thanks,
Suresh



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.