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/07/31 10:34:30 UTC
Xindice returning different results
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'm running Gentoo Linux with the Sun 1.4.0 JDK.
Would anyone have an idea as to why this is happening?
If I missed an earlier posting on this, please direct me to it.
--
Kind regards
Jacob Atzen
Re: Xindice returning different results
Posted by Jacob Atzen / Interflow <ja...@interflow.dk>.
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
Re: Xindice returning different results
Posted by Jacob Atzen / Interflow <ja...@interflow.dk>.
On Wed, Jul 31, 2002 at 10:39:04AM +0200, Carsten Ziegert wrote:
>
> Am 31.07.2002 10:34 Uhr schrieb "Jacob Atzen / Interflow" unter
> <ja...@interflow.dk>:
>
> > 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
>
> What is the output like without the line count?
> Maybe the two line output is an error message.
Here are two consecutive runs:
[10:41:07] [kubrick] [~] xindice xpath -c /db/addressbook -q /
<?xml version="1.0"?>
<person xmlns:src="http://xml.apache.org/xindice/Query"
src:col="/db/addressbook"
src:key="0100007f1f9fdabb000000ef3c7d7455"><fname>test</fname><lname
/><phone type="work" /><phone type="home" /><phone type="cell" /><email
type="home" /><email type="work" /><address type="home" /><address
type="work" /></person>
<?xml version="1.0"?>
<person xmlns:src="http://xml.apache.org/xindice/Query"
src:col="/db/addressbook"
src:key="0100007f1f9fdabb000000ef3c7dad2a"><fname>test2</fname><lname
/><phone type="work" /><phone type="home" /><phone type="cell" /><email
type="home" /><email type="work" /><address type="home" /><address
type="work" /></person>
<?xml version="1.0"?>
<person xmlns:src="http://xml.apache.org/xindice/Query"
src:col="/db/addressbook"
src:key="0100007f1f9fdabb000000ef3c7e54d2"><fname>foo</fname><lname
/><phone type="work" /><phone type="home" /><phone type="cell" /><email
type="home" /><email type="work" /><address type="home" /><address
type="work" /></person>
[10:41:13] [kubrick] [~] xindice xpath -c /db/addressbook -q /
<?xml version="1.0"?>
<person xmlns:src="http://xml.apache.org/xindice/Query"
src:col="/db/addressbook"
src:key="0100007f1f9fdabb000000ef3c7d7455"><fname>test</fname><lname
/><phone type="work" /><phone type="home" /><phone type="cell" /><email
type="home" /><email type="work" /><address type="home" /><address
type="work" /></person>
<?xml version="1.0"?>
<person xmlns:src="http://xml.apache.org/xindice/Query"
src:col="/db/addressbook"
src:key="0100007f1f9fdabb000000ef3c7dad2a"><fname>test2</fname><lname
/><phone type="work" /><phone type="home" /><phone type="cell" /><email
type="home" /><email type="work" /><address type="home" /><address
type="work" /></person>
Alas, no error message :-/
--
Kind regards
Jacob Atzen
Re: Xindice returning different results
Posted by Carsten Ziegert <ca...@ik.fh-hannover.de>.
Am 31.07.2002 10:34 Uhr schrieb "Jacob Atzen / Interflow" unter
<ja...@interflow.dk>:
> 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
>
What is the output like without the line count?
Maybe the two line output is an error message.
Carsten
--
Medizinische Hochschule Hannover Fachhochschule Hannover
Abt. Hämatologie und Onkologie FB Informations- und Kommunikationswesen
Carl-Neuberg-Straße 1 Ricklinger Stadtweg 120
30625 Hannover 30459 Hannover
++49-511-9296-1650
http://summit-bmt.fh-hannover.de