Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Container address

885512Sep 25 2011 — edited Oct 29 2011
Hello,

Thank you for reading my post.

I am testing this very short following code:
==================================================
#include <iostream>
using namespace std;

#include "DbXml.hpp"
using namespace DbXml;

int main(void)
{
&nbsp;&nbsp;&nbsp;&nbsp;try
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XmlManager myManager;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XmlContainer myContainer =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myManager.createContainer("/export/xml/myContainer.bdbxml");

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XmlContainer myContainer2 =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myManager.openContainer("/export/xml/myContainer.bdbxml");
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;catch (XmlException &xe)
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cout << "XmlException = " << xe.what() << endl;
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;catch (std::exception &e)
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cout << "Exception = " << e.what() << endl;
&nbsp;&nbsp;&nbsp;&nbsp;}

&nbsp;&nbsp;&nbsp;&nbsp;system("PAUSE");
&nbsp;&nbsp;&nbsp;&nbsp;return 0;
}
==================================================

It fails throwing the following exception:
==================================================
XmlException = Error: Bad address
==================================================

What are the "createContainer()" and "openContainer()" methods expecting as their input parameter?

I've tried names like:
C:\blabla1\blabla2\myContainer.bdbxml
but it doesn't work either.

Can you help me?
Sincerely,
--
Léa
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 26 2011
Added on Sep 25 2011
16 comments
7,222 views