Can you describe how you got this resource (with null ID)?
as described in the documentation:
String driver = "org.apache.xindice.client.xmldb.DatabaseImpl";
Class c = Class.forName(driver);
Database database = (Database) c.newInstance();
DatabaseManager.registerDatabase(database);
String collection = "xmldb:xindice:///db/test";
log.debug(collection);
col = DatabaseManager.getCollection(collection);
String xpath = "/article/lenya:meta[not(wf:state='live') and dc:contributor='" + username + "']";
log.debug(xpath);
XPathQueryService service = (XPathQueryService) col.getService("XPathQueryService", "1.0");
ResourceSet resultSet = service.query(xpath);
if (col != null) {
col.close();
}
That's how I retrieve the resultSet. As said the strange thing is that getContent() works fine, but getId() returns a NullPointer.
btw, I am using xindice-1.1b4.jar xmldb-api-20030701.jar xmlrpc-1.1.jar
Thanks for your help
Michi
Vadim
-- Michael Wechner Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://cocoon.apache.org/lenya/ [EMAIL PROTECTED] [EMAIL PROTECTED]
