Re: [bdbxml] hasNext() fails on an empty result
George Feinberg <[email protected]> Fri, 12 Aug 2005 09:16:19 -0400
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
> Hi all, > > in my java code i get the following exceptions when i call hasNext > () on a XMLResult object that is returned from a query: > > com.sleepycat.dbxml.XmlException: Uncaught exception from C++ API: > Unknown error, errcode = INTERNAL_ERROR > at com.sleepycat.dbxml.dbxml_javaJNI.XmlResults_hasNext(Native > Method) > at com.sleepycat.dbxml.XmlResults.hasNext(XmlResults.java:49) > > > The query is well formed but it (intentionally) returns 0 objects. > > Is this behaviour a bug or a feature? That sort of exception is never a feature. What version of BDB XML are you using, and platform? Is this on all empty query results? A simple test program is often helpful, in case there is something subtle going on. Regards, George ------------------------------------------ To remove yourself from this list, send an email to [email protected]