dbTalk Databases Forums  

Odd XQuery behavior

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


Discuss Odd XQuery behavior in the comp.databases.berkeley-db forum.



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

Default Odd XQuery behavior - 03-10-2006 , 07:34 AM






I have DBXML installed on 2 Linux machines, 1 running Ubuntu and one
running SuSE.
I'm also running the SAME Java code on both machines. I've created a
container with DBXML classes, and can putDocuments in the container on both
machines. I can also do getAllDocuments to get all the database entries.

The problem I'm running into is when I do an XQuery of the container. Under
my SuSE environment the XmlManager.query() call always returns a null.
Under Ubuntu, I get a valid resultSet.

I can also run the DBXML Interactive Shell on the SuSE pc; enter my query
and that works.
There must obviously be some configuration issue that is getting in the way
on the SuSE pc.

Does anyone have any ideas on what I can check. I figured if my general
runtime configuration for DBXML was off I wouldn't be able to create a
container or put documents in the container.

tia

gary

Reply With Quote
  #2  
Old   
George Feinberg
 
Posts: n/a

Default Re: Odd XQuery behavior - 03-10-2006 , 10:05 AM







Gary,

I just responded to this on the BDB XML list, which is a better place
for this sort of question.

I'm pretty sure the issue is that SuSE comes with BDB XML installed,
and if you have built your own 2.2.13 version, the two are probably
getting mixed up. You are probably better off using 2.2.13, but it
means either uninstalling what's there, or being careful to control
your build and execution environment to avoid the installed version.

Regards,

George

Gary Baranzini wrote:
Quote:
I have DBXML installed on 2 Linux machines, 1 running Ubuntu and one
running SuSE.
I'm also running the SAME Java code on both machines. I've created a
container with DBXML classes, and can putDocuments in the container on both
machines. I can also do getAllDocuments to get all the database entries.

The problem I'm running into is when I do an XQuery of the container. Under
my SuSE environment the XmlManager.query() call always returns a null.
Under Ubuntu, I get a valid resultSet.

I can also run the DBXML Interactive Shell on the SuSE pc; enter my query
and that works.
There must obviously be some configuration issue that is getting in the way
on the SuSE pc.

Does anyone have any ideas on what I can check. I figured if my general
runtime configuration for DBXML was off I wouldn't be able to create a
container or put documents in the container.

tia

gary


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.