You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Jacob Atzen / Interflow <ja...@interflow.dk> on 2002/08/08 10:58:07 UTC
Re: Xindice returning different results
On Wed, Jul 31, 2002 at 10:34:30AM +0200, Jacob Atzen / Interflow wrote:
> I'm having trouble with Xindice giving me different results to my
> queries on te same data set.
>
> [10:28:58] [kubrick] [~] /usr/local/java/xindice/xindice.server start
> [10:29:38] [kubrick] [~] xindice xpath -c /db/addressbook -q / | wc -l
> 6
>
> Got that 7 times in a row, then all of a sudden:
>
> [10:30:08] [kubrick] [~] xindice xpath -c /db/addressbook -q / | wc -l
> 2
I tried running the start script instead of the xindice.server script.
Suddenly I got this:
DEBUG>
java.lang.NullPointerException
at org.apache.xindice.core.DocumentCache$CacheKey.equals(DocumentCache.java:171)
at java.util.WeakHashMap.eq(WeakHashMap.java:256)
at java.util.WeakHashMap.get(WeakHashMap.java:348)
at org.apache.xindice.core.DocumentCache.getDocument(DocumentCache.java:79)
at org.apache.xindice.core.Collection.getDocument(Collection.java:711)
at org.apache.xindice.core.query.XPathQueryResolver$ResultSet.prepareNextNode(XPathQueryResolver.java:1003)
at org.apache.xindice.core.query.XPathQueryResolver$ResultSet.getNextNode(XPathQueryResolver.java:1042)
at org.apache.xindice.client.corba.CollectionServant.queryWrapper(CollectionServant.java:385)
at org.apache.xindice.client.corba.CollectionServant.queryCollection(CollectionServant.java:425)
at org.apache.xindice.client.corba.db.CollectionPOA._invoke(CollectionPOA.java:332)
at org.openorb.adapter.poa.POA.dispatch(POA.java:975)
at org.openorb.net.AbstractServerRequest.dispatch(AbstractServerRequest.java:750)
at org.openorb.net.ServerManagerImpl.serve_request(ServerManagerImpl.java:1467)
at org.openorb.net.ServerManagerImpl.thread_pool_main(ServerManagerImpl.java:1410)
at org.openorb.net.ServerManagerImpl.access$200(ServerManagerImpl.java:77)
at org.openorb.net.ServerManagerImpl$PoolThread.run(ServerManagerImpl.java:1557)
It happens at the same time as the xpath query returns a wrong result.
Does anyone know why this is happening or if it's a bug?
- Jacob