Re: [bdbxml] getAllDocuments

Michael Allman <[email protected]>
Newsgroups gmane.comp.db.dbxml.general
Message-ID <20050729102426.M86067@yvyyl>
I just reran the test case.  It turns out my memory is slightly crusty. 
Here's the real deal:

The exception is thrown from the 
com.sleepycat.dbxml.dbxml_javaJNI.XmlValue_asString__SWIG_0() native 
method, not getAllDocuments().  However, I see this exception when I call 
xmlResults.next().asString() where xmlResults = 
xmlContainer.getAllDocuments(txn, documentConfig) where the documentConfig 
is set for LockMode.RMW.  Again, this only happens to me when I use a node 
storage container.  If I rebuild the container with wholedoc storage --- 
no problemo.  BTW, if it's relevant, I am passing a transaction to 
getAllDocuments().

Here's the relevant stack trace snippet:

Caused by: com.sleepycat.dbxml.XmlException: Db::cursor: Invalid argument, 
errcode = DATABASE_ERROR
 	at 
com.sleepycat.dbxml.dbxml_javaJNI.XmlValue_asString__SWIG_0(Native Method)
 	at com.sleepycat.dbxml.XmlValue.asString(XmlValue.java:105)

Thanks a lot.

Michael


On Fri, 29 Jul 2005, George Feinberg wrote:

>
> Michael,
>
> What exception are you seeing?  There is
> a flags-related bug in 2.1.8 that you may be running into.
>
> George
>
>> I'm getting an XmlException when I do a getAllDocuments() with a 
>> LockMode.RMW on a node storage XmlContainer.  This doesn't happen with 
>> wholedoc storage containers.  Is this a known bug/limitation/ 
>> issue/problem/feature?
>> 
>> I'm using DB XML 2.1.8.
>> 
>> Michael
>
>
>
> ------------------------------------------
> To remove yourself from this list, send an
> email to [email protected]
>


------------------------------------------
To remove yourself from this list, send an
email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.