Re: [bdbxml] getAllDocuments
George Feinberg <[email protected]>
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Michael, Thanks. This is, in fact the flags bug I mentioned. It will be fixed in release 2.2. If you really need a patch, it may be possible, but it's a bit complicated. There is no workaround in user code other than not using that flag. Regards, George On Jul 29, 2005, at 10:31 AM, Michael Allman wrote: > 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 > ------------------------------------------ To remove yourself from this list, send an email to [email protected]