Is it the same query always?   When it fails is the query different.
Sounds like the XPath part of your XUpdate is failing...

Does the query work sometimes?

Can you provide the query and the document so the list can look at it?

thanks,

Mark

Jens Kumpfmueller wrote:

> Hi *,
>
> finally i managed it to start the xindice-server. When i'm trying to do
> some xupdates (mentioned on
> http://www.xmldatabases.org/projects/XUpdate-UseCases/ ), sometimes
> everything is ok, all xupdates are done. but sometimes i got this error:
>
> 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.<init>(XPathQueryResolver.java:995)
>         at
> org.apache.xindice.core.query.XPathQueryResolver$XPathQuery.execute(XPathQueryResolver.java:247)
>         at
> org.apache.xindice.core.query.XPathQueryResolver.query(XPathQueryResolver.java:151)
>         at
> org.apache.xindice.core.query.QueryEngine.query(QueryEngine.java:147)
>         at
> org.apache.xindice.core.Collection.queryCollection(Collection.java:847)
>         at
> org.apache.xindice.core.xupdate.XUpdateImpl.execute(XUpdateImpl.java:185)
>         at
> org.apache.xindice.core.xupdate.XUpdateQueryResolver$XUpdateQuery.execute(XUpdateQueryResolver.java:172)
>         at
> org.apache.xindice.core.xupdate.XUpdateQueryResolver.query(XUpdateQueryResolver.java:106)
>         at
> org.apache.xindice.core.query.QueryEngine.query(QueryEngine.java:147)
>         at
> org.apache.xindice.core.Collection.queryCollection(Collection.java:847)
>         at
> org.apache.xindice.client.corba.CollectionServant.queryCollection(CollectionServant.java:424)
>         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)
>
> i'm using jdk1.4, linux suse 8.0 xindice birdday 1.0 (precompiled)
>
> thx in advance
>
> jens

--
Mark J Stang
Software Architect
Cybershop Systems

begin:vcard 
n:Stang;Mark
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Mark Stang
end:vcard

Reply via email to