dbTalk Databases Forums  

XQuery under Linux returns null

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


Discuss XQuery under Linux returns null in the comp.databases.berkeley-db forum.



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

Default XQuery under Linux returns null - 03-02-2006 , 06:02 PM






Hi,

I have BDB XML 2.2 installed on both Windows XP and SuSE Linux.
I initially developed a small application on WinXP, using Java, that uses
DBD XML. In the WinXP system I can successfully use XQuery from within my
application to query data from the DB.

When I move the Java application to SuSE, all the DB funcations work
(created DB, write/read to/from DB) EXCEPT for using XQuery. I always get a
null returned whan doing a query. There are no other errors that I can see.

I know there is data in the DB as I can do a
getContainer().getAllDocuments(conf) and dump all the data I added to the
DB.

Anyone have any ideas?

thanks

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

Default Re: XQuery under Linux returns null - 03-06-2006 , 04:14 AM






Hi Gary,

I'm not entirely sure what might be causing this. Do queries work using
the DB XML shell on SUSE? Did you create your container on Windows, and
copy it accross to Suse? If so, does it work if you create the
container afresh on Suse?

John

Gary Baranzini wrote:
Quote:
Hi,

I have BDB XML 2.2 installed on both Windows XP and SuSE Linux.
I initially developed a small application on WinXP, using Java, that uses
DBD XML. In the WinXP system I can successfully use XQuery from within my
application to query data from the DB.

When I move the Java application to SuSE, all the DB funcations work
(created DB, write/read to/from DB) EXCEPT for using XQuery. I always get a
null returned whan doing a query. There are no other errors that I can see.

I know there is data in the DB as I can do a
getContainer().getAllDocuments(conf) and dump all the data I added to the
DB.

Anyone have any ideas?

thanks


Reply With Quote
  #3  
Old   
Gary Baranzini
 
Posts: n/a

Default Re: XQuery under Linux returns null - 03-06-2006 , 11:15 PM



Hi John,

I seem to have run into more problems since I orginally posted this.

First off, the only thing I moved from my windows environment to SuSE
was the Java code. Databases/containers were created separately on each
platform.

1. XQuery works well on Windows platform, but on SuSE. XQuery always
returns NULL.

2. I use transactions to add my documents to the database, each add is
with a document name. When I attempt to delete the document, again using
the document name, the deleteDocument() call hangs. This happens on both
Windows and SuSE. Under Windows, I've even tried delete with an object,
after performing a query, but delete always hangs.

3. Currently the only way I can retrieve data on SuSE is to do
getAllDocuments() and then parsing through the documents.

I've double checked my program against the sample code in GettingStarted
and in the BerkeleyDBXML-JAVA-GSG.pdf guide. It looks like I'm doing
everything right. I would think if I can add a document, I should be
able to delete it.

I will try the DB XML shell on SuSE either tomorrow or the next day.

gary





In article <1141640047.142276.70580 (AT) v46g2000cwv (DOT) googlegroups.com>,
jsnelson (AT) sleepycat (DOT) com says...
Quote:
Hi Gary,

I'm not entirely sure what might be causing this. Do queries work using
the DB XML shell on SUSE? Did you create your container on Windows, and
copy it accross to Suse? If so, does it work if you create the
container afresh on Suse?

John

Gary Baranzini wrote:
Hi,

I have BDB XML 2.2 installed on both Windows XP and SuSE Linux.
I initially developed a small application on WinXP, using Java, that uses
DBD XML. In the WinXP system I can successfully use XQuery from within my
application to query data from the DB.

When I move the Java application to SuSE, all the DB funcations work
(created DB, write/read to/from DB) EXCEPT for using XQuery. I always get a
null returned whan doing a query. There are no other errors that I can see.

I know there is data in the DB as I can do a
getContainer().getAllDocuments(conf) and dump all the data I added to the
DB.

Anyone have any ideas?

thanks



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.