Hi,
I have been using the following code for xindice1.1b1 to check a collection..
col = DatabaseManager.getCollection("xmldb:"+administration.Host.getXindiceType()+"://"+hostPort+"/db/"+context+"/forums/gdCollection");
String xpath = "//forumid[contains(string(),'"+forumName+"')]" ;
XPathQueryService service =
(XPathQueryService) col.getService("XPathQueryService", "1.0");
ResourceSet resultSet = service.query(xpath);
ResourceIterator results = resultSet.getIterator();
now after i compiled in Xindice1.1b2 and execute the code, following error occurs..
java.lang.NoSuchMethodError: org.apache.xpath.compiler.OpMap.getOpMap()[I
at org.apache.xindice.core.query.XPathQueryResolver$XPathQuery.evalFunction(XPathQueryResolver.java:542)
at org.apache.xindice.core.query.XPathQueryResolver$XPathQuery.evaluate(XPathQueryResolver.java:381)
at org.apache.xindice.core.query.XPathQueryResolver$XPathQuery.evaluate(XPathQueryResolver.java:340)
at org.apache.xindice.core.query.XPathQueryResolver$XPathQuery.evalAxis(XPathQueryResolver.java:623)
at org.apache.xindice.core.query.XPathQueryResolver$XPathQuery.evaluate(XPathQueryResolver.java:397)
at org.apache.xindice.core.query.XPathQueryResolver$XPathQuery.evalLocationPath(XPathQueryResolver.java:433)
at org.apache.xindice.core.query.XPathQueryResolver$XPathQuery.evaluate(XPathQueryResolver.java:335)
at org.apache.xindice.core.query.XPathQueryResolver$XPathQuery.evaluate(XPathQueryResolver.java:340)
at org.apache.xindice.core.query.XPathQueryResolver$XPathQuery.execute(XPathQueryResolver.java:262)
at org.apache.xindice.core.query.XPathQueryResolver.query(XPathQueryResolver.java:184)
at org.apache.xindice.core.query.QueryEngine.query(QueryEngine.java:163)
at org.apache.xindice.core.Collection.queryCollection(Collection.java:928)
at org.apache.xindice.client.xmldb.embed.CollectionImpl.query(CollectionImpl.java:443)
at org.apache.xindice.client.xmldb.XindiceCollection.query(XindiceCollection.java:285)
at org.apache.xindice.client.xmldb.services.QueryService.query(QueryService.java:129)
has this method being deprecated....Waiting for any help in this regard..
With Regards
Avik
_________________________________________________________________
Find your first love.Rekindle past joys! http://www.batchmates.com/msn.asp Get in touch with batchmates.