On Monday, January 21, 2002, at 09:20 AM, MCCANN, JACKSON wrote:
Hi All,
I'm building an app to allow me to browse through the database structure, at present using the code and database as supplied in the Core-1.0b4 version. However for some collections I get the following exception when I try and see if they have any resources:
org.xmldb.api.base.XMLDBException: Collection No IndexManager at org.dbxml.core.FaultCodes.createXMLDBException(FaultCode.java:230) at org.dbxml.client.xmldb.CollectionImpl.getResourceCount(CollectionImpl.java: 3 47)
This happens for collection such as /db, which I wouldn't expect to have any
resources - but is there a way to test for this rather than catching the
exception and ignoring it?
You'll have to catch the exception, but this should only occur on /db unless you're manually creating a collection without specifying a full configuration.
Kimbro Staken XML Database Software, Consulting and Writing http://www.xmldatabases.org/
