[bdbxml] hasNext() fails on an empty result

Ivan Bogouchev / Иван Богушев <[email protected]> Fri, 12 Aug 2005 13:19:25 +0200
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?

-- 
--van--