dbTalk Databases Forums  

Error: DB_PAGE_NOTFOUND: Requested page not found

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


Discuss Error: DB_PAGE_NOTFOUND: Requested page not found in the comp.databases.berkeley-db forum.



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

Default Error: DB_PAGE_NOTFOUND: Requested page not found - 03-30-2006 , 12:03 PM






Hello,

I need a help to do a query in BDBXml 2.2.13. The database and query I
am doing, works for dbxml utility, the
problem just happens when I run my cpp code.

The envflag I am using is

#define ENVFLAGS
DB_INIT_MPOOL|DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|D B_INIT_TXN

the open container is

XmlContainer cntNON_USA;

try {
dbManager = initDB();
XmlTransaction containerTxn = dbManager->createTransaction();
cntNON_USA = dbManager->openContainer(containerTxn,
nonusa_dbxml);
containerTxn.commit();

} catch (DbException &e) {
cerr << "Error opening database: " << nonusa_dbxml << endl;
exit(0);
} catch (exception &e) {
cerr << "Error opening database: " << nonusa_dbxml << endl;
cerr << e.what() << endl;
exit(0);
}

and the query code is

try {
string coordinates;
XmlManager dbManager = container->getManager();
XmlQueryContext context = dbManager.createQueryContext();
/*
* The query string
*
*/
string s = cityName;
int i = cityName.find('\'');

if (i < cityName.size())
{
s = cityName.substr(0, i - 1) + "\\" + cityName.substr(i);
}

string query = "collection(\'" + \
nonusa_dbxml + \
"\')/record[full_name_nd=\'Sao Paulo\']";
/*
* Declare the citycode variable
*
*/

XmlResults results = dbManager.query(query, context);

the exception is thrown here with the messages below

Error in query database: /opt/websrv/crsdb/geodata/non_usa.dbxml
Error: DB_PAGE_NOTFOUND: Requested page not found

Thanks in advance,
Ventura


Reply With Quote
  #2  
Old   
Ventura
 
Posts: n/a

Default Re: Error: DB_PAGE_NOTFOUND: Requested page not found - 03-30-2006 , 03:31 PM






I found out the problem.

MISSING PATCHES.

Rgrds,
Ventura


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.