[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xindice-dev
Subject:    Xpath Query Problem
From:       "Avik Chatterjee" <altavik () hotmail ! com>
Date:       2003-10-28 12:58:09
[Download RAW message or body]


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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic